如果我运行apt-cache policy wine
,我会看到数据包的版本如下
wine:
Installed: 1.6.2-20
Candidate: 1.6.2-20
Version table:
1.8.6-5 0
650 http://mirror.yandex.ru/debian/ testing/main amd64 Packages
*** 1.6.2-20 0
700 http://http.debian.net/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
但我无法用 安装它apt-get install wine=1.8.6-5
。Apt 失败并显示以下信息:
Err http://mirror.yandex.ru/debian/ testing/main wine all 1.8.6-5
404 Not Found [IP: 213.180.204.183 80]
Err http://mirror.yandex.ru/debian/ testing/main wine64 amd64 1.8.6-5
404 Not Found [IP: 213.180.204.183 80]
Err http://mirror.yandex.ru/debian/ testing/main libwine amd64 1.8.6-5
404 Not Found [IP: 213.180.204.183 80]
Err http://mirror.yandex.ru/debian/ testing/main fonts-wine all 1.8.6-5
404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://mirror.yandex.ru/debian/pool/main/w/wine/wine_1.8.6-5_all.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://mirror.yandex.ru/debian/pool/main/w/wine/wine64_1.8.6-5_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://mirror.yandex.ru/debian/pool/main/w/wine/libwine_1.8.6-5_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://mirror.yandex.ru/debian/pool/main/w/wine/fonts-wine_1.8.6-5_all.deb 404 Not Found [IP: 213.180.204.183 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我意识到,镜子里没有这个版本。还有另一个,与我尝试过的版本不同。
那么为什么会出现这种情况以及如何解决呢?
答案1
正如其名称所示,apt-cache
它将向您显示来自本地缓存包数据。也就是说,想由于您很长时间没有更新缓存,因此镜像仍为 1.8.6-5 版本。
如果在下载软件包时出现 404 错误,则需要apt-get update
刷新此缓存,这也表明可能需要升级所有软件包。