this post was submitted on 19 Dec 2025
13 points (93.3% liked)

Linux

60356 readers
279 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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!

top 12 comments
sorted by: hot top controversial new old
[–] mumblerfish@lemmy.world 14 points 2 days ago (2 children)

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.

[–] gooeyglob@lemmy.world 3 points 2 days ago

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.

[–] oeuf@slrpnk.net 1 points 2 days ago (1 children)

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!

[–] gooeyglob@lemmy.world 2 points 2 days ago (1 children)

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.

[–] oeuf@slrpnk.net 2 points 2 days ago

Just ran dist-upgrade and all is well :) Thanks for the tip.

[–] LainTrain@lemmy.dbzer0.com 4 points 3 days ago* (last edited 3 days ago) (1 children)

I get a 404 on those URLs too. Try a mirror? Look up Debian mirrors and try one of those

[–] oeuf@slrpnk.net 3 points 2 days ago (1 children)

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.

[–] LainTrain@lemmy.dbzer0.com 1 points 17 hours ago

This has happened to me before as well, there's so many reasons a site or anything on your end or in-between could be down or have issues, that's why mirrors work so well for resiliency! Glad you're back up to speed now.

Deb-src is the source code repository iirc. Unless you regularly download and read source code, you do not need it.

[–] Lemmchen@feddit.org 3 points 2 days ago* (last edited 2 days ago)

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.

[–] someguy@lemmyland.com 1 points 2 days ago (1 children)

Unlikely to be the problem, but I'd switch the config to use https URLs.

[–] oeuf@slrpnk.net 1 points 2 days ago (1 children)

I wondered about this. Do you know why https isn't used by default?

[–] someguy@lemmyland.com 1 points 1 day ago

Historical reasons I believe and also because packages are signed. Though there's been a few vulnerabilities that have made TLS (IMHO) a necessity. As well as just preventing snooping. Modern debian and apt should support TLS out of the box now.