Ubuntu18.04 软件源更换阿里源配置

1.先备份:sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupubuntu

2.编辑元列表文件:sudo vim /etc/apt/sources.listvim

ps:若是找不到vim命令,请先安装vim:sudo apt-get install vimionic

3.注释掉sources.list中的全部内容,将下面内容粘贴进去:rest

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverseget

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

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

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

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

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

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

4.更新软件列表:sudo apt-get update

5.更新软件包:sudo apt-get upgrade

上述内容能够快速应对相信阿里的各位新手同窗,若是以为有其余更好的方式,欢迎交流。

相关文章
相关标签/搜索