1.备份源文件,打开终端,输入
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.backup
2.编辑sources.list.文件,在终端输入
sudo vi /etc/apt/sources.list
(运用的是vi编辑器,用insert进入编辑)
3.将sources.list里的文件内容替换成下面的即可
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multivers
(esc 退出编辑状态,<:wq>为保存更新)文章来源:https://www.toymoban.com/news/detail-793380.html
4.更新完成后即代表中科大源设置成功文章来源地址https://www.toymoban.com/news/detail-793380.html
到了这里,关于ubuntu设置中科大的源的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!