PDA

View Full Version : UPGRADE BUG: package conflicts...



rcfa
2022-05-17, 00:06
There seem to be consistently conflicts between packages part of the Kali RasPi distribution:



┌──(root��kalipi)-[~]
└─# apt update -y ; apt -y full-upgrade ; apt -y autoremove --purge ; apt -y autoclean ; ~root/scripts/MathematicaAuth.sh
Hit:1 https://downloads.plex.tv/repo/deb public InRelease
Hit:2 http://ppa.launchpad.net/sebastian-stenzel/cryptomator/ubuntu impish InRelease
Hit:3 https://kali.download/kali kali-rolling InRelease
Hit:4 https://kali.download/kali kali-bleeding-edge InRelease
Ign:5 https://get.filebot.net/deb universal InRelease
Hit:6 https://get.filebot.net/deb universal Release
Hit:7 http://http.re4son-kernel.com/re4son kali-pi InRelease
Ign:9 http://download.webmin.com/download/repository sarge InRelease
Hit:10 http://download.webmin.com/download/repository sarge Release
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
raspi-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4.810 kB of archives.
After this operation, 1.024 B of additional disk space will be used.
(Reading database ... 1027548 files and directories currently installed.)
Preparing to unpack .../raspi-firmware_1.20220331+ds-2_all.deb ...
Unpacking raspi-firmware (1.20220331+ds-2) over (1.20220331+ds-1) ...
dpkg: error processing archive /var/cache/apt/archives/raspi-firmware_1.20220331+ds-2_all.deb (--unpack):
trying to overwrite '/lib/firmware/brcm/brcmfmac43456-sdio.bin', which is also in package kalipi-re4son-firmware 5.10.103-20220504
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/raspi-firmware_1.20220331+ds-2_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done


and also:



┌──(root��kalipi)-[~]
└─# apt update -y ; apt -y full-upgrade ; apt -y autoremove --purge ; apt -y autoclean ; ~root/scripts/MathematicaAuth.sh
Ign:1 http://download.webmin.com/download/repository sarge InRelease
Hit:2 http://ppa.launchpad.net/sebastian-stenzel/cryptomator/ubuntu impish InRelease
Hit:3 https://downloads.plex.tv/repo/deb public InRelease
Hit:4 https://kali.download/kali kali-rolling InRelease
Hit:5 http://download.webmin.com/download/repository sarge Release
Hit:6 https://kali.download/kali kali-bleeding-edge InRelease
Ign:7 https://get.filebot.net/deb universal InRelease
Hit:8 https://get.filebot.net/deb universal Release
Hit:10 http://http.re4son-kernel.com/re4son kali-pi InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
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:
kali-linux-everything : Depends: poshc2 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
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:
kali-linux-everything : Depends: poshc2 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

┌──(root��kalipi)-[~]
└─# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libnode83
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
poshc2
Recommended packages:
powershell
The following NEW packages will be installed:
poshc2
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
302 not fully installed or removed.
Need to get 0 B/10,1 MB of archives.
After this operation, 38,5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 1027238 files and directories currently installed.)
Preparing to unpack .../poshc2_7.4.0-0kali1_all.deb ...
Unpacking poshc2 (7.4.0-0kali1) ...
dpkg: error processing archive /var/cache/apt/archives/poshc2_7.4.0-0kali1_all.deb (--unpack):
trying to overwrite '/usr/bin/posh', which is also in package posh 0.14.1
Errors were encountered while processing:
/var/cache/apt/archives/poshc2_7.4.0-0kali1_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


The first I could "fix" by issuing



dpkg -i --force-all /var/cache/apt/archives/raspi-firmware_1.20220331+ds-2_all.deb
dpkg -i --force-all /var/cache/apt/archives/kalipi-re4son-firmware_5.10.103-20220504_arm64.deb


The second by de- and then re-installing the kali-everything meta package.

These seem to be rather crude methods to solve what seem to be fundamental conflicts which can only be resolved by somehow installing things in the "proper' order and some thinking.

But, really, packages shouldn't install the same or same named files, especially not if they are part of the same distribution/repo, and not some conflict with some unsupported third party repo...

Am I the only one with such issues? I feel like I'm conducting a monologue here...

Fred Sheehan
2022-08-01, 21:30
packages often overwrite previous versions because lots of Linux users have symlinks set up that would otherwise break after updates if they were named differently