这几天使用的系统linuxmint20.2系统提示有系统更新,于是我就准备更新下系统。结果按照步骤,一直更新不了,访问的源http://packages.linuxmint.com 由于是国外的源,一直失败,使用命令sudo apt update,得到如下错误,说明这个源已经无法使用了。

  1. 获取:27 http://packages.linuxmint.com una Release [24.1 kB]
  2. 错误:27 http://packages.linuxmint.com una Release
  3. 连接失败 [IP: 68.235.39.11 80]
  4. 正在读取软件包列表... 完成
  5. E: 仓库 http://packages.linuxmint.com una Release” 没有 Release 文件。
  6. N: 无法安全地用该源进行更新,所以默认禁用该源。
  7. N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
  8. root@wbw-linux:/etc/apt#

解决方式

  1. 修改操作系统中的/etc/apt/sources.list.d/official-package-repositories.list文件,将LinuxMint una的源修改为中科大的,将ubuntu focal源修改为速度最快的阿里云的镜像,具体文件内容如下:
    1. # 中国科学技术大学linuxmint 镜像
    2. deb https://mirrors.ustc.edu.cn/linuxmint una main upstream import backport
    3. # 淘宝ubuntu镜像
    4. deb http://mirrors.aliyun.com/ubuntu focal main restricted universe multiverse
    5. deb http://mirrors.aliyun.com/ubuntu focal-updates main restricted universe multiverse
    6. deb http://mirrors.aliyun.com/ubuntu focal-backports main restricted universe multiverse
    7. deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
    8. deb http://archive.canonical.com/ubuntu/ focal partner
  2. 执行udo apt-get update
  3. sudo apt-get upgrade

执行完毕后更新管理器会看到一堆基于una版本的软件,安装更新即可