ubuntu源如何使用阿里云国内镜像

逃离我推掉我的手 2023-06-13 11:08 80阅读 0赞

ubuntu源如何使用阿里云国内镜像

1.先备份原来的源

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2.然后将原来的源文件内容删除,替换为以下内容

  1. vim sudo cp /etc/apt/sources.list
  2. deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
  4. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
  6. deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
  7. deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
  9. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
  11. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

最后执行命令

sudo apt update

发表评论

表情:
评论列表 (有 0 条评论,80人围观)

还没有评论,来说两句吧...

相关阅读