1.cd /etc/apt/sources.list.d/,打开official-lackage-repositories.list文件,可以看到
deb http://packages.linuxmint.com tricia main upstream import backport
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
修改以后是这样:
deb http://mirrors.ustc.edu.cn/linuxmint tricia main upstream import backport
deb http://mirrors.aliyun.com/ubuntu bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-backports main restricted universe multiverse
然后保存
2.运行apt update -y和apt upgrade -y
本文介绍了如何修改Linux Mint和Ubuntu的软件源,将官方源替换为阿里云镜像。通过编辑/etc/apt/sources.list.d/official-package-repositories.list文件,将所有源地址更新为阿里云的URL,然后运行`apt update -y`和`apt upgrade -y`来更新系统和软件包,以提高下载速度和稳定性。
8252

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



