PDA

View Full Version : Package Dependencies - I've messed up here



futureechos
2021-12-09, 14:15
Hi,

Having major issues with package dependencies.. Was installing an updated version of clamav, then things have gone downhill from there.

Unable to upgrade/install any packages.
Tried all these:

1) apt --fix-missing install
2) apt --fix-broken install
3) dpkg --configure -a
4) aptitude -f (which I seem to have broken)

SystemInfo:

# uname -a
1 SMP Debian 5.10.24-1kali1 (2021-03-23) x86_64 GNU/Linux
# grep -v ^# /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Cannot do any package installs/changes... please help!!!


Logged in as root (yes I know).

1) # apt --fix-missing install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
clang-3.5 : Depends: libc6-dev but it is not installed
clang-3.6 : Depends: libc6-dev but it is not installed
clang-3.8 : Depends: libc6-dev but it is not installed
Recommends: llvm-3.8-dev but it is not installable
clang-4.0 : Depends: libc6-dev but it is not installed
Recommends: llvm-4.0-dev but it is not installable
libacl1-dev : Depends: libc6-dev but it is not installed or
libc-dev
libattr1-dev : Depends: libc6-dev but it is not installed or
libc-dev
libbluetooth-dev : Depends: libc6-dev but it is not installed or
libc-dev
libegl-dev : Depends: libx11-dev but it is not installed
libexpat1-dev : Depends: libc6-dev but it is not installed or
libc-dev
libglx-dev : Depends: libx11-dev but it is not installed
libgnuradio-baz : Depends: libc6-dev but it is not installed
libncursesw6 : Depends: libtinfo6 (= 6.2+20201114-2) but 6.3-1 is installed
libstdc++-4.9-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
libstdc++-5-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
libstdc++-6-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
libstdc++-7-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
libtool : Depends: libc6-dev but it is not installed or
libc-dev
libx11-xcb-dev : Depends: libx11-dev but it is not installed
libxau-dev : Depends: x11proto-dev but it is not installed
libxext-dev : Depends: libx11-dev but it is not installed
libxt-dev : Depends: libx11-dev but it is not installed
libxxf86vm-dev : Depends: libx11-dev but it is not installed
llvm-3.5-dev : Depends: libtinfo-dev
llvm-3.6-dev : Depends: libtinfo-dev
x11proto-core-dev : Depends: x11proto-dev but it is not installed
x11proto-xext-dev : Depends: x11proto-dev but it is not installed
x11proto-xf86vidmode-dev : Depends: x11proto-dev but it is not installed
zlib1g-dev : Depends: libc6-dev but it is not installed or
libc-dev
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).



2) # apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
gnustep-base-common gnustep-common irqbalance libclang-common-3.5-dev libclang-common-3.6-dev linux-image-4.14.0-kali1-amd64 linux-image-4.14.0-kali3-amd64
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
acl attr gcc-10-base gcc-10-base:i386 libacl1 libacl1-dev libatomic1 libatomic1:i386 libattr1 libattr1-dev libbluetooth-dev libbluetooth3 libc6-dev libcc1-0 libegl-dev libegl1
libexpat1 libexpat1:i386 libexpat1-dev libgfortran5 libgl-dev libgl1 libgl1:i386 libgles-dev libgles1 libgles2 libglvnd-core-dev libglvnd-dev libglvnd0 libglvnd0:i386 libglx-dev
libglx0 libglx0:i386 libgnutls-openssl27 libgnutls30 libgnutls30:i386 libgomp1 libgomp1:i386 libitm1 libllvm11 liblsan0 libncurses-dev libncursesw6 libnsl-dev libnsl2
libopengl-dev libopengl0 libquadmath0 libtinfo-dev libtirpc-common libtirpc-dev libtirpc3 libtsan0 libubsan1 libx11-dev libxext-dev libxext6 libxext6:i386 libz3-4 libz3-4:i386
nfs-common rpcbind rpcsvc-proto x11proto-dev
Suggested packages:
glibc-doc gnutls-bin gnutls-bin:i386 ncurses-doc libxext-doc open-iscsi watchdog
The following packages will be REMOVED:
clang clang-3.5 clang-3.6 clang-3.8 clang-4.0 g++-7 gcc-7 gnustep-base-runtime libclang1-3.5 libclang1-3.6 libgcc-7-dev libgnustep-base1.25 libgnustep-base1.26 libobjc-5-dev
libobjc-6-dev libobjc-7-dev libobjc4 libstdc++-7-dev libtirpc1 linux-compiler-gcc-7-x86 linux-headers-4.14.0-kali1-amd64 linux-headers-4.14.0-kali3-amd64 unar
The following NEW packages will be installed:
libc6-dev libncurses-dev libnsl-dev libnsl2 libtinfo-dev libtirpc-common libtirpc-dev libtirpc3 libx11-dev rpcsvc-proto x11proto-dev
The following packages will be upgraded:
acl attr gcc-10-base gcc-10-base:i386 libacl1 libacl1-dev libatomic1 libatomic1:i386 libattr1 libattr1-dev libbluetooth-dev libbluetooth3 libcc1-0 libegl-dev libegl1 libexpat1
libexpat1:i386 libexpat1-dev libgfortran5 libgl-dev libgl1 libgl1:i386 libgles-dev libgles1 libgles2 libglvnd-core-dev libglvnd-dev libglvnd0 libglvnd0:i386 libglx-dev libglx0
libglx0:i386 libgnutls-openssl27 libgnutls30 libgnutls30:i386 libgomp1 libgomp1:i386 libitm1 libllvm11 liblsan0 libncursesw6 libopengl-dev libopengl0 libquadmath0 libtsan0
libubsan1 libxext-dev libxext6 libxext6:i386 libz3-4 libz3-4:i386 nfs-common rpcbind
53 upgraded, 11 newly installed, 23 to remove and 1482 not upgraded.
4 not fully installed or removed.
Need to get 0 B/47.8 MB of archives.
After this operation, 375 MB disk space will be freed.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
(Reading database ... 560596 files and directories currently installed.)
Preparing to unpack .../x11proto-dev_2021.5-1_all.deb ...
Unpacking x11proto-dev (2021.5-1) ...
dpkg: error processing archive /var/cache/apt/archives/x11proto-dev_2021.5-1_all.deb (--unpack):
trying to overwrite '/usr/include/X11/extensions/damageproto.h', which is also in package x11proto-damage-dev 1:1.2.1-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/x11proto-dev_2021.5-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


3) # dpkg --configure -a
dpkg: dependency problems prevent configuration of libxau-dev:amd64:
libxau-dev:amd64 depends on x11proto-dev; however:
Package x11proto-dev is not installed.

dpkg: error processing package libxau-dev:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of x11proto-core-dev:
x11proto-core-dev depends on x11proto-dev; however:
Package x11proto-dev is not installed.

dpkg: error processing package x11proto-core-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of x11proto-xf86vidmode-dev:
x11proto-xf86vidmode-dev depends on x11proto-dev; however:
Package x11proto-dev is not installed.

dpkg: error processing package x11proto-xf86vidmode-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of x11proto-xext-dev:
x11proto-xext-dev depends on x11proto-dev; however:
Package x11proto-dev is not installed.

dpkg: error processing package x11proto-xext-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libxau-dev:amd64
x11proto-core-dev
x11proto-xf86vidmode-dev
x11proto-xext-dev


4) aptitude -f
aptitude: /lib/x86_64-linux-gnu/libtinfo.so.6: version `NCURSES6_TINFO_6.2.current' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.6)