Ubuntu 18.04 Can't upgrade because of libpython3.6 version conflicts
After having updated to Ubuntu 18.04, when I try to upgrade my system via
sudo apt update && sudo apt upgrade
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gdb gir1.2-peas-1.0 libpeas-1.0-0 openshot
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Of course I tried sudo apt install -f without success:
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
One suggested solution was to install each separately, but that doesn't work either:
$ sudo apt install libpeas-1.0-0
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:
libpeas-1.0-0 : Depends: libpython3.6 (>= 3.6.4~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried to install libpython3.6, which doesn't work because
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-3) but 3.6.5-5~16.04.york1 is to be installed
Now I can't remove/install/downgrade to this version because apt would then remove about 200 packages including things like xorg, firefox, gnome-session and pretty much every package I ever heard of.
One other thing I wanted to try taken from the question here was
sudo dpkg --install --force all /var/cache/apt/archives/libpython3[version].deb
but there was no file with my needed version number.
Edit: I downloaded the specific version via apt download libpython3.6-stdlib=3.6.5-3 and installed it with above command. Now I can neither do upgrade nor autoremove, and I get this warning for both:
The following packages have unmet dependencies:
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-3) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-3 is installed
What else can I do? Thanks for any help.
apt package-management upgrade
add a comment |
After having updated to Ubuntu 18.04, when I try to upgrade my system via
sudo apt update && sudo apt upgrade
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gdb gir1.2-peas-1.0 libpeas-1.0-0 openshot
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Of course I tried sudo apt install -f without success:
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
One suggested solution was to install each separately, but that doesn't work either:
$ sudo apt install libpeas-1.0-0
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:
libpeas-1.0-0 : Depends: libpython3.6 (>= 3.6.4~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried to install libpython3.6, which doesn't work because
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-3) but 3.6.5-5~16.04.york1 is to be installed
Now I can't remove/install/downgrade to this version because apt would then remove about 200 packages including things like xorg, firefox, gnome-session and pretty much every package I ever heard of.
One other thing I wanted to try taken from the question here was
sudo dpkg --install --force all /var/cache/apt/archives/libpython3[version].deb
but there was no file with my needed version number.
Edit: I downloaded the specific version via apt download libpython3.6-stdlib=3.6.5-3 and installed it with above command. Now I can neither do upgrade nor autoremove, and I get this warning for both:
The following packages have unmet dependencies:
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-3) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-3 is installed
What else can I do? Thanks for any help.
apt package-management upgrade
add a comment |
After having updated to Ubuntu 18.04, when I try to upgrade my system via
sudo apt update && sudo apt upgrade
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gdb gir1.2-peas-1.0 libpeas-1.0-0 openshot
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Of course I tried sudo apt install -f without success:
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
One suggested solution was to install each separately, but that doesn't work either:
$ sudo apt install libpeas-1.0-0
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:
libpeas-1.0-0 : Depends: libpython3.6 (>= 3.6.4~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried to install libpython3.6, which doesn't work because
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-3) but 3.6.5-5~16.04.york1 is to be installed
Now I can't remove/install/downgrade to this version because apt would then remove about 200 packages including things like xorg, firefox, gnome-session and pretty much every package I ever heard of.
One other thing I wanted to try taken from the question here was
sudo dpkg --install --force all /var/cache/apt/archives/libpython3[version].deb
but there was no file with my needed version number.
Edit: I downloaded the specific version via apt download libpython3.6-stdlib=3.6.5-3 and installed it with above command. Now I can neither do upgrade nor autoremove, and I get this warning for both:
The following packages have unmet dependencies:
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-3) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-3 is installed
What else can I do? Thanks for any help.
apt package-management upgrade
After having updated to Ubuntu 18.04, when I try to upgrade my system via
sudo apt update && sudo apt upgrade
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gdb gir1.2-peas-1.0 libpeas-1.0-0 openshot
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Of course I tried sudo apt install -f without success:
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
One suggested solution was to install each separately, but that doesn't work either:
$ sudo apt install libpeas-1.0-0
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:
libpeas-1.0-0 : Depends: libpython3.6 (>= 3.6.4~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried to install libpython3.6, which doesn't work because
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-3) but 3.6.5-5~16.04.york1 is to be installed
Now I can't remove/install/downgrade to this version because apt would then remove about 200 packages including things like xorg, firefox, gnome-session and pretty much every package I ever heard of.
One other thing I wanted to try taken from the question here was
sudo dpkg --install --force all /var/cache/apt/archives/libpython3[version].deb
but there was no file with my needed version number.
Edit: I downloaded the specific version via apt download libpython3.6-stdlib=3.6.5-3 and installed it with above command. Now I can neither do upgrade nor autoremove, and I get this warning for both:
The following packages have unmet dependencies:
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-3) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-3 is installed
What else can I do? Thanks for any help.
apt package-management upgrade
apt package-management upgrade
edited Aug 2 '18 at 17:20
Doopy
asked Aug 2 '18 at 15:04
DoopyDoopy
366
366
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
The issue was caused by the jonathonf/python-3.6 PPA I had enabled in 16.04. The upgrade to 18.04. disabled this PPA, installed the libpython3.6 in the non-ppa version (the york version are from the PPA), and therefore caused a missing dependency. First I had to revert the downgrade mentioned in the Edit with analogous apt download and forced dpkg commands.
I reenabled the PPA (also changed bionic to xenial in /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) and after an easy
sudo apt update && sudo apt install -f && sudo apt upgrade
everything is working fine now again.
add a comment |
I had a similar problem and this cmd helped me:
sudo apt-get install gdb/bionic gir1.2-peas-1.0/bionic libpeas-1.0-0/bionic python3.6/bionic python3.6-minimal/bionic libpython3.6/bionic libpython3.6-minimal/bionic libpython3.6-stdlib/bionic
add a comment |
Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.
First, I had to remove the ppa the hard way by
sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*
and then remove the conflicted library with
sudo apt remove libpython3.6-*
to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.
Doing a
sudo apt update && sudo apt upgrade
installed python3.6 with some major caveats.
I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run
sudo apt install ubuntu-desktop
before shutting down your computer!!!!!!!!!!!!!
add a comment |
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/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
});
}
});
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%2faskubuntu.com%2fquestions%2f1061762%2fubuntu-18-04-cant-upgrade-because-of-libpython3-6-version-conflicts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue was caused by the jonathonf/python-3.6 PPA I had enabled in 16.04. The upgrade to 18.04. disabled this PPA, installed the libpython3.6 in the non-ppa version (the york version are from the PPA), and therefore caused a missing dependency. First I had to revert the downgrade mentioned in the Edit with analogous apt download and forced dpkg commands.
I reenabled the PPA (also changed bionic to xenial in /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) and after an easy
sudo apt update && sudo apt install -f && sudo apt upgrade
everything is working fine now again.
add a comment |
The issue was caused by the jonathonf/python-3.6 PPA I had enabled in 16.04. The upgrade to 18.04. disabled this PPA, installed the libpython3.6 in the non-ppa version (the york version are from the PPA), and therefore caused a missing dependency. First I had to revert the downgrade mentioned in the Edit with analogous apt download and forced dpkg commands.
I reenabled the PPA (also changed bionic to xenial in /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) and after an easy
sudo apt update && sudo apt install -f && sudo apt upgrade
everything is working fine now again.
add a comment |
The issue was caused by the jonathonf/python-3.6 PPA I had enabled in 16.04. The upgrade to 18.04. disabled this PPA, installed the libpython3.6 in the non-ppa version (the york version are from the PPA), and therefore caused a missing dependency. First I had to revert the downgrade mentioned in the Edit with analogous apt download and forced dpkg commands.
I reenabled the PPA (also changed bionic to xenial in /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) and after an easy
sudo apt update && sudo apt install -f && sudo apt upgrade
everything is working fine now again.
The issue was caused by the jonathonf/python-3.6 PPA I had enabled in 16.04. The upgrade to 18.04. disabled this PPA, installed the libpython3.6 in the non-ppa version (the york version are from the PPA), and therefore caused a missing dependency. First I had to revert the downgrade mentioned in the Edit with analogous apt download and forced dpkg commands.
I reenabled the PPA (also changed bionic to xenial in /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list) and after an easy
sudo apt update && sudo apt install -f && sudo apt upgrade
everything is working fine now again.
answered Aug 2 '18 at 17:28
DoopyDoopy
366
366
add a comment |
add a comment |
I had a similar problem and this cmd helped me:
sudo apt-get install gdb/bionic gir1.2-peas-1.0/bionic libpeas-1.0-0/bionic python3.6/bionic python3.6-minimal/bionic libpython3.6/bionic libpython3.6-minimal/bionic libpython3.6-stdlib/bionic
add a comment |
I had a similar problem and this cmd helped me:
sudo apt-get install gdb/bionic gir1.2-peas-1.0/bionic libpeas-1.0-0/bionic python3.6/bionic python3.6-minimal/bionic libpython3.6/bionic libpython3.6-minimal/bionic libpython3.6-stdlib/bionic
add a comment |
I had a similar problem and this cmd helped me:
sudo apt-get install gdb/bionic gir1.2-peas-1.0/bionic libpeas-1.0-0/bionic python3.6/bionic python3.6-minimal/bionic libpython3.6/bionic libpython3.6-minimal/bionic libpython3.6-stdlib/bionic
I had a similar problem and this cmd helped me:
sudo apt-get install gdb/bionic gir1.2-peas-1.0/bionic libpeas-1.0-0/bionic python3.6/bionic python3.6-minimal/bionic libpython3.6/bionic libpython3.6-minimal/bionic libpython3.6-stdlib/bionic
answered Nov 30 '18 at 21:30
1rq3fea324wre1rq3fea324wre
1034
1034
add a comment |
add a comment |
Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.
First, I had to remove the ppa the hard way by
sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*
and then remove the conflicted library with
sudo apt remove libpython3.6-*
to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.
Doing a
sudo apt update && sudo apt upgrade
installed python3.6 with some major caveats.
I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run
sudo apt install ubuntu-desktop
before shutting down your computer!!!!!!!!!!!!!
add a comment |
Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.
First, I had to remove the ppa the hard way by
sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*
and then remove the conflicted library with
sudo apt remove libpython3.6-*
to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.
Doing a
sudo apt update && sudo apt upgrade
installed python3.6 with some major caveats.
I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run
sudo apt install ubuntu-desktop
before shutting down your computer!!!!!!!!!!!!!
add a comment |
Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.
First, I had to remove the ppa the hard way by
sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*
and then remove the conflicted library with
sudo apt remove libpython3.6-*
to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.
Doing a
sudo apt update && sudo apt upgrade
installed python3.6 with some major caveats.
I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run
sudo apt install ubuntu-desktop
before shutting down your computer!!!!!!!!!!!!!
Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16. Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.
First, I had to remove the ppa the hard way by
sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*
and then remove the conflicted library with
sudo apt remove libpython3.6-*
to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.
Doing a
sudo apt update && sudo apt upgrade
installed python3.6 with some major caveats.
I had to [reinstall ubuntu-desktop](next time I logged in). So probably better for you to run
sudo apt install ubuntu-desktop
before shutting down your computer!!!!!!!!!!!!!
edited Feb 1 at 12:57
answered Feb 1 at 12:34
TheGrimmScientistTheGrimmScientist
1013
1013
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f1061762%2fubuntu-18-04-cant-upgrade-because-of-libpython3-6-version-conflicts%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