目的:为了解决上网查资料过慢问题。可以通过换源来提高速度。
(1)备份系统源
cd /etc/apt sudo mv sources.list sources.list.bak
(2)开始修改sources文件
有安装vim用户:
sudo vim sources.list
无安装vim用户:
sudo geidit sources.list
(3)写入阿里云的源
发现现在很多源都没办法用了,我自己用了阿里云的源可以用,希望对你们有用
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
(4)执行更新
apt-get update
标签:教程,http,mirrors,jammy,换源,aliyun,Ubuntu,main,multiverse From: https://www.cnblogs.com/zhangsanlisi411/p/16801224.html