ubuntu
更换为阿里云软件源
●第一步,为了以防万一,备份旧的软件源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
这时,旧的软件源文件已经被备份,/etc/apt/sources.list.bak即为备份文件,当某一天想要恢复原来的软件源时,只需将备份文件恢复,即将文件末尾的.bak抹去。
●第二步,更新软件源
vim /etc/apt/sources.list
将此时的/etc/apt/sources.list中的内容替换为以下内容:
Ubuntu 18.04替换为下面的内容:
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:

这篇博客介绍了如何将Ubuntu和CentOS的软件源更换为阿里云的软件源,包括Ubuntu 18.04和16.04的步骤,以及CentOS 5, 6, 7的更换过程,涉及备份原有软件源、替换源文件内容以及更新系统软件。"
136227975,7337247,MySQL权限管理:保护数据安全的关键,"['数据库理论', '架构设计', 'Java', 'Python']
最低0.47元/天 解锁文章
890

被折叠的 条评论
为什么被折叠?



