Solved - Cannot install python3.7-venv in (X)Ubuntu 18.10











up vote
0
down vote

favorite












I just updated my XUbuntu 18.04 installation to 18.10 (note: for some reason I stopped do-release-upgrade while the packages were still downloading, then I continued it apt upgrade + reboot, everything seems fine).
I installed python3.7 via package manager and tried to make it the default:



sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
# This may not be needed for only 1 alternative, but does not hurt to run it:
sudo update-alternatives --config python


This is the problem:



$ sudo apt install python3.7-venv 
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.7-venv : Depends: python3.7 (= 3.7.1-1~18.10) but 3.7.1-1+bionic1 is to be installed
E: Unable to correct problems, you have held broken packages.


Why does it try to use bionic and how to fix it?



My system is fully updated, just ran apt update, and apt upgrade says: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



My /etc/apt/source.list (note I manually deleted the commented out bionic lines to clean it up):



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic universe
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu cosmic partner

deb http://security.ubuntu.com/ubuntu cosmic-security main restricted
deb http://security.ubuntu.com/ubuntu cosmic-security universe
deb http://security.ubuntu.com/ubuntu cosmic-security multiverse
# deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable # disabled on upgrade to cosmic
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable


Note: I also tried to use another mirror, then sudo apt update but the error remained the same.










share|improve this question
























  • Please, post the output of sudo apt install python3.7.
    – Olimjon
    Nov 22 at 14:40












  • @Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
    – Attila123
    Nov 22 at 15:01










  • Glad it helped...
    – Olimjon
    Nov 22 at 15:16















up vote
0
down vote

favorite












I just updated my XUbuntu 18.04 installation to 18.10 (note: for some reason I stopped do-release-upgrade while the packages were still downloading, then I continued it apt upgrade + reboot, everything seems fine).
I installed python3.7 via package manager and tried to make it the default:



sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
# This may not be needed for only 1 alternative, but does not hurt to run it:
sudo update-alternatives --config python


This is the problem:



$ sudo apt install python3.7-venv 
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.7-venv : Depends: python3.7 (= 3.7.1-1~18.10) but 3.7.1-1+bionic1 is to be installed
E: Unable to correct problems, you have held broken packages.


Why does it try to use bionic and how to fix it?



My system is fully updated, just ran apt update, and apt upgrade says: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



My /etc/apt/source.list (note I manually deleted the commented out bionic lines to clean it up):



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic universe
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu cosmic partner

deb http://security.ubuntu.com/ubuntu cosmic-security main restricted
deb http://security.ubuntu.com/ubuntu cosmic-security universe
deb http://security.ubuntu.com/ubuntu cosmic-security multiverse
# deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable # disabled on upgrade to cosmic
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable


Note: I also tried to use another mirror, then sudo apt update but the error remained the same.










share|improve this question
























  • Please, post the output of sudo apt install python3.7.
    – Olimjon
    Nov 22 at 14:40












  • @Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
    – Attila123
    Nov 22 at 15:01










  • Glad it helped...
    – Olimjon
    Nov 22 at 15:16













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I just updated my XUbuntu 18.04 installation to 18.10 (note: for some reason I stopped do-release-upgrade while the packages were still downloading, then I continued it apt upgrade + reboot, everything seems fine).
I installed python3.7 via package manager and tried to make it the default:



sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
# This may not be needed for only 1 alternative, but does not hurt to run it:
sudo update-alternatives --config python


This is the problem:



$ sudo apt install python3.7-venv 
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.7-venv : Depends: python3.7 (= 3.7.1-1~18.10) but 3.7.1-1+bionic1 is to be installed
E: Unable to correct problems, you have held broken packages.


Why does it try to use bionic and how to fix it?



My system is fully updated, just ran apt update, and apt upgrade says: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



My /etc/apt/source.list (note I manually deleted the commented out bionic lines to clean it up):



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic universe
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu cosmic partner

deb http://security.ubuntu.com/ubuntu cosmic-security main restricted
deb http://security.ubuntu.com/ubuntu cosmic-security universe
deb http://security.ubuntu.com/ubuntu cosmic-security multiverse
# deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable # disabled on upgrade to cosmic
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable


Note: I also tried to use another mirror, then sudo apt update but the error remained the same.










share|improve this question















I just updated my XUbuntu 18.04 installation to 18.10 (note: for some reason I stopped do-release-upgrade while the packages were still downloading, then I continued it apt upgrade + reboot, everything seems fine).
I installed python3.7 via package manager and tried to make it the default:



sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
# This may not be needed for only 1 alternative, but does not hurt to run it:
sudo update-alternatives --config python


This is the problem:



$ sudo apt install python3.7-venv 
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.7-venv : Depends: python3.7 (= 3.7.1-1~18.10) but 3.7.1-1+bionic1 is to be installed
E: Unable to correct problems, you have held broken packages.


Why does it try to use bionic and how to fix it?



My system is fully updated, just ran apt update, and apt upgrade says: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



My /etc/apt/source.list (note I manually deleted the commented out bionic lines to clean it up):



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic universe
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu cosmic partner

deb http://security.ubuntu.com/ubuntu cosmic-security main restricted
deb http://security.ubuntu.com/ubuntu cosmic-security universe
deb http://security.ubuntu.com/ubuntu cosmic-security multiverse
# deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic stable # disabled on upgrade to cosmic
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable


Note: I also tried to use another mirror, then sudo apt update but the error remained the same.







python3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 15:02

























asked Nov 22 at 13:46









Attila123

11




11












  • Please, post the output of sudo apt install python3.7.
    – Olimjon
    Nov 22 at 14:40












  • @Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
    – Attila123
    Nov 22 at 15:01










  • Glad it helped...
    – Olimjon
    Nov 22 at 15:16


















  • Please, post the output of sudo apt install python3.7.
    – Olimjon
    Nov 22 at 14:40












  • @Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
    – Attila123
    Nov 22 at 15:01










  • Glad it helped...
    – Olimjon
    Nov 22 at 15:16
















Please, post the output of sudo apt install python3.7.
– Olimjon
Nov 22 at 14:40






Please, post the output of sudo apt install python3.7.
– Olimjon
Nov 22 at 14:40














@Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
– Attila123
Nov 22 at 15:01




@Olimjon Thanks, it helped me to solve the problem! :) The output contained python3.7 is already the newest version (3.7.1-1+bionic1). So I did sudo apt remove python3.7 then sudo apt autoremove (to remove the dependencies which were also from bionic), then sudo apt install python3.7 and it made it cosmic! :) So then sudo apt install python3.7-venv succeeded finally.
– Attila123
Nov 22 at 15:01












Glad it helped...
– Olimjon
Nov 22 at 15:16




Glad it helped...
– Olimjon
Nov 22 at 15:16















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',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095110%2fsolved-cannot-install-python3-7-venv-in-xubuntu-18-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f1095110%2fsolved-cannot-install-python3-7-venv-in-xubuntu-18-10%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei