在此之前你可以备份一下,以及时恢复
mv /etc/apt/sources.list /etc/apt/sources.list.bak;
你可以使用命令sudo apt edit-sources编辑源或在 /etc/apt/sources.list 中增加下面其中一些源
修改后使用sudo apt update更新缓存,sudo apt upgrade升级包。如果有报错的及时删除后再更新就行了
tips:
原文迁移地址 在这里(复制不带小尾巴)
一些干货
# 阿里云
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 htt

本文提供了阿里云、清华大学开源软件镜像站、中科大源和网易163的Ubuntu镜像源,以及官方源的配置方法,帮助用户在国内快速更新和升级软件包。
最低0.47元/天 解锁文章
2803

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



