简介
Ubuntu官方软件仓库(Linux发行版)
配置方法
使用说明

Ubuntu的仓库地址为:https://repo.huaweicloud.com/ubuntu/

Ubuntu-CD的镜像地址为:https://repo.huaweicloud.com/ubuntu-cdimage/

Ubuntu-Cloud的镜像地址为:https://repo.huaweicloud.com/ubuntu-cloud-images/

Ubuntu-Ports的仓库地址为:https://repo.huaweicloud.com/ubuntu-ports/

Ubuntu-Releases的镜像地址为:https://repo.huaweicloud.com/ubuntu-releases/

1、备份配置文件:

sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak

2、修改sources.list文件,将http://archive.ubuntu.comhttp://security.ubuntu.com替换成http://repo.huaweicloud.com,可以参考如下命令:

sudo sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list
sudo sed -i "s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list

3、执行apt-get update更新索引

相关链接
Ubuntu官方地址:https://www.ubuntu.com/
Ubuntu论坛地址:https://ubuntuforums.org/
Ubuntu Wiki地址:https://wiki.ubuntu.com/
Ubuntu帮助地址:https://help.ubuntu.com/
Ubuntu邮件列表地址:https://discourse.ubuntu.com/t/mailing-lists/

标签: none

添加新评论