1. 程式人生 > >修改Ubuntu默認apt下載源

修改Ubuntu默認apt下載源

文件內容 阿裏 upd mir sudo ubunt sources apt ubuntu

修改Ubuntu默認apt下載源

默認下載源很慢,改成阿裏的下載速度超快
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

修改Ubuntu默認apt下載源