libgnutls28-dev:apt 正在搜索错误的文件?
libgnutls28-dev: apt is searching for the wrong file?
我在 debian buster 上安装 libgnutls28-dev 包时遇到问题,apt 抛出以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gnutls-bin gnutls-doc
The following NEW packages will be installed:
libgnutls28-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,086 kB of archives.
After this operation, 4,417 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4
404 Not Found [IP: 151.101.220.204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4_amd64.deb 404 Not Found [IP: 151.101.220.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
让我烦恼的是这个包在 http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb 可用,并且出于某种原因 apt 正在寻找 libgnutls28-dev_3.6.7-4_amd64.deb
而不是 libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb
。
我尝试使用特定版本 运行 apt install libgnutls28-dev=3.6.7-4+deb10u2
并得到以下信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.6.7-4+deb10u2' for 'libgnutls28-dev' was not found
问题是这是从哪里来的?这是 apt
的问题吗?还是 gnutls28
误导了相关性?或者首先应该有一个文件 libgnutls28-dev_3.6.7-4_amd64.deb
?
[编辑]
根据 Knud 的评论添加:
根据 apt
系统是最新的:
apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
我向其中一位软件包维护者确认,可用版本 _3.6.7-4+deb10u2
是 最新版本, apt
应该知道这一点,但是:
apt-cache policy libgnutls28-dev
libgnutls28-dev:
Installed: (none)
Candidate: 3.6.7-4
Version table:
3.6.7-4 500
500 http://deb.debian.org/debian buster/main amd64 Packages
所以这是一个 apt
问题。出于某种原因 apt
,即使拥有超级牛的力量,也陷入了过时的状态。任何指导将不胜感激。
找到解决方案,感谢 Andreas Metzler 的指导。
镜像显然卡在了过时的包索引中。我正在使用 deb.debian.org
,据我所知,它会将 apt
重定向到附近的服务器。我更新了 /etc/apt/
中的 sources.list
文件,因此它们现在指向一个固定的附近服务器并且一切正常。
我在 debian buster 上安装 libgnutls28-dev 包时遇到问题,apt 抛出以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gnutls-bin gnutls-doc
The following NEW packages will be installed:
libgnutls28-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,086 kB of archives.
After this operation, 4,417 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4
404 Not Found [IP: 151.101.220.204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4_amd64.deb 404 Not Found [IP: 151.101.220.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
让我烦恼的是这个包在 http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb 可用,并且出于某种原因 apt 正在寻找 libgnutls28-dev_3.6.7-4_amd64.deb
而不是 libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb
。
我尝试使用特定版本 运行 apt install libgnutls28-dev=3.6.7-4+deb10u2
并得到以下信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.6.7-4+deb10u2' for 'libgnutls28-dev' was not found
问题是这是从哪里来的?这是 apt
的问题吗?还是 gnutls28
误导了相关性?或者首先应该有一个文件 libgnutls28-dev_3.6.7-4_amd64.deb
?
[编辑]
根据 Knud 的评论添加:
根据 apt
系统是最新的:
apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
我向其中一位软件包维护者确认,可用版本 _3.6.7-4+deb10u2
是 最新版本, apt
应该知道这一点,但是:
apt-cache policy libgnutls28-dev
libgnutls28-dev:
Installed: (none)
Candidate: 3.6.7-4
Version table:
3.6.7-4 500
500 http://deb.debian.org/debian buster/main amd64 Packages
所以这是一个 apt
问题。出于某种原因 apt
,即使拥有超级牛的力量,也陷入了过时的状态。任何指导将不胜感激。
找到解决方案,感谢 Andreas Metzler 的指导。
镜像显然卡在了过时的包索引中。我正在使用 deb.debian.org
,据我所知,它会将 apt
重定向到附近的服务器。我更新了 /etc/apt/
中的 sources.list
文件,因此它们现在指向一个固定的附近服务器并且一切正常。