美文网首页
Ubuntu 18.04 更换阿里源

Ubuntu 18.04 更换阿里源

作者: 一只豪猪 | 来源:发表于2019-04-22 10:36 被阅读0次
  1. 备份

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

  1. 编辑

sudo vim /etc/apt/sources.list

  1. 修改内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

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

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

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

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

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

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

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

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

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  1. 更新软件列表

sudo apt-get update

  1. 更新软件包

sudo apt-get upgrade

相关文章

网友评论

      本文标题:Ubuntu 18.04 更换阿里源

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