Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Beginners Questions • I accidentally broke my Debian

$
0
0
Hello guys,

I started to use Debian Stable a couple of weeks ago. So far it was very fast and reliable. I didn't even know that there was a problem. Everything has started with me trying to install curl by using
sudo apt install curl

Which gave me an error that says:

Code:

The following packages have unmet dependencies:curl : Depends: libcurl4 (= 7.88.1-10+deb12u5) but 8.5.0-2 is to be installedE: Unable to correct problems, you have held broken packages.
Next, I just removed libcurl4. But libreoffice and some packages that starts with the name lib* (I don't remember them ATM) were depending, so they were removed too. After I removed them and installed curl, I tried to install libreoffice again, this time receiving this error:

Code:

The following packages have unmet dependencies: libreoffice : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable               Depends: libreoffice-writer but it is not installable               Recommends: libreoffice-nlpsolver but it is not installable               Recommends: libreoffice-report-builder but it is not installable               Recommends: libreoffice-script-provider-bsh but it is not installable               Recommends: libreoffice-script-provider-js but it is not installable               Recommends: libreoffice-script-provider-python but it is not installable               Recommends: libreoffice-sdbc-mysql but it is not installable               Recommends: libreoffice-sdbc-postgresql but it is not installable               Recommends: libreoffice-wiki-publisher but it is not installable               Recommends: libreoffice-java-common (>= 4:7.4.7~) but it is not installable libreoffice-base : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable                    Recommends: libreoffice-writer but it is not installable                    Recommends: libreoffice-java-common (>= 4:7.4.7~) but it is not installable libreoffice-base-core : Depends: libreoffice-core-nogui (= 4:7.4.7-1+deb12u1) but it is not installable or                                  libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable libreoffice-base-drivers : Depends: libreoffice-core-nogui but it is not installable or                                     libreoffice-core but it is not installable                            Recommends: libreoffice-sdbc-hsqldb but it is not installable                            Recommends: libreoffice-sdbc-firebird but it is not installable libreoffice-calc : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable libreoffice-draw : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable libreoffice-impress : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable libreoffice-math : Depends: libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installable libreoffice-report-builder-bin : Depends: libreoffice-core but it is not installable python3-uno : Depends: libreoffice-core-nogui (= 4:7.4.7-1+deb12u1) but it is not installable or                        libreoffice-core (= 4:7.4.7-1+deb12u1) but it is not installableE: Unable to correct problems, you have held broken packages.
At this point I figured it out this had to be about my sources or my installation, but still not sure. When I used the command
lsb_release -a
, it gave this:

Code:

No LSB modules are available.Distributor ID: DebianDescription:    Debian GNU/Linux trixie/sidRelease:        n/aCodename:       trixie
Also, as a side information, here is my /etc/apt/sources.list:

Code:

deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmwaredeb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmwaredeb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmwaredeb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmwaredeb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmwaredeb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmwaredeb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmwaredeb-src https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmwaredeb https://security.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmwaredeb-src https://security.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
(My sources list was a bit different, and I added these while trying to fix the problem, but I am confident that it never used anything other than "bookworm", i.e. I never used a source that says trixie or something other than bookworm.)

I suppose it should have never said trixie or sid, and the codename should have been "bookworm" because I was using stable. So apparently, I somehow broke my installation. Now my questions are:

1- How can I fix this
2- I definitely do not want to accidentally break my installation like this. What should I avoid in future?

Thanks, happy days.

Statistics: Posted by Teofrastus — 2024-01-23 11:00 — Replies 6 — Views 163



Viewing all articles
Browse latest Browse all 3260

Trending Articles