$ cat /etc./issue
$ Ubuntu 18.04.1 LTS
I've installed python3.6 and python3.7 from sorces. Now i'm trying to install gnome-terminal (which was for some reason removed along with python3), I fire off the following command:
$ sudo apt-get install gnome-terminal
That line is executed and yields the following output:
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:
gnome-terminal : Depends: python3 but it is not going to be installed
Depends: python3-gi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
It keeps mentioning python3
but it is installed, I can do:
$ python3 --version
$ Python 3.6.5
If I try:
$ sudo apt-get install python3
I get the following error:
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:
python3 : PreDepends: python3-minimal (= 3.6.5-3) but it is not going to be installed
Depends: python3.6 (>= 3.6.5-2~) but it is not going to be installed
Depends: libpython3-stdlib (= 3.6.5-3) but 3.6.7-1~18.04 is to be installed
E: Unable to correct problems, you have held broken packages.
If I try:
$ sudo apt-get install python3-minimal
I get:
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:
python3-minimal : Depends: python3.6-minimal (>= 3.6.5-2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And so on...what should I do?! I've entirely run out of ideas...
sudo apt autoremove --purge python3.6
on 18.04 LTS, as python 3.8 was already available. And guess what, I couldn't do anything after removing 3.6. And then I decided to reboot, hoping it would fix the issue. Guess what, I was not able to boot. I have to reinstall Ubuntu. LOL – Abhay Patil Jan 04 '21 at 14:16