我刚刚尝试更新我的已安装包以升级我的Debian版本,但是 'apt-get update -y' 命令给我抛出了这个错误:
apt-get update -y
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Ign:4 http://deb.debian.org/debian buster-backports InRelease
Err:5 http://deb.debian.org/debian buster-backports Release
404 未找到 [IP: 199.232.150.132 80]
Get:6 https://download.docker.com/linux/debian buster InRelease [53.9 kB]
Get:7 https://deb.nodesource.com/node_12.x buster InRelease [4,584 B]
Get:8 https://download.mono-project.com/repo/debian stable-buster InRelease [5,874 B]
Get:9 https://packages.microsoft.com/debian/10/prod buster InRelease [6,538 B]
Ign:10 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Err:12 https://packages.cloud.google.com/apt kubernetes-xenial Release
404 未找到 [IP: 216.58.214.174 443]
Get:11 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease [11.5 kB]
Err:11 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease
清签名文件无效,得到 'NOSPLIT'(网络是否需要认证?)
Hit:13 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Get:14 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [223 kB]
读取包列表... 完成
E: 仓库 'http://deb.debian.org/debian buster-backports Release' 没有Release文件了。
N: 无法安全地从这样的仓库更新,因此默认情况下是禁用的。
N: 请参阅 apt-secure(8) 手册页了解仓库创建和用户配置的详细信息。
E: 仓库 'https://apt.kubernetes.io kubernetes-xenial Release' 没有Release文件了。
N: 无法安全地从这样的仓库更新,因此默认情况下是禁用的。
N: 请参阅 apt-secure(8) 手册页了解仓库创建和用户配置的详细信息。
E: 无法获取 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/dists/buster/InRelease 清签名文件无效,得到 'NOSPLIT'(网络是否需要认证?)
E: 仓库 'https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease' 不再签名。
N: 无法安全地从这样的仓库更新,因此默认情况下是禁用的。
N: 请参阅 apt-secure(8) 手册页了解仓库创建和用户配置的详细信息。
有没有不重新安装服务器就能解决这个问题的方法?
Debian 10(代号“buster”)除了其长期支持(LTS)版本外,已不再提供支持,LTS版本将持续支持到2024年6月,也就是几周后。
Debian 10的后向移植仓库已不存在,因为没有必要向后移植软件包,针对“buster”的其他第三方软件包仓库也已不存在。
你应该先备份,然后通过Debian 11(代号“bullseye”)升级到Debian 12(代号“bookworm”)。或者构建一个运行Debian 12(代号“bookworm”)的新系统,并迁移你的应用程序和数据。不要尝试直接从Debian 10(代号“buster”)升级到Debian 12(代号“bookworm”)。
以下是一些建议,以减轻任何潜在的升级问题:
buster-backports
的引用我使用这个配方升级了大约10台不同的机器:
/etc/apt/sources.list
文件中,将buster/updates
替换为bullseye-security
,然后将所有出现的buster
替换为bullseye
。apt update
apt upgrade --without-new-pkgs
apt full-upgrade