Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Upgrading Debian 10 to 11, now I can't install C libraries

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Rockingcool
Posts: 6
Joined: 2022-05-03 04:46
Has thanked: 1 time

Upgrading Debian 10 to 11, now I can't install C libraries

#1 Post by Rockingcool »

Hey everyone,
I recently upgraded from Debian 10 to 11 on my server. However, in the process, the update seems to have been broken mid way through, and it has left me with no C libraries (libc6-dev). My '/usr/include' folder doesn't contain 'stdio.h', for example. When I try to install the package manually, this is what I get:

Code: Select all

$ sudo apt install libc6-dev

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
             Breaks: python3.7 (< 3.7.7-1+b1) but 3.7.3-2+deb10u3 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
How would I go about fixing this, and completing the update (assuming it hasn't finished yet)? Any help would be greatly, truly appreciated.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Upgrading Debian 10 to 11, now I can't install C libraries

#2 Post by Aki »

Hello,

Have you already tried to upgrade the OS version with:

Code: Select all

script log.txt
sudo apt update
sudo apt upgrade
exit
The output of previous commands will be recorded in the file log.txt

What is the CPU architecture if your computer: is it a Raspberry Pi ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
canci
Global Moderator
Global Moderator
Posts: 2502
Joined: 2006-09-24 11:28
Has thanked: 136 times
Been thanked: 136 times

Re: Upgrading Debian 10 to 11, now I can't install C libraries

#3 Post by canci »

Rockingcool wrote: 2022-09-29 05:23 How would I go about fixing this, and completing the update (assuming it hasn't finished yet)? Any help would be greatly, truly appreciated.
So, what did the suggested command return?

Code: Select all

apt --fix-broken install
You could also show us your sources.list just in case:

Code: Select all

find /etc/apt/sources.list* -exec cat {} +
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

Rockingcool
Posts: 6
Joined: 2022-05-03 04:46
Has thanked: 1 time

Re: Upgrading Debian 10 to 11, now I can't install C libraries

#4 Post by Rockingcool »

Okay, I woke up this morning to find that I couldn't SSH into my RPi, and it wouldn't reboot either. I'm probably just going to make a backup of the SD Card, reformat it, and install Debian 11 from scratch onto it. Thank you guys for your help, though.

User avatar
canci
Global Moderator
Global Moderator
Posts: 2502
Joined: 2006-09-24 11:28
Has thanked: 136 times
Been thanked: 136 times

Re: Upgrading Debian 10 to 11, now I can't install C libraries

#5 Post by canci »

In the future, follow the update advice given for a release.
For example, on pure Debian, it's advised to disable third party repos, as well as uninstalling third party packages, before updating and reinstalling them manually later.
If you're using Debian-based distros, like Rasbian, always check their own update procedure. It might be different from stock Debian.
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

Post Reply