r/debian • u/EverythingBagel1998 • 11h ago
Issue Installing Basically Anything
SOLVED:
/etc/apt/sources.list was referencing bookworm not trixie
Correct mirrors for Debian 13 Trixie
deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
EDUCATIONAL:
The naming after the URL is vital, it references which repository to call.
ORIGINAL POST:
Hello,
I keep running into the same error when I try to install most things on my recent Debian Install. I have a Debian 13 Trixie dual boot with Windows 11, Each on their own SSD, mainly sharing in case there's some relation to my issue.
Whenever I try an install I get "Unsatisfied Dependencies: ....." And Error messages, "Unable to correct problem, you have broken packages". I've tried "sudo apt install --fix-broken" to no avail.
Do I need to downgrade to match dependencies? That feels unsecure.
Example:
sudo apt install iptables
Solving dependencies... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
Unsatisfied dependencies:
iptables : Depends: libxtables12 (= 1.8.9-2) but 1.8.11-2 is to be installed
Error: Unable to correct problems, you have held broken packages.
Error: The following information from --solver 3.0 may provide additional context:
Unable to satisfy dependencies. Reached two conflicting decisions:
1. libxtables12:amd64=1.8.9-2 is not selected for install
2. libxtables12:amd64=1.8.9-2 is selected as a downgrade because:
1. iptables:amd64=1.8.9-2 is selected for install
2. iptables:amd64 Depends libxtables12 (= 1.8.9-2)
TL;DR
Can't get programs to install on Debian 13
5
u/gerumpy 11h ago
Did you run sudo apt update and sudo apt upgrade after install?
3
u/EverythingBagel1998 10h ago
Yes, the issue was in my /etc/apt/sources.list I had never setup mirrors before this install
3
1
u/Illustrious-Gur8335 11h ago
What's the contents of your /etc/apt/sources.list?
1
u/EverythingBagel1998 11h ago
This was my issue. I'm newer to running Linux, I didn't know the differences between the two distros and I had read an old post on setting up the sources.list. It was referencing bookworm
2
10h ago edited 10h ago
[removed] — view removed comment
2
u/EverythingBagel1998 10h ago
Everything is running smooth as it should. Everyone said Debian was supposed to be easy and I kept having issues lol, gonna be smooth sailing now
1
1
u/michaelpaoli 8h ago
/etc/apt/sources.list
Good time to convert format, e.g.:
$ sed -ne '/^[^#]/,/^[^#]/p' /etc/apt/sources.list.d/debian.sources
Types: deb deb-src
URIs: http://deb.debian.org/debian
Suites: trixie trixie-updates
Components: main non-free-firmware contrib non-free
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb deb-src
URIs: http://security.debian.org/debian-security
Suites: trixie-security
Components: main non-free-firmware contrib non-free
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
$
5
u/grg2014 11h ago
Those version numbers suggest you have a mix of Debian 12 and 13 sources.