美文网首页
ubuntu软件更新源切换为阿里云

ubuntu软件更新源切换为阿里云

作者: zhongbin | 来源:发表于2020-06-21 19:49 被阅读0次

1. 备份自带sourcelist

     sudo mv /etc/apt/sources.list /etc/apt/sources.bk.list

2. 新建sourcelist

    sudo vim /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

3. 更新源

    sudo apt-get update

————————————————

版权声明:本文为CSDN博主「galaxyzwj」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/zz531987464/java/article/details/86291508

相关文章

网友评论

      本文标题:ubuntu软件更新源切换为阿里云

      本文链接:https://www.haomeiwen.com/subject/vaxmxxtx.html