1. Introduction
Not so long ago I had the following issue:
The following packages have unmet dependencies.
libc6-dev : Breaks : libgcc-9-dev (< 9.3.0.5~) but 9.2.1-19 is to be installed
I was trying to install Blueman to be able to easily deal with my Bluetooth devices on Kali Linux, and then this error popped up.
2. Solution
2.1. Find the var/lib/dpkg/status file and open it with handy text editor
To solve this issue, we need to open the var/lib/dpkg/status file with one of the text editors and remove info related to libgcc-9-dev. For this purpose, we’ll be using nano text editor:
sudo nano /var/lib/dpkg/status (通过这个命令修改包)
You’ll notice that the file consists of a list of package names and their statuses. Our goal here is to locate libgcc-9-dev package info block.
2.2. Locate the libgcc-9-dev package info in the file and remove it
And then we find the following problematic version of the package to be deleted until the line on homepage, so, look for the tracking block in the text:
Package: libgcc-9-dev
Status: install ok installed
Priority: important
....
....
Homepage: http://gcc.gnu.org/
When you find it, delete the whole block, from the Package to the Homepage line and after that save and close the file.
2.3. Update & Upgrade
After you removed the libgcc-9-dev block from the status file, do the system update&upgrade:
sudo apt-get update
sudo apt-get upgrade
2.4. Fix broken installations
Execute the following command to fix broken installations:
sudo apt --fix-broken install
3. Conclusion
In this short tutorial we showed how to solve libc6-dev : Breaks : libgcc-9-dev (< 9.3.0.5~) but 9.2.1-19 is to be installed issue.
未经允许不得转载:萌萌Apprentissage » Solved interdependents - libc6-dev breaks libgcc-9-dev solves the problem of the Linux package version
linux One Chinese script
Google shell enable enhanced mode 4 nuclear 16G RAM
Tmux use tutorial
Screen's summary
I'm gonna get you a new one, shell.cloud.google on the line.
Linux Memory Clearing