pkg manager error ; broken pkgs:- libstdc++6 ; apt upgrade...fails on kali 2018.1
Lets get straight to the point i have a kali linux 2018.1 and following info is reveled when i run uname -a
Code:
root@lolt:~ :-) $ uname -a
Linux lolt 4.14.0-kali3-amd64 #1 SMP Debian 4.14.17-1kali1 (2018-02-16) x86_64 GNU/Linux
Now proceeding towards the problem, it first occured to me when i was updating my kali box using the apt-get upgarde - y command:confused:
Code:
root@lolt:~ :-) $ apt-get upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-8-base (= 8-20180312-2) but 8-20180218-1 is installed
Breaks: libstdc++6:i386 (!= 8-20180312-2) but 8-20180218-1 is installed
libstdc++6:i386 : Breaks: libstdc++6 (!= 8-20180218-1) but 8-20180312-2 is installed
mame : Depends: libportmidi0 but it is not installed
Depends: libsdl2-ttf-2.0-0 (>= 2.0.14) but it is not installed
Depends: mame-data (= 0.189+dfsg.1-1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
As specified in the above output i ran apt --fix-broken install and got the following output
Code:
root@lolt:~ :-) $ apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-8-base (= 8-20180312-2) but 8-20180218-1 is installed
Breaks: libstdc++6:i386 (!= 8-20180312-2) but 8-20180218-1 is installed
libstdc++6:i386 : Breaks: libstdc++6 (!= 8-20180218-1) but 8-20180312-2 is installed
mame : Depends: libportmidi0 but it is not installed
Depends: libsdl2-ttf-2.0-0 (>= 2.0.14) but it is not installed
Depends: mame-data (= 0.189+dfsg.1-1) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Then i decided to run apt upgrade even though i kinda knew i would end up with same error..which i did.
afterwards i ran the following to get rid the broken pkgs :-
Code:
root@hacker:~ :-) $ dpkg --remove --force-remove-reinstreq libstdc++6:i386
dpkg: dependency problems prevent removal of libstdc++6:i386:
libvpx5:i386 depends on libstdc++6 (>= 4.1.1).
libglu1-mesa:i386 depends on libstdc++6 (>= 4.1.1).
libjack-jackd2-0:i386 depends on libstdc++6 (>= 5.2).
mesa-va-drivers:i386 depends on libstdc++6 (>= 5.2).
libsnappy1v5:i386 depends on libstdc++6 (>= 5.2).
libcrystalhd3:i386 depends on libstdc++6 (>= 4.1.1).
libx265-146:i386 depends on libstdc++6 (>= 4.1.1).
libvpx4:i386 depends on libstdc++6 (>= 4.1.1).
libicu57:i386 depends on libstdc++6 (>= 5.2).
libllvm5.0:i386 depends on libstdc++6 (>= 6).
libgl1-mesa-dri:i386 depends on libstdc++6 (>= 5.2).
mesa-vdpau-drivers:i386 depends on libstdc++6 (>= 5.2).
libosmesa6:i386 depends on libstdc++6 (>= 5).
libvdpau-va-gl1:i386 depends on libstdc++6 (>= 6).
dpkg: error processing package libstdc++6:i386 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libstdc++6:i386
Due to these errors i am not able to upgrade my kali which is an issue because it gets a lot of update in order to maintain all the tools inside of it . if not necessary then i would like to get rid of the broken pkgs that are causing this problem so that i can proceed with the upgrade but if i need then in future i will just install hem again.
i have been using linux for bout an year and have just shifted from fedora to kali but had never a broken pkg error that would mess up my system this much i would love some urgent help in the matter.
Thanks for helpinghttps://lqo-thequestionsnetw.netdna-...lies/smile.gif