View Issue Details

IDProjectCategoryView StatusLast Update
0007759Kali LinuxKali Package Bugpublic2023-03-14 10:01
Reporterp4r4d0x86 Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionopen 
Product Version2022.2 
Summary0007759: 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:
 /var/cache/apt/archives/python3-pytest_6.2.5-3_all.deb

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.
https://www.kali.org/docs/general-use/python3-transition/

Activities

steev

steev

2022-06-29 05:18

manager   ~0016336

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.

g0tmi1k

g0tmi1k

2023-03-14 10:01

administrator   ~0017661

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/

Issue History

Date Modified Username Field Change
2022-06-15 14:30 p4r4d0x86 New Issue
2022-06-29 05:18 steev Note Added: 0016336
2023-03-14 10:01 g0tmi1k Note Added: 0017661
2023-03-14 10:01 g0tmi1k Status new => closed