ubuntu怎么更新软件源
这篇文章主要介绍了ubuntu怎么更新软件源的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇ubuntu怎么更新软件源文章都会有所收获,下面我们一起来看看吧。
1、使用快捷键【ctrl alt t】打开终端。
2、输入以下命令备份原有软件源文件。
cp /etc/apt/sources.list /etc/apt/sources.list.bak_yyyymmdd
3、再输入以下命令打开sources.list文件并添加新的软件源地址。
vi /etc/apt/sources.list #打开sources.list文件
在文件末尾添加新的软件源地址,相关地址如下
#阿里源地址
deb /d/file/20221022/byj1puzo0kb bionic main restricted universe multiverse
deb /d/file/20221022/byj1puzo0kb bionic-security main restricted universe multiverse
deb /d/file/20221022/byj1puzo0kb bionic-updates main restricted universe multiverse
deb /d/file/20221022/byj1puzo0kb bionic-proposed main restricted universe multiverse
deb /d/file/20221022/byj1puzo0kb bionic-backports main restricted universe multiverse
deb-src /d/file/20221022/byj1puzo0kb bionic main restricted universe multiverse
deb-src /d/file/20221022/byj1puzo0kb bionic-security main restricted universe multiverse
deb-src /d/file/20221022/byj1puzo0kb bionic-updates main restricted universe multiverse
deb-src /d/file/20221022/byj1puzo0kb bionic-proposed main restricted universe multiverse
deb-src /d/file/20221022/byj1puzo0kb bionic-backports main restricted universe multiverse
#中科大源地址
deb /d/file/20221022/z0puetp51ct bionic main restricted universe multiverse
deb-src /d/file/20221022/z0puetp51ct bionic main restricted universe multiverse
deb /d/file/20221022/z0puetp51ct bionic-updates main restricted universe multiverse
deb-src /d/file/20221022/z0puetp51ct bionic-updates main restricted universe multiverse
deb /d/file/20221022/z0puetp51ct bionic-backports main restricted universe multiverse
deb-src /d/file/20221022/z0puetp51ct bionic-backports main restricted universe multiverse
deb /d/file/20221022/z0puetp51ct bionic-security main restricted universe multiverse
deb-src /d/file/20221022/z0puetp51ct bionic-security main restricted universe multiverse
deb /d/file/20221022/z0puetp51ct bionic-proposed main restricted universe multiverse
deb-src /d/file/20221022/z0puetp51ct bionic-proposed main restricted universe multiverse
#163源地址
deb /d/file/20221022/ena3kjrree1 bionic main restricted universe multiverse
deb /d/file/20221022/ena3kjrree1 bionic-security main restricted universe multiverse
deb /d/file/20221022/ena3kjrree1 bionic-updates main restricted universe multiverse
deb /d/file/20221022/ena3kjrree1 bionic-proposed main restricted universe multiverse
deb /d/file/20221022/ena3kjrree1 bionic-backports main restricted universe multiverse
deb-src /d/file/20221022/ena3kjrree1 bionic main restricted universe multiverse
deb-src /d/file/20221022/ena3kjrree1 bionic-security main restricted universe multiverse
deb-src /d/file/20221022/ena3kjrree1 bionic-updates main restricted universe multiverse
deb-src /d/file/20221022/ena3kjrree1 bionic-proposed main restricted universe multiverse
deb-src /d/file/20221022/ena3kjrree1 bionic-backports main restricted universe multiverse
#清华源地址
deb /d/file/20221022/spppk1zwc5a bionic main restricted universe multiverse
deb-src /d/file/20221022/spppk1zwc5a bionic main restricted universe multiverse
deb /d/file/20221022/spppk1zwc5a bionic-updates main restricted universe multiverse
deb-src /d/file/20221022/spppk1zwc5a bionic-updates main restricted universe multiverse
deb /d/file/20221022/spppk1zwc5a bionic-backports main restricted universe multiverse
deb-src /d/file/20221022/spppk1zwc5a bionic-backports main restricted universe multiverse
deb /d/file/20221022/spppk1zwc5a bionic-security main restricted universe multiverse
deb-src /d/file/20221022/spppk1zwc5a bionic-security main restricted universe multiverse
deb /d/file/20221022/spppk1zwc5a bionic-proposed main restricted universe multiverse
deb-src /d/file/20221022/spppk1zwc5a bionic-proposed main restricted universe multiverse
4、最后输入命令更新系统软件源地址即可。
apt-get update
apt-get upgrade
关于“ubuntu怎么更新软件源”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“ubuntu怎么更新软件源”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注美国cn2行业资讯频道。