re-Cannot upgrade to Ubuntu 18 to 20
here is the error I get when I try sudo do-release-upgrade -d to upgrade my ubuntu 18.04 system to ubuntu 20.04:
Traceback (most recent call last):
File "/usr/bin/
for pkg in upgradable:
NameError: name 'upgradable' is not defined
Any advice or help is appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
For diagnostic purposes please provide the output that you receive for the following commands:
uname -a
lsb_release -crid
sudo apt update
sudo apt full-upgrade
apt policy
apt policy ubuntu-
Revision history for this message
![]() |
#2 |
here are the replies to the commands you wanted me to do:
Uname -a:
Linux jesse-ThinkCent
Lsb-release-Crid:
Distributor ID: Ubuntu
Description: Ubuntu Bionic
Release: 18.04
Codename: bionic
Sudo-apt-get update:
Get:1 http://
Hit:2 http://
Get:3 http://
Hit:4 http://
Get:5 https:/
Get:6 http://
Get:7 https:/
Get:8 https:/
Hit:9 http://
Get:10 https:/
Get:11 https:/
Hit:12 http://
Get:13 https:/
Get:14 https:/
Hit:15 http://
Get:16 https:/
Get:17 https:/
Get:18 https:/
Get:19 https:/
Fetched 342 kB in 2s (197 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Sudo-apt-
Package files:
100 /var/lib/
release a=now
500 http://
release v=18.04,
origin ppa.launchpad.net
500 http://
release v=18.04,
origin ppa.launchpad.net
999 http://
release v=18.04,
origin ppa.launchpad.net
999 http://
release v=18.04,
origin ppa.launchpad.net
500 http://
release v=18.04,
origin ppa.launchpad.net
500 http://
release v=18.04,
origin ppa.launchpad.net
500 http://
release v=18.04,
origin ppa.launchpad.net
500 http://
release v=18.04,
origin ppa.launchpad.net
500 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
500 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
500 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
500 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
999 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
999 https:/
release o=Ubuntu,
origin packages.Ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
500 http://
release v=18.04,
origin security.ubuntu.com
100 http://
release v=18.04,
origin us.archive.
100 http://
release v=18.04,
origin us.archive.
100 http://
release v=18.04,
origin us.archive.
100 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
500 http://
release v=18.04,
origin us.archive.
Pinned packages:
Sudo apt policy updater-
ubuntu-
Installed: 1:18.04.45+Ubuntu1
Candidate: 1:18.04.45+Ubuntu1
Version table:
*** 1:18.04.45+Ubuntu1 999
999 http://
999 http://
100 /var/lib/
1:18.04.45 500
500 http://
500 http://
1:18.04.17 500
500 http://
500 http://
Revision history for this message
![]() |
#3 |
Do you have any PPAs installed ?
The upgrader will error out if you have any PPAs installed.
https:/
Revision history for this message
![]() |
#4 |
Your output:
Sudo apt policy updater-
ubuntu-
Installed: 1:18.04.45+Ubuntu1
Candidate: 1:18.04.45+Ubuntu1
Version table:
*** 1:18.04.45+Ubuntu1 999
999 http://
999 http://
100 /var/lib/
1:18.04.45 500
500 http://
500 http://
1:18.04.17 500
500 http://
500 http://
It seems to me that the Ubuntu/patches PPA is causing the problem.
I do not know what that is, but it is not part of standard Ubuntu
I suggest that you get rid of that PPA and revert to the "standard" updater-
Revision history for this message
![]() |
#5 |
@Bernard,
I do not have any ppas installed that I am aware of.
Revision history for this message
![]() |
#6 |
Your output shows that there are PPAs activated.
http://
http://
http://
http://
If you do not even know about them, then you should disable them.
Revision history for this message
![]() |
#7 |
Oh my mistake. Yes there are ppas attached.I apologise for not admitting that right away. Should I disconnect those ppas?
Revision history for this message
![]() |
#8 |
It is not sufficient to just "disconnect those ppas".
Your output indicates that the packages than you have installed from these PPA cause the problems that you see, so you have to revert to the standard version of all software that you have installed from those PPAs.
Revision history for this message
![]() |
#9 |
thank you for this. This solved my problem. I love the quick response from Ubuntu tech support. Thanks!