apt更换镜像源_白鹤想亮翅的博客-CSDN博客_apt换源
第一步:修改sources.list配置文件:
sudo vim /etc/apt/sources.list
在文件最前面添加以下条目,保险起见,的操作之前做好备份
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
第二步:更新缓存
执行下面的命令:
sudo apt-get update
sudo apt-get upgrade
至此完成国内源的切换,
本教程介绍了如何将Ubuntu系统的apt源更改为阿里云镜像源,以提高软件包下载速度。首先,使用vim编辑器打开sources.list文件,并在文件开头添加阿里云镜像源的URL。接着,执行apt-get update和apt-get upgrade命令更新缓存,完成源的切换。此操作适用于需要快速更新和安装软件的Ubuntu用户。
3307

被折叠的 条评论
为什么被折叠?



