debian 仓库:无法获取

kyt*_*tka 6 debian apt repository

我一直在尝试从 postgresql 存储库安装 pgAdmin4,但我不断收到以下错误:

Err:1 http://deb.debian.org/debian buster/main amd64 python3-werkzeug all 0.14.1+dfsg1-4
  404  Not Found [IP: 151.101.112.204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python-werkzeug/python3-werkzeug_0.14.1+dfsg1-4_all.deb  404  Not Found [IP: 151.101.112.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)

我尝试运行sudo apt-get update多次,但没有解决问题。我还在 debian repo http://cdn-fastly.deb.debian.org/debian/pool/main/p/python-werkzeug/中找到了该目录,但确实没有我需要的文件。我应该以某种方式更改我的sources.list 或邮件给来自debian 的人还是这是我的错?我对此真的很陌生,所以感谢您的耐心等待。(我从其他人那里读到了类似的问题,但没有人解决我的错误,我不知道如何将其应用到我的案例中。)

编辑:我有 Debian 10 Buster。

小智 3

检查/etc/apt/sources.list.d/您的目录和/etc/apt/sources.list文件中是否有任何暗示 apt 不喜欢的存储库的条目。

删除这些条目,然后运行apt update

  • 我这样做了并注释掉了主要仓库。然后执行了``sudo apt update```,导致了很多错误,所以我取消注释并再次执行了``sudo apt update```。它安装了很多我不知道的新东西(即使我以前经常这样做,有人可以向我解释一下吗?)然后我尝试了``sudo apt-get install pgadmin4 pgadmin4-apache2````它突然起作用了。我真的不明白。有什么解释吗?我真的很好奇。 (3认同)