Ubuntu 18.04 更换apt源
程序员文章站
2022-06-05 20:59:03
...
1、备份apt源
cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、修改apt源
sudo gedit /etc/apt/sources.list
3、删除所有,添加阿里源
#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
4、更新源
sudo apt update
sudo apt upgrade
上一篇: TCP 客户端简单通信流程
推荐阅读
-
Ubuntu18.04更换国内源的方法示例
-
Ubuntu apt-get和pip源更换
-
Ubuntu 18.04修改默认源为国内源
-
ubuntu 18 apt-get 更换国内镜像源
-
Ubuntu18.04 ROS填坑之 roscore Command ‘roscore‘ not found, ..... : sudo apt install python-roslaunch
-
ubuntu更换阿里源
-
Ubuntu 18.04更换apt-get源
-
ubuntu18.04(bionic) 配置阿里数据源
-
Debian10 更换apt源
-
【原创】Debian 10 更换 aliyun apt-get 源