Hello
I’ve been facing some issues with my Parrot OS installation for quite some time, mainly, easily resolvable issues, until a couple of months ago in which the system started showing up dependency related errors after a parrot system upgrade. The issue regarded a python library package which wasn’t satisfied, and, since I didn’t have any need for the library in question, nor the other packages which depended on it (I checked, no system related packages were affected), I removed the said package and autoremoved the remaining ones.
Everything seemed normal until a few days ago in which I had to execute something on python2. I tried to fetch some packages directly from pip2, but, obviously found out that pip2 was not present on the system anymore. After numerous google searches, I wasn’t able to come up with a decent solution to the issue, so, I’m asking here as a last resort, in the hopes of managing to restore the system back to normal without the need of a fresh installation
OS Version:
DISTRIB_ID=Parrot
DISTRIB_RELEASE=4.10
DISTRIB_CODENAME=rolling
DISTRIB_DESCRIPTION="Parrot 4.10"
PRETTY_NAME="Parrot GNU/Linux 4.10"
NAME="Parrot GNU/Linux"
ID=parrot
ID_LIKE=debian
VERSION="4.10"
VERSION_ID="4.10"
HOME_URL="https://www.parrotsec.org/"
SUPPORT_URL="https://community.parrotsec.org/"
BUG_REPORT_URL="https://community.parrotsec.org/"
Kernel Version:
Linux (redacted) 5.8.0-2parrot1-amd64 #1 SMP Debian 5.8.10-2parrot1 (2020-10-05) x86_64 GNU/Linux
How did you get this error? Are there any steps to procedure it?
So basically, this is part of a bigger chain of errors that started showing up after the domain switch/repository changes on parrot. These errors involve issues with general parrot updates and package installations. During all this time I’ve mostly been using the inbuilt gui updater, and occasionally the parrot-upgrade script included by default (should be the same). The first immediate issue with the system showed up right after the above referenced announcement. I upgraded, performed a reboot, and found myself with a parrot installation running Mate DE (I use Parrot KDE). This went on and, I suspect, generally degraded the integrity of the system, update after update, to the point in which I am left with a corrupt python2 installation and missing packages from the official repos (ex: zenmap)
Error logs / Screenshots:
Scenario 1: Python2 PIP Installation
apt update
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 https://deb.parrot.sh/parrot rolling InRelease
Hit:3 https://deb.parrot.sh/parrot rolling-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
┌─[root@(redacted)]─[~]
└──╼ #apt install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 20.0.2-5kali1) but it is not going to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not installable
E: Unable to correct problems, you have held broken packages.
┌─[root@(redacted)]─[~]
└──╼ #apt show python-pip-whl
Package: python-pip-whl
Version: 20.1.1-2
Built-Using: appdirs (= 1.4.4-1), chardet (= 3.0.4-7), contextlib2 (= 0.6.0-3), distlib (= 0.3.0-1), html5lib (= 1.0.1-3), pep517 (= 0.8.2-1), pyparsing (= 2.4.7-1), python-cachecontrol (= 0.12.6-1), python-certifi (= 2020.4.5.1-1), python-colorama (= 0.4.3-1), python-distro (= 1.5.0-1), python-idna (= 2.9-1), python-ipaddr (= 2.2.0-4), python-lockfile (= 1:0.12.2-2.2), python-msgpack (= 0.6.2-1), python-packaging (= 20.3-1.2), python-progress (= 1.5-1), python-resolvelib (= 0.3.0-2), python-retrying (= 1.3.3-4), python-setuptools (= 44.0.0-3), python-toml (= 0.10.1-1), python-urllib3 (= 1.25.9-1), python-webencodings (= 0.5.1-2), requests (= 2.23.0+dfsg-2), six (= 1.15.0-1), wheel (= 0.34.2-1)
Priority: optional
Section: python
Source: python-pip
Maintainer: Debian Python Modules Team <[email protected]>
Installed-Size: 2,230 kB
Depends: ca-certificates
Homepage: https://pip.pypa.io/en/stable/
Download-Size: 1,887 kB
APT-Sources: https://deb.parrot.sh/parrot rolling/main amd64 Packages
Description: Python package installer (pip wheels)
pip is the Python package installer. It integrates with virtualenv, doesn't
do partial installs, can save package state for replaying, can install from
non-egg sources, and can install from version control repositories.
.
This is the support package for the PEP 427 wheel version of the package,
required for using pip inside a virtual environment.
┌─[root@(redacted)]─[/etc/apt/preferences.d]
└──╼ #apt show python-wheel
Package: python-wheel
State: not a real package (virtual)
N: Can't select candidate version from package python-wheel as it has no candidate
N: Can't select versions from package 'python-wheel' as it is purely virtual
N: No packages found
┌─[root@(redacted)]─[/etc/apt/preferences.d]
└──╼ #apt search python-wheel
Sorting... Done
Full Text Search... Done
python-wheel-common/rolling 0.34.2-1 all
built-package format for Python (command-line scripts)
Scenario 2: Missing packages
┌─[root@(redacted)]─[~]
└──╼ #apt search zenmap
Sorting... Done
Full Text Search... Done
┌─[root@(redacted)]─[~]
└──╼ #apt install zenmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package zenmap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ndiff
E: Package 'zenmap' has no installation candidate
If you have any idea or suggestion about this issue please tell us:
I have no idea what the root cause of the issue could be or could have been, since I’ve never added/removed anything to the parrot stock repositories (other than adding a 3rd party repo from microsoft in order to fetch updated vscode releases, which, I highly doubt has anything to do with the current situation)
Thanks in advance for your assistance!