Help upgrading Kubuntu 18.04 to 20.04.1 - unresolvable problem occurred while calculating the upgrade.
I could really do with some help figuring out how come I can not upgrade my laptop from Kubuntu 18.04 to 20.04.1
I've had a look around but all the simliar issues I have seen online appear to have more information presented to them when the upgrade fails.
I run ```sudo do-release-upgrade ``` and receive the following output at the end
```
Calculating the changes
Calculating the changes
Could not determine the upgrade
An unresolvable problem occurred while calculating the upgrade.
If none of this applies, then please report this bug using the
command 'ubuntu-bug ubuntu-
you want to investigate this yourself the log files in
'/var/log/
Specifically, look at 'main.log' and 'apt.log'.
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
```
I've moved all files from /etc/apt/
I then disabled three entries from /etc/apt/
These were the entries
deb https:/
deb [arch=amd64] https:/
deb https:/
Leaving these left in the file
```
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
```
apt.log has a lot of entries in it
```
Log time: 2021-01-27 19:31:28.645933
Log time: 2021-01-27 19:31:34.309452
Log time: 2021-01-27 19:31:55.279117
MarkInstall python-
Installing python2 as Depends of python-is-python2
MarkInstall python2:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
Installing python2-minimal as PreDepends of python2
MarkInstall python2-
Removing: python-minimal
MarkDelete python-
Installing libpython2-stdlib as Depends of python2
MarkInstall libpython2-
Removing: libpython-stdlib
MarkDelete libpython-
Removing: python
MarkDelete python:amd64 < 2.7.15~rc1-1 @ii mK Ib > FU=0
Starting pkgProblemResolver with broken count: 3
Starting 2 pkgProblemResolver with broken count: 3
Investigating (0) nodejs:amd64 < 12.20.1-
Broken nodejs:amd64 Depends on python-
Considering python-
Added python-
Fixing nodejs:amd64 via keep of python-
MarkKeep python-
Investigating (0) python2-
Broken python2-
Considering python-
Added python-
Fixing python2-
MarkDelete python-
Investigating (0) python-
Broken python-
Considering libpython-
MarkKeep python-
Re-Instated libpython2-
Re-Instated libpython-
Re-Instated python2-dev:amd64
Re-Instated python-
Investigating (0) python2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib >
Broken python2-dev:amd64 Breaks on python-dev:amd64 < 2.7.15~rc1-1 @ii mK Ib > (< 2.7.15-2)
Considering python-dev:amd64 -2 as a solution to python2-dev:amd64 0
Added python-dev:amd64 to the remove list
Fixing python2-dev:amd64 via remove of python-dev:amd64
MarkDelete python-dev:amd64 < 2.7.15~rc1-1 @ii mK Ib > FU=0
Investigating (0) libpython2-
Broken libpython2-
Considering libpython-dev:amd64 0 as a solution to libpython2-
MarkKeep libpython2-
Holding Back libpython2-
Investigating (1) nodejs:amd64 < 12.20.1-
Broken nodejs:amd64 Depends on python-
Considering python-
Added python-
Fixing nodejs:amd64 via keep of python-
MarkKeep python-
Investigating (1) python2-
Broken python2-
Considering python-
Added python-
Fixing python2-
MarkDelete python-
Investigating (1) python2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib >
Broken python2-dev:amd64 Depends on libpython2-
Considering libpython2-
MarkKeep python2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
Holding Back python2-dev:amd64 rather than change libpython2-
Investigating (1) libpython-
Broken libpython-
Considering libpython2-
MarkKeep libpython-
Holding Back libpython-
Investigating (2) nodejs:amd64 < 12.20.1-
Broken nodejs:amd64 Depends on python-
Considering python-
Added python-
Fixing nodejs:amd64 via keep of python-
MarkKeep python-
Investigating (2) python2-
Broken python2-
Considering python-
MarkKeep python2-
Holding Back python2-
Investigating (2) python-
Broken python-
Considering libpython-
MarkKeep python-
Removing python-
MarkDelete python-
Investigating (3) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-
Considering python2-
MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
Holding Back python2:amd64 rather than change python2-
Investigating (3) python-all:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib >
Broken python-all:amd64 Depends on python2:amd64 < none | 2.7.17-2ubuntu4 @un umH > (= 2.7.17-2ubuntu4)
Considering python2:amd64 5 as a solution to python-all:amd64 2
MarkKeep python-all:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib > FU=0
Re-Instated python2-
Re-Instated python2:amd64
Re-Instated python-all:amd64
Investigating (4) python2-
Broken python2-
Considering python-
MarkKeep python2-
Holding Back python2-
Investigating (5) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-
Considering python2-
MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
Holding Back python2:amd64 rather than change python2-
Investigating (5) python-all:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib >
Broken python-all:amd64 Depends on python2:amd64 < none | 2.7.17-2ubuntu4 @un umH > (= 2.7.17-2ubuntu4)
Considering python2:amd64 5 as a solution to python-all:amd64 2
MarkKeep python-all:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib > FU=0
Removing python-all:amd64 rather than change python2:amd64
MarkDelete python-all:amd64 < 2.7.15~rc1-1 | 2.7.17-2ubuntu4 @ii umH Ib > FU=0
Investigating (6) python-
Broken python-
Considering python2:amd64 5 as a solution to python-
Done
Log time: 2021-01-27 19:31:57.760030
```
main.log also has a lot of entries but only one with errors:
```2021-01-27 19:31:55,425 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'```
```
cat /var/log/
2021-01-27 19:31:23,261 INFO Using config files '['./DistUpgrad
2021-01-27 19:31:23,536 INFO apt version: '1.6.12ubuntu0.2'
2021-01-27 19:31:23,536 INFO python version: '3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0]'
2021-01-27 19:31:23,538 INFO release-upgrader version '20.04.29' started
2021-01-27 19:31:23,545 INFO locale: 'en_GB' 'UTF-8'
2021-01-27 19:31:23,575 INFO screen could not be run
2021-01-27 19:31:23,595 DEBUG Using 'DistUpgradeVie
2021-01-27 19:31:23,623 DEBUG enable dpkg --force-overwrite
2021-01-27 19:31:23,641 DEBUG creating statefile: '/var/log/
2021-01-27 19:31:27,717 DEBUG lsb-release: 'bionic'
2021-01-27 19:31:27,717 DEBUG _pythonSymlinkCheck run
2021-01-27 19:31:27,717 DEBUG openCache()
2021-01-27 19:31:27,717 DEBUG quirks: running PreCacheOpen
2021-01-27 19:31:27,717 DEBUG running Quirks.PreCacheOpen
2021-01-27 19:31:28,464 DEBUG Comparing 4.15.0-134 with
2021-01-27 19:31:28,464 DEBUG Comparing 4.15.0-135 with 4.15.0-134
2021-01-27 19:31:28,648 DEBUG /openCache(), new cache size 101687
2021-01-27 19:31:28,649 DEBUG need_server_mode(): run in 'desktop' mode, (because of key deps for 'kubuntu-desktop')
2021-01-27 19:31:28,649 DEBUG checkViewDepends()
2021-01-27 19:31:28,650 DEBUG running doUpdate() (showErrors=False)
2021-01-27 19:31:31,933 DEBUG openCache()
2021-01-27 19:31:34,109 DEBUG Comparing 4.15.0-134 with
2021-01-27 19:31:34,109 DEBUG Comparing 4.15.0-135 with 4.15.0-134
2021-01-27 19:31:34,324 DEBUG /openCache(), new cache size 101687
2021-01-27 19:31:34,324 DEBUG doPostInitialUpdate
2021-01-27 19:31:34,324 DEBUG quirks: running focalPostInitia
2021-01-27 19:31:34,324 DEBUG running Quirks.
2021-01-27 19:31:36,711 DEBUG MetaPkgs:
2021-01-27 19:31:40,670 DEBUG Foreign:
2021-01-27 19:31:40,670 DEBUG Obsolete: azuredatastudio containerd.io crossover:i386 docker-ce docker-ce-cli docker-
2021-01-27 19:31:40,670 DEBUG updateSourcesList()
2021-01-27 19:31:40,716 DEBUG rewriteSourcesL
2021-01-27 19:31:40,717 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2021-01-27 19:31:40,717 DEBUG Checking pkg: ubuntu-minimal
2021-01-27 19:31:40,723 DEBUG Checking pkg: ubuntu-standard
2021-01-27 19:31:40,727 DEBUG examining: 'deb http://
2021-01-27 19:31:40,728 DEBUG verifySourcesLi
2021-01-27 19:31:40,728 DEBUG url_downloadable: http://
2021-01-27 19:31:40,728 DEBUG s='http' n='gb.archive.
2021-01-27 19:31:40,863 DEBUG entry 'deb http://
2021-01-27 19:31:40,863 DEBUG examining: 'deb http://
2021-01-27 19:31:40,863 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,864 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,864 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,864 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,864 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,864 DEBUG entry 'deb http://
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://
2021-01-27 19:31:40,865 DEBUG verifySourcesLi
2021-01-27 19:31:40,865 DEBUG url_downloadable: http://
2021-01-27 19:31:40,865 DEBUG s='http' n='security.
2021-01-27 19:31:40,942 DEBUG entry 'deb http://
2021-01-27 19:31:40,942 DEBUG examining: 'deb http://
2021-01-27 19:31:40,942 DEBUG entry 'deb http://
2021-01-27 19:31:40,942 DEBUG examining: 'deb http://
2021-01-27 19:31:40,942 DEBUG entry 'deb http://
2021-01-27 19:31:40,945 DEBUG running doUpdate() (showErrors=True)
2021-01-27 19:31:54,588 DEBUG openCache()
2021-01-27 19:31:55,155 DEBUG Comparing 4.15.0-134 with
2021-01-27 19:31:55,155 DEBUG Comparing 4.15.0-135 with 4.15.0-134
2021-01-27 19:31:55,288 DEBUG /openCache(), new cache size 67949
2021-01-27 19:31:55,288 DEBUG need_server_mode(): run in 'desktop' mode, (because of key deps for 'kubuntu-desktop')
2021-01-27 19:31:55,289 DEBUG quirks: running PreDistUpgradeCache
2021-01-27 19:31:55,289 DEBUG running Quirks.
2021-01-27 19:31:55,289 INFO checking for python-dbg
2021-01-27 19:31:55,289 INFO checking for python-doc
2021-01-27 19:31:55,289 INFO checking for python-minimal
2021-01-27 19:31:55,289 INFO installing python-is-python2 because python-minimal was installed
2021-01-27 19:31:55,289 DEBUG Installing 'python-is-python2' (python-minimal was installed on the system)
2021-01-27 19:31:55,425 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
2021-01-27 19:31:55,426 DEBUG abort called
2021-01-27 19:31:55,427 DEBUG openCache()
2021-01-27 19:31:57,562 DEBUG Comparing 4.15.0-134 with
2021-01-27 19:31:57,563 DEBUG Comparing 4.15.0-135 with 4.15.0-134
2021-01-27 19:31:57,770 DEBUG /openCache(), new cache size 101687
```
I checked for any broken packages but could not see any
```dpkg -l | grep ^..r ``` -no results
```
sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
```
```dpkg-query -W -f='${db:
```
apt-get update --fix-missing
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
```
```
apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
```
So I'm lost as to what to do next. If the problem is Python2 which was part of Kubuntu 18.04 still, I don't know what action to take next.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Steven Mapes
- Solved:
- Last query:
- Last reply: