Just today I’m getting errors when trying to install software via apt in Debian 13. Specifically ardour and gnome-boxes. Other packages seem to be unaffected, like gimp and blobwars for example. The errors are all variations of the following:
Err:1 http://deb.debian.org/debian trixie/main amd64 libwebsockets19t64 amd64 4.3.5-1 404 Not Found [IP: 151.101.62.132 80] Error: Failed to fetch http://deb.debian.org/debian/pool/main/libw/libwebsockets/libwebsockets19t64_4.3.5-1_amd64.deb 404 Not Found [IP: 151.101.62.132 80]
Looking online the suggestion seems to be that I might have /etc/apt/sources.list misconfigured. Is it this causing the problem, or something else?
Here is my sources.list
# deb cdrom://[Debian GNU/Linux 13.0.0 _Trixie_ - Official amd64 NETINST with firmware 20250809-11:2>
deb http://deb.debian.org/debian/ trixie main non-free-firmware
deb-src http://deb.debian.org/debian/ trixie main non-free-firmware
deb http://security.debian.org/debian-security/ trixie-security main non-free-firmware
deb-src http://security.debian.org/debian-security/ trixie-security main non-free-firmware
# trixie-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ trixie-updates main non-free-firmware
# This system was installed using removable media other than
# CD/DVD/BD (e.g. USB stick, SD card, ISO image file).
# The matching "deb cdrom" entries were disabled at the end
# of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
Any advice?
Thanks!
How long since you ran ‘apt update’? I have envountered issues where the local apt cache is stale, causing it to contain packages which are old and removed from the upstream repo. You need to update your cache and try to install again.
This is almost always the issue. Apt is not like yum and pacman, you must first run apt update or it will inevitably fall out of sync with the current packages when you try to run install or upgrade, etc.
Only a couple of days ago. I switched back and forth to a mirror, did autoclean and autoremove and disabled deb-src in sources.list and everything appears to be fine now but I have no idea why!
From what I’m reading, autoclean would remove any local packages which couldn’t be download (i.e. they are out of date). This would indeed fix the issue, but your packages could still be missing critical udpates.
When possible you should definitely run ‘sudo apt update && sudo apt dist-upgrade’ to get the latest stuff installed. If it says you’re up to date then that’s awesome and no further action is needed.
Just ran dist-upgrade and all is well :) Thanks for the tip.
My gut tells me this might be a DNS issue. Can you reach http://deb.debian.org/ in the browser?
Edit: After reading the text on that site, a working website might not indicate a working package repository.
I get a 404 on those URLs too. Try a mirror? Look up Debian mirrors and try one of those
I changed to a mirror, ran sudo apt update and had a buggerload of packages with updates. I then switched back to the default which fetched those updates as well, both before and after autoclean and autoremove. Software is now installing successfully/normally… I’m not really any the wiser about what happened though. The only thing I can tell that is different now is I deselected deb-src after reading that it’s not recommended for most users.
Unlikely to be the problem, but I’d switch the config to use https URLs.
I wondered about this. Do you know why https isn’t used by default?




