Installed self-compiled Python 3.7.0 as “python”, how to remove it? The Next CEO of Stack...
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
How to use ReplaceAll on an expression that contains a rule
Film where the government was corrupt with aliens, people sent to kill aliens are given rigged visors not showing the right aliens
Which one is the true statement?
what's the use of '% to gdp' type of variables?
Do scriptures give a method to recognize a truly self-realized person/jivanmukta?
Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank
What flight has the highest ratio of timezone difference to flight time?
Purpose of level-shifter with same in and out voltages
How to find image of a complex function with given constraints?
Easy to read palindrome checker
From jafe to El-Guest
What day is it again?
How to avoid supervisors with prejudiced views?
Is there an equivalent of cd - for cp or mv
What are the unusually-enlarged wing sections on this P-38 Lightning?
"Eavesdropping" vs "Listen in on"
TikZ: How to fill area with a special pattern?
Expressing the idea of having a very busy time
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
Aggressive Under-Indexing and no data for missing index
Is it correct to say moon starry nights?
Man transported from Alternate World into ours by a Neutrino Detector
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Installed self-compiled Python 3.7.0 as “python”, how to remove it?
The Next CEO of Stack OverflowHow do I get the history of “apt-get install” on Ubuntu?How do I get Apache to run Python 2.7 rather than 2.5?dpkg error installing on Ubuntu 10.04ubuntu server: SSH banner telling to update packages but nothing to updateHow to tell apt-get to ignore unmet dependencies forever?bzr not installing against newer python installed on debianInstalling mod_wsgi with python 2.7 on ubuntuUnable to install python2.7-dev due to unmet dependencies Ubuntu 12.04How to create Python (2.7.3) RPM package?How do I ignore unmet dependencies while using apt-get remove?
I have made a huge mistake on my Ubuntu 16.04 server.
I compiled and installed Python 3.7.0 from source using make altinstall
, but I did not include all of the core dependencies I needed, so I was going to remove it and install a pre-packaged deb instead.
However, to remove it, I used this method with checkinstall. I generated a deb so that I could then remove all of the files created by the original installation, but for the deb's package name, I just left the default python
.
Now, I have the following package installed:
$ sudo dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ri python 3.7.0-1 amd64 Package created with checkinstall 1.6.2
This means that I cannot run dpkg -r python
because system packages depend on a metapackage just called python
:
$ sudo dpkg -r python
dpkg: dependency problems prevent removal of python:
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
samba-common-bin depends on python.
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
python-cryptography depends on python (<< 2.8).
py
dpkg: error processing package python (--remove):
dependency problems - not removing
Errors were encountered while processing:
python
And I cannot install the default version of python again because I have the wrong version installed for python
:
$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (3.7.0-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
iotop : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-acme : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-asn1crypto : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-certifi : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-cffi-backend : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-chardet : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-configparser : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-crypto : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-cryptography : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-enum34 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-funcsigs : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-future : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-idna : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ipaddress : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-josepy : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ldb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-mock : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-openssl : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-parsedatetime : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pbr : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pyicu : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-requests-toolbelt : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-rfc3339 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-setuptools : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-six : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-talloc : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-tdb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-tz : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-urllib3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Recommends: attr but it is not going to be installed
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Running that scares me, so I chose no:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
iotop python-acme python-asn1crypto python-certifi python-cffi-backend python-chardet python-configparser python-crypto python-cryptography python-dnspython python-enum34 python-funcsigs python-future python-idna python-ipaddress
python-josepy python-ldb python-mock python-openssl python-parsedatetime python-pbr python-pkg-resources python-pyicu python-requests python-requests-toolbelt python-rfc3339 python-samba python-setuptools python-six python-talloc
python-tdb python-tz python-urllib3 samba samba-common-bin samba-libs
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 56.7 MB disk space will be freed.
Do you want to continue? [Y/n]
Is there any way to recover from this?
Thanks in advance!
ubuntu python apt dependencies dpkg
New contributor
add a comment |
I have made a huge mistake on my Ubuntu 16.04 server.
I compiled and installed Python 3.7.0 from source using make altinstall
, but I did not include all of the core dependencies I needed, so I was going to remove it and install a pre-packaged deb instead.
However, to remove it, I used this method with checkinstall. I generated a deb so that I could then remove all of the files created by the original installation, but for the deb's package name, I just left the default python
.
Now, I have the following package installed:
$ sudo dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ri python 3.7.0-1 amd64 Package created with checkinstall 1.6.2
This means that I cannot run dpkg -r python
because system packages depend on a metapackage just called python
:
$ sudo dpkg -r python
dpkg: dependency problems prevent removal of python:
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
samba-common-bin depends on python.
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
python-cryptography depends on python (<< 2.8).
py
dpkg: error processing package python (--remove):
dependency problems - not removing
Errors were encountered while processing:
python
And I cannot install the default version of python again because I have the wrong version installed for python
:
$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (3.7.0-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
iotop : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-acme : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-asn1crypto : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-certifi : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-cffi-backend : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-chardet : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-configparser : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-crypto : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-cryptography : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-enum34 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-funcsigs : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-future : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-idna : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ipaddress : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-josepy : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ldb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-mock : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-openssl : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-parsedatetime : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pbr : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pyicu : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-requests-toolbelt : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-rfc3339 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-setuptools : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-six : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-talloc : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-tdb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-tz : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-urllib3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Recommends: attr but it is not going to be installed
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Running that scares me, so I chose no:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
iotop python-acme python-asn1crypto python-certifi python-cffi-backend python-chardet python-configparser python-crypto python-cryptography python-dnspython python-enum34 python-funcsigs python-future python-idna python-ipaddress
python-josepy python-ldb python-mock python-openssl python-parsedatetime python-pbr python-pkg-resources python-pyicu python-requests python-requests-toolbelt python-rfc3339 python-samba python-setuptools python-six python-talloc
python-tdb python-tz python-urllib3 samba samba-common-bin samba-libs
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 56.7 MB disk space will be freed.
Do you want to continue? [Y/n]
Is there any way to recover from this?
Thanks in advance!
ubuntu python apt dependencies dpkg
New contributor
add a comment |
I have made a huge mistake on my Ubuntu 16.04 server.
I compiled and installed Python 3.7.0 from source using make altinstall
, but I did not include all of the core dependencies I needed, so I was going to remove it and install a pre-packaged deb instead.
However, to remove it, I used this method with checkinstall. I generated a deb so that I could then remove all of the files created by the original installation, but for the deb's package name, I just left the default python
.
Now, I have the following package installed:
$ sudo dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ri python 3.7.0-1 amd64 Package created with checkinstall 1.6.2
This means that I cannot run dpkg -r python
because system packages depend on a metapackage just called python
:
$ sudo dpkg -r python
dpkg: dependency problems prevent removal of python:
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
samba-common-bin depends on python.
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
python-cryptography depends on python (<< 2.8).
py
dpkg: error processing package python (--remove):
dependency problems - not removing
Errors were encountered while processing:
python
And I cannot install the default version of python again because I have the wrong version installed for python
:
$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (3.7.0-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
iotop : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-acme : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-asn1crypto : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-certifi : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-cffi-backend : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-chardet : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-configparser : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-crypto : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-cryptography : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-enum34 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-funcsigs : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-future : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-idna : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ipaddress : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-josepy : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ldb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-mock : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-openssl : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-parsedatetime : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pbr : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pyicu : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-requests-toolbelt : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-rfc3339 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-setuptools : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-six : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-talloc : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-tdb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-tz : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-urllib3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Recommends: attr but it is not going to be installed
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Running that scares me, so I chose no:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
iotop python-acme python-asn1crypto python-certifi python-cffi-backend python-chardet python-configparser python-crypto python-cryptography python-dnspython python-enum34 python-funcsigs python-future python-idna python-ipaddress
python-josepy python-ldb python-mock python-openssl python-parsedatetime python-pbr python-pkg-resources python-pyicu python-requests python-requests-toolbelt python-rfc3339 python-samba python-setuptools python-six python-talloc
python-tdb python-tz python-urllib3 samba samba-common-bin samba-libs
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 56.7 MB disk space will be freed.
Do you want to continue? [Y/n]
Is there any way to recover from this?
Thanks in advance!
ubuntu python apt dependencies dpkg
New contributor
I have made a huge mistake on my Ubuntu 16.04 server.
I compiled and installed Python 3.7.0 from source using make altinstall
, but I did not include all of the core dependencies I needed, so I was going to remove it and install a pre-packaged deb instead.
However, to remove it, I used this method with checkinstall. I generated a deb so that I could then remove all of the files created by the original installation, but for the deb's package name, I just left the default python
.
Now, I have the following package installed:
$ sudo dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ri python 3.7.0-1 amd64 Package created with checkinstall 1.6.2
This means that I cannot run dpkg -r python
because system packages depend on a metapackage just called python
:
$ sudo dpkg -r python
dpkg: dependency problems prevent removal of python:
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-talloc depends on python (<< 2.8).
python-talloc depends on python (>= 2.7~).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
python-pyicu depends on python (>= 2.7).
python-pyicu depends on python (<< 2.8).
samba-common-bin depends on python.
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
samba depends on python (>= 2.7).
samba depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
iotop depends on python (>= 2.7.1-0ubuntu2).
iotop depends on python (<< 2.8).
python-cryptography depends on python (<< 2.8).
py
dpkg: error processing package python (--remove):
dependency problems - not removing
Errors were encountered while processing:
python
And I cannot install the default version of python again because I have the wrong version installed for python
:
$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (3.7.0-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
iotop : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-acme : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-asn1crypto : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-certifi : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-cffi-backend : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-chardet : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-configparser : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-crypto : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-cryptography : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-enum34 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-funcsigs : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-future : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-idna : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ipaddress : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-josepy : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ldb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-mock : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-openssl : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-parsedatetime : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pbr : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pyicu : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-requests-toolbelt : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-rfc3339 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-setuptools : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-six : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-talloc : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-tdb : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-tz : Depends: python (< 2.8) but 3.7.0-1 is to be installed
python-urllib3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
samba : Depends: python (< 2.8) but 3.7.0-1 is to be installed
Recommends: attr but it is not going to be installed
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Running that scares me, so I chose no:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
iotop python-acme python-asn1crypto python-certifi python-cffi-backend python-chardet python-configparser python-crypto python-cryptography python-dnspython python-enum34 python-funcsigs python-future python-idna python-ipaddress
python-josepy python-ldb python-mock python-openssl python-parsedatetime python-pbr python-pkg-resources python-pyicu python-requests python-requests-toolbelt python-rfc3339 python-samba python-setuptools python-six python-talloc
python-tdb python-tz python-urllib3 samba samba-common-bin samba-libs
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 56.7 MB disk space will be freed.
Do you want to continue? [Y/n]
Is there any way to recover from this?
Thanks in advance!
ubuntu python apt dependencies dpkg
ubuntu python apt dependencies dpkg
New contributor
New contributor
New contributor
asked 3 mins ago
Andy CastilleAndy Castille
1012
1012
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Andy Castille is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960880%2finstalled-self-compiled-python-3-7-0-as-python-how-to-remove-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Andy Castille is a new contributor. Be nice, and check out our Code of Conduct.
Andy Castille is a new contributor. Be nice, and check out our Code of Conduct.
Andy Castille is a new contributor. Be nice, and check out our Code of Conduct.
Andy Castille is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960880%2finstalled-self-compiled-python-3-7-0-as-python-how-to-remove-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown