当前位置:   article > 正文

ubuntu手动替换阿里镜像源(版本18.04(bionic))_ubuntu18.04镜像源

ubuntu18.04镜像源

1.对原文件备份

sudo cp /etc/apt/sources.list /etc/apt/sources_cope.list

2. 打开要换源的文件

sudo gedit /etc/apt/sources.list

将文档中的所有内容删除并替换成阿里镜像源(注意不同的版本替换的内容不一样),如下:

  1. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  2. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  4. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  7. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  9. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

 替换完成后保存退出。

3.更新

用于访问上面替换的源列表中的每个网址,读取软件列表保存在本地电脑 

sudo apt-get update

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/408470
推荐阅读
相关标签
  

闽ICP备14008679号