云服务器更换软件源

腾讯云镜像
  • 腾讯云的官方链接:
    目前腾讯云软件源站支持公网访问和内网访问。
    公网访问地址:http://mirrors.cloud.tencent.com/
    内网访问地址:http://mirrors.tencentyun.com/
    然后找到对应最新系统版本的镜像源即可,这里找了下Ubuntu16.04的软件源:
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse

也可以通过wget进行下载:

# 16.04
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu16_sources.list
# 更新缓存
suod apt-get clean all
sudo apt-get update

阿里云的镜像

官网:
https://developer.aliyun.com/mirror/
这里会提供各个系统的镜像和镜像源,可以参考使用

你可能感兴趣的:(云服务器更换软件源)