I am using Ubuntu 21.10. When I write this in command line:
sudo apt-get install python3-pip
It gives this:
Reading package lists... Done
Building dependency tree... Done
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:
python3-distutils : Depends: python3-lib2to3 (= 3.9.5-0ubuntu3) but 3.9.7-1 is to be installed
python3-setuptools : Depends: python3-pkg-resources (= 52.0.0-3) but 52.0.0-4 is to be installed
E: Unable to correct problems, you have held broken packages.
How do I solve this?
sudo apt update
andsudo apt upgrade
will help. – Beki Sep 29 '22 at 12:33