View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007759||Kali Linux||[All Projects] Kali Package Bug||public||2022-06-15 14:30||2023-03-14 10:01|
|Target Version||Fixed in Version|
|Summary||0007759: python3-pytest (deps of python3-pluggy) vs python-pytest (python2) overwrite problem|
|Description||On multiple Kali installations, after an 'apt upgrade', a 'python3-pluggy' package dependency was not met and was concerning 'python3-pytest' package that can't be upgraded because of an overwrite conflict with python-pytest (python2 equivalent).|
The following packages have unmet dependencies:
python3-pytest : Depends: python3-pluggy (< 1.0) but 1.0.0-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
If you try the "apt --fix-broken install" command:
Unpacking python3-pytest (6.2.5-3) over (6.0.2-2) ...
dpkg: error processing archive /var/cache/apt/archives/python3-pytest_6.2.5-3_all.deb (--unpack):
trying to overwrite '/usr/bin/py.test', which is also in package python-pytest 4.6.9-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
Removing the package requiring this dependency was not possible either because of this dependancy problem.
The only solution was to force the overwrite hoping it is not breaking anything else:
sudo apt-get -o Dpkg::Options::="--force-overwrite" install python3-pytest
The original Kali image(s) were probably a 2020 or a 2019 that was upgraded multiple times up to the latest version.
It was before the migration from python2 to python3 in Kali ... this is probably why we were having this problem.
||Are you saying you can't uninstall python-pytest? That isn't in our repos, and hasn't been in a long time, since the python2 EOL removal of packages.|
This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?
If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/