平常在安装东西的时候总出现网络卡顿的情况,其实再好的网络环境都会出现卡顿(如果不调整自己的仓库源的话)。
备份原来的仓库源
ubuntu 的apt仓库源配置文件地址是/etc/apt/
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
替换阿里云sources.list配置文件
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
替换完成后,执行如下命令完成更新:
sudo apt-get update
sudo apt-get upgrade
发表评论
共 0 条评论
暂无评论