1. 程式人生 > >Ubuntu18.04下更改apt源

Ubuntu18.04下更改apt源

任意版本的系統代號:

Ubuntu 12.04 (LTS)代號為precise。

Ubuntu 14.04 (LTS)代號為trusty。

Ubuntu 15.04 代號為vivid。

Ubuntu 15.10 代號為wily。

Ubuntu 16.04 (LTS)代號為xenial。 Ubuntu 18.04 (LTS)代號為bionic。

sudo vim /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse




sudo apt-get update
sudo apt-get upgrade

update是更新軟體列表,upgrade是更新軟體。