这几天使用的系统linuxmint20.2系统提示有系统更新,于是我就准备更新下系统。结果按照步骤,一直更新不了,访问的源http://packages.linuxmint.com 由于是国外的源,一直失败,使用命令sudo apt update,得到如下错误,说明这个源已经无法使用了。
获取:27 http://packages.linuxmint.com una Release [24.1 kB]
错误:27 http://packages.linuxmint.com una Release
连接失败 [IP: 68.235.39.11 80]
正在读取软件包列表... 完成
E: 仓库 “http://packages.linuxmint.com una Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
root@wbw-linux:/etc/apt#
解决方式
- 修改操作系统中的/etc/apt/sources.list.d/official-package-repositories.list文件,将LinuxMint una的源修改为中科大的,将ubuntu focal源修改为速度最快的阿里云的镜像,具体文件内容如下:
# 中国科学技术大学linuxmint 镜像
deb https://mirrors.ustc.edu.cn/linuxmint una main upstream import backport
# 淘宝ubuntu镜像
deb http://mirrors.aliyun.com/ubuntu focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ focal partner
- 执行udo apt-get update
- sudo apt-get upgrade
执行完毕后更新管理器会看到一堆基于una版本的软件,安装更新即可