欢迎访问 生活随笔!

凯发ag旗舰厅登录网址下载

当前位置: 凯发ag旗舰厅登录网址下载 > 运维知识 > ubuntu >内容正文

ubuntu

ubuntu16.04更新软件源 -凯发ag旗舰厅登录网址下载

发布时间:2024/10/14 ubuntu 24 豆豆
凯发ag旗舰厅登录网址下载 收集整理的这篇文章主要介绍了 ubuntu16.04更新软件源 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

以ubuntu16.04为例:

1. 备份原有软件源文件

cp /etc/apt/sources.list /etc/apt/sources.list.bak_yyyymmdd

 

2. 打开sources.list文件,在文件末尾增加如下软件源地址

vi /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

 

3. 更新系统软件源

执行命令,更新系统软件源地址

apt-get update apt-get upgrade

4. 其他软件源

中科大源 ##中科大源 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 multiverse163源 ##163源 (推荐) deb http://mirrors.163.com/ubuntu/ precise main restricted  deb-src http://mirrors.163.com/ubuntu/ precise main restricted   deb http://mirrors.163.com/ubuntu/ precise-updates main restricted  deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted  deb http://mirrors.163.com/ubuntu/ precise universe  deb-src http://mirrors.163.com/ubuntu/ precise universe  deb http://mirrors.163.com/ubuntu/ precise-updates universe  deb-src http://mirrors.163.com/ubuntu/ precise-updates universe  deb http://mirrors.163.com/ubuntu/ precise multiverse  deb-src http://mirrors.163.com/ubuntu/ precise multiverse  deb http://mirrors.163.com/ubuntu/ precise-updates multiverse  deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse  deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  deb http://mirrors.163.com/ubuntu/ precise-security main restricted  deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted  deb http://mirrors.163.com/ubuntu/ precise-security universe  deb-src http://mirrors.163.com/ubuntu/ precise-security universe  deb http://mirrors.163.com/ubuntu/ precise-security multiverse  deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse  deb http://extras.ubuntu.com/ubuntu precise main  deb-src http://extras.ubuntu.com/ubuntu precise main  清华源 ##清华源 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

然后执行 sudo apt-get update

 

 

 

总结

以上是凯发ag旗舰厅登录网址下载为你收集整理的ubuntu16.04更新软件源的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发ag旗舰厅登录网址下载网站内容还不错,欢迎将凯发ag旗舰厅登录网址下载推荐给好友。

网站地图