一,旧版本ubuntu上的apt源不能用了
# apt-get update
忽略:1 http://mirrors.aliyun.com/ubuntu hirsute InRelease
忽略:2 http://mirrors.aliyun.com/ubuntu hirsute-security InRelease
忽略:3 http://mirrors.aliyun.com/ubuntu hirsute-updates InRelease
忽略:4 http://mirrors.aliyun.com/ubuntu hirsute-proposed InRelease
忽略:5 http://mirrors.aliyun.com/ubuntu hirsute-backports InRelease
命中:6 https://dl.google.com/linux/chrome/deb stable InRelease
错误:7 http://mirrors.aliyun.com/ubuntu hirsute Release
404 Not Found [IP: 124.193.244.238 80]
错误:8 http://mirrors.aliyun.com/ubuntu hirsute-security Release
404 Not Found [IP: 124.193.244.238 80]
错误:9 http://mirrors.aliyun.com/ubuntu hirsute-updates Release
404 Not Found [IP: 124.193.244.238 80]
错误:10 http://mirrors.aliyun.com/ubuntu hirsute-proposed Release
404 Not Found [IP: 124.193.244.238 80]
错误:11 http://mirrors.aliyun.com/ubuntu hirsute-backports Release
404 Not Found [IP: 124.193.244.238 80]
正在读取软件包列表... 完成
E: 仓库 “http://mirrors.aliyun.com/ubuntu hirsute Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu hirsute-security Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu hirsute-updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu hirsute-proposed Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu hirsute-backports Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
二,配置apt源:
1,找到源:
访问:
https://mirrors.ustc.edu.cn/repogen/
切换到自己系统对应的版本,
如图:
复制文本
2,配置源:
编辑/etc/apt/sources.list
root@lhdpc:/etc/apt# vi sources.list
内容:
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ impish-backports main restricted universe multiverse
3,保存后执行update
root@lhdpc:/etc/apt# apt-get update
获取:1 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish InRelease [270 kB]
获取:2 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish-security InRelease [110 kB]
命中:3 https://dl.google.com/linux/chrome/deb stable InRelease
获取:4 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish-updates InRelease [115 kB]
获取:5 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish-backports InRelease [101 kB]
获取:6 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/universe Sources [17.1 MB]
获取:7 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/main Sources [1,320 kB]
获取:8 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/restricted Sources [18.3 kB]
获取:9 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/multiverse Sources [290 kB]
获取:10 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/main i386 Packages [1,037 kB]
获取:11 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu impish/main amd64 Packages [1,396 kB]
....
对各个地址的访问能正确执行,表示修改已生效
标签:cn,mirrors,ubuntu,21.10,https,edu,旧版本,ustc From: https://www.cnblogs.com/architectforest/p/18534808