ubuntu设置中科大的源

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

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>为保存更新)

4.更新完成后即代表中科大源设置成功

知秋君
上一篇 2024-07-16 01:12
下一篇 2024-07-15 12:12

相关推荐