1.编辑/etc/apt/sources.list
vi /etc/apt/sources.list
按下字母i
键,进入编辑模式。删除全部内容,将下列准备的更新源内容粘贴进去,即可保存退出。
保存退出的命令是按Esc
然后输入:!wq
(冒号也要输入)
deb http://mirrors.tencentyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.tencentyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.tencentyun.com/ubuntu/ bionic-updates main restricted universe multiverse#deb http://mirrors.tencentyun.com/ubuntu/ bionic-proposed main restricted universe multiverse#deb http://mirrors.tencentyun.com/ubuntu/ bionic-backports main restricted universe multiversedeb-src http://mirrors.tencentyun.com/ubuntu/ bionic main restricted universe multiversedeb-src http://mirrors.tencentyun.com/ubuntu/ bionic-security main restricted universe multiversedeb-src http://mirrors.tencentyun.com/ubuntu/ bionic-updates main restricted universe multiverse#deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-proposed main restricted universe multiverse#deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt updatesudo apt upgrade
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。