Ubuntu 18.04.2 install python2.7, unmet dependencyUnable to correct problems, you have held broken packagesDo I need linux-libc-dev and libc6-dev?dependency error on libc6-amd64 even if it's already installedbroken packages with PgAdmin3 version 1.20 in Ubuntu 14 LTSCan't install libpng-devPackage system is broken (16.04)Unable to install postgreSQL 9.6 in Ubuntu 18.04Why are the Python dependencies listed by Ubuntu different than what apt-get installs

Exactly what color was the text on monochrome terminals with green-on-black and amber-on-black screens?

How can I speed up secure erasing of a disk?

How do I negotiate salary when returning to a position I just left?

Starting with D&D: Starter Set vs Dungeon Master's Guide

Feedback resistors and op-amp instability

Does Estonia have discount supermarket chains like Aldi and Lidl?

I might blow up!

Can Vice President Pence be impeached before President Trump?

Miniseries in post-rapture US with good/evil conflict

Too many pull requests in backlog

What is a polite way to clarify my gender in phone calls?

Is it necessary to wipe out vile man-eating dragons?

What are the benefits of multi file programming?

How to tell that this is a draw

Threatening to discontinue a service for a client

What is the difference between "cat < filename" and "cat filename"?

Large products with glass doors

What is the best way to go about re-learning an instrument?

My advisor wants me to make my PhD thesis weaker

Big equation writing in LaTeX

Where can I read the oldest and purest texts of Budhism

If password expiration is applied, should door-lock expiration be applied too?

Because things smell, is everything evaporating?

Different colours for different sectors of piecewise function



Ubuntu 18.04.2 install python2.7, unmet dependency


Unable to correct problems, you have held broken packagesDo I need linux-libc-dev and libc6-dev?dependency error on libc6-amd64 even if it's already installedbroken packages with PgAdmin3 version 1.20 in Ubuntu 14 LTSCan't install libpng-devPackage system is broken (16.04)Unable to install postgreSQL 9.6 in Ubuntu 18.04Why are the Python dependencies listed by Ubuntu different than what apt-get installs






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I cannot install python2 on my ubuntu 18.04.2, below are what I did:



bo@ubuntu18:~$ sudo apt install python
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 resolve the situation:

The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


So step by step, I found the source problem is that I cannot install libpython2.7 on my laptop:



The following packages have unmet dependencies:
python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1) but 2.7.15~rc1-1ubuntu0.1 is to be installed
Recommends: python2.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Does anyone know how to resolve this problem?




The output of apt-cache policy python libpython2.7-minimal



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: (none)
Candidate: 2.7.15~rc1-1
Version table:
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages
libpython2.7-minimal:
Installed: 2.7.15~rc1-1ubuntu0.1
Candidate: 2.7.15~rc1-1ubuntu0.1
Version table:
*** 2.7.15~rc1-1ubuntu0.1 100
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages


Then I changed a software source and updated something. It works.



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: 2.7.15~rc1-1
Candidate: 2.7.15~rc1-1
Version table:
*** 2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
libpython2.7-minimal:
Installed: 2.7.15-4ubuntu4~18.04.1
Candidate: 2.7.15-4ubuntu4~18.04.1
Version table:
*** 2.7.15-4ubuntu4~18.04.1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages









share|improve this question



























  • Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

    – user535733
    Sep 15 at 3:25












  • Please add output of apt-cache policy python libpython2.7-minimal to the question.

    – N0rbert
    Sep 15 at 9:35












  • I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

    – bo yang
    Sep 15 at 12:19











  • Possible duplicate of Unable to correct problems, you have held broken packages

    – karel
    Sep 15 at 12:39

















0


















I cannot install python2 on my ubuntu 18.04.2, below are what I did:



bo@ubuntu18:~$ sudo apt install python
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 resolve the situation:

The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


So step by step, I found the source problem is that I cannot install libpython2.7 on my laptop:



The following packages have unmet dependencies:
python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1) but 2.7.15~rc1-1ubuntu0.1 is to be installed
Recommends: python2.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Does anyone know how to resolve this problem?




The output of apt-cache policy python libpython2.7-minimal



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: (none)
Candidate: 2.7.15~rc1-1
Version table:
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages
libpython2.7-minimal:
Installed: 2.7.15~rc1-1ubuntu0.1
Candidate: 2.7.15~rc1-1ubuntu0.1
Version table:
*** 2.7.15~rc1-1ubuntu0.1 100
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages


Then I changed a software source and updated something. It works.



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: 2.7.15~rc1-1
Candidate: 2.7.15~rc1-1
Version table:
*** 2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
libpython2.7-minimal:
Installed: 2.7.15-4ubuntu4~18.04.1
Candidate: 2.7.15-4ubuntu4~18.04.1
Version table:
*** 2.7.15-4ubuntu4~18.04.1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages









share|improve this question



























  • Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

    – user535733
    Sep 15 at 3:25












  • Please add output of apt-cache policy python libpython2.7-minimal to the question.

    – N0rbert
    Sep 15 at 9:35












  • I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

    – bo yang
    Sep 15 at 12:19











  • Possible duplicate of Unable to correct problems, you have held broken packages

    – karel
    Sep 15 at 12:39













0













0









0


0






I cannot install python2 on my ubuntu 18.04.2, below are what I did:



bo@ubuntu18:~$ sudo apt install python
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 resolve the situation:

The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


So step by step, I found the source problem is that I cannot install libpython2.7 on my laptop:



The following packages have unmet dependencies:
python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1) but 2.7.15~rc1-1ubuntu0.1 is to be installed
Recommends: python2.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Does anyone know how to resolve this problem?




The output of apt-cache policy python libpython2.7-minimal



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: (none)
Candidate: 2.7.15~rc1-1
Version table:
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages
libpython2.7-minimal:
Installed: 2.7.15~rc1-1ubuntu0.1
Candidate: 2.7.15~rc1-1ubuntu0.1
Version table:
*** 2.7.15~rc1-1ubuntu0.1 100
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages


Then I changed a software source and updated something. It works.



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: 2.7.15~rc1-1
Candidate: 2.7.15~rc1-1
Version table:
*** 2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
libpython2.7-minimal:
Installed: 2.7.15-4ubuntu4~18.04.1
Candidate: 2.7.15-4ubuntu4~18.04.1
Version table:
*** 2.7.15-4ubuntu4~18.04.1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages









share|improve this question
















I cannot install python2 on my ubuntu 18.04.2, below are what I did:



bo@ubuntu18:~$ sudo apt install python
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 resolve the situation:

The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


So step by step, I found the source problem is that I cannot install libpython2.7 on my laptop:



The following packages have unmet dependencies:
python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1) but 2.7.15~rc1-1ubuntu0.1 is to be installed
Recommends: python2.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Does anyone know how to resolve this problem?




The output of apt-cache policy python libpython2.7-minimal



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: (none)
Candidate: 2.7.15~rc1-1
Version table:
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages
libpython2.7-minimal:
Installed: 2.7.15~rc1-1ubuntu0.1
Candidate: 2.7.15~rc1-1ubuntu0.1
Version table:
*** 2.7.15~rc1-1ubuntu0.1 100
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://mirror.clibre.uqam.ca/ubuntu bionic/main amd64 Packages


Then I changed a software source and updated something. It works.



bo@ubuntu18:~$ apt-cache policy python libpython2.7-minimal
python:
Installed: 2.7.15~rc1-1
Candidate: 2.7.15~rc1-1
Version table:
*** 2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
libpython2.7-minimal:
Installed: 2.7.15-4ubuntu4~18.04.1
Candidate: 2.7.15-4ubuntu4~18.04.1
Version table:
*** 2.7.15-4ubuntu4~18.04.1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.7.15~rc1-1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages






apt 18.04 python dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 15 at 12:55







bo yang

















asked Sep 14 at 21:50









bo yangbo yang

11 bronze badge




11 bronze badge















  • Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

    – user535733
    Sep 15 at 3:25












  • Please add output of apt-cache policy python libpython2.7-minimal to the question.

    – N0rbert
    Sep 15 at 9:35












  • I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

    – bo yang
    Sep 15 at 12:19











  • Possible duplicate of Unable to correct problems, you have held broken packages

    – karel
    Sep 15 at 12:39

















  • Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

    – user535733
    Sep 15 at 3:25












  • Please add output of apt-cache policy python libpython2.7-minimal to the question.

    – N0rbert
    Sep 15 at 9:35












  • I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

    – bo yang
    Sep 15 at 12:19











  • Possible duplicate of Unable to correct problems, you have held broken packages

    – karel
    Sep 15 at 12:39
















Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

– user535733
Sep 15 at 3:25






Looks like you are trying to install the package from some non-Ubuntu source, or you tried (and perhaps failed) to install and didn't clean up afterward. Use apt-cache policy libpython2.7-minimal to determine which non-Ubuntu or obsolete source the 2.7.15~rc1-1ubuntu0.1 version is coming from, then disable that source, then run sudo apt update to refresh your package database from the remaining (valid) sources.

– user535733
Sep 15 at 3:25














Please add output of apt-cache policy python libpython2.7-minimal to the question.

– N0rbert
Sep 15 at 9:35






Please add output of apt-cache policy python libpython2.7-minimal to the question.

– N0rbert
Sep 15 at 9:35














I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

– bo yang
Sep 15 at 12:19





I have added the apt-cache policy python libpython2.7-minimal's output. @user535733 @N0rbert

– bo yang
Sep 15 at 12:19













Possible duplicate of Unable to correct problems, you have held broken packages

– karel
Sep 15 at 12:39





Possible duplicate of Unable to correct problems, you have held broken packages

– karel
Sep 15 at 12:39










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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/4.0/"u003ecc by-sa 4.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
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174213%2fubuntu-18-04-2-install-python2-7-unmet-dependency%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
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174213%2fubuntu-18-04-2-install-python2-7-unmet-dependency%23new-answer', 'question_page');

);

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









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?