debian repo: unable to fetch
Check your /etc/apt/sources.list.d/
directory as well as your /etc/apt/sources.list
file for any entries hinting at the repository that apt doesnt like.
Delete those entries, then run an apt update
kytka
Updated on September 18, 2022Comments
-
kytka over 1 year
I've been trying to install pgAdmin4 from postgresql repositories, but I keep getting following error:
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?
I tried running
sudo apt-get update
multiple times, but it didn't solve the issue. I also found the directory in debian repo http://cdn-fastly.deb.debian.org/debian/pool/main/p/python-werkzeug/ and there really isn't the file I need. Should I somehow change my sources.list or mail to people from debian or is that somehow my fault? I'm really new in this, so thanks for begin patient. (I read similar questions from other people, but none solved my error and I couldn't think of how to apply it on my case.)Edit: I have Debian 10 Buster.
-
balon over 4 yearsIf you have added the repo you should delete from sources.list, since this one doesn't work.
-
balon over 4 yearsWhat's your debian version?
-
kytka over 4 yearsI have debian 10. And I deleted everything that I added to my sources.list file.
-
balon over 4 yearsAs I see it, you shouldn't need to add any extra repositories. When you clean your sources, you must install
apache2
[apt install -y apache2
] (required bypgadmin4
) and then proceed to its installation [sudo apt-get install pgadmin4 pgadmin4-apache2
] -
kytka over 4 yearsI undid everything I did earlier in sources.list and then I did
apt install apache2
(install-and doesn't work) and it worked fine, then I didsudo apt-get install pgadmin4 pgadmin4-apache2
and it said that a lot of new python packages will be installed (python3-werkzeug included) and then the same error message. -
balon over 4 yearsSorry about
install-and
, it was a mistake; it wasapt-get install -y
. I guess after you make the changes to your sources and before you install, you'll be doingapt-get update
, right? -
kytka over 4 yearsIsn't the problem in absence of said file in cdn-fastly.deb.debian.org/debian/pool/main/p/python-werkzeug ?
-
-
kytka over 4 yearsI did this and commented out main repo. Then did
sudo apt update
, which caused a lot of errors, so I uncommented it and didsudo apt update
again. It installed a lot of new stuff that I didn't know about (even though I did that regularly before, can somebody explain that to me?) and then I triedsudo apt-get install pgadmin4 pgadmin4-apache2
and it worked all of a sudden. I really don't get it. Got any explanation? I'm really curious.