Help upgrading Kubuntu 18.04 to 20.04.1 - unresolvable problem occurred while calculating the upgrade.

Asked by Steven Mapes

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-release-upgrader-core' in a terminal. If
you want to investigate this yourself the log files in
'/var/log/dist-upgrade' will contain details about the upgrade.
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/sources.list.d/ to a backup folder in /home/ which is on a different partion.

I then disabled three entries from /etc/apt/sources.list for 3rd party ppa's for Wine, Docker and Stripe

These were the entries
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
deb https://dl.bintray.com/stripe/stripe-cli-deb stable main

Leaving these left in the file

```
deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
```

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-is-python2:amd64 < none -> 2.7.17-4 @un uN Ib > FU=1
  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-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
       Removing: python-minimal
        MarkDelete python-minimal:amd64 < 2.7.15~rc1-1 @ii mK > FU=0
    Installing libpython2-stdlib as Depends of python2
      MarkInstall libpython2-stdlib:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
       Removing: libpython-stdlib
        MarkDelete libpython-stdlib:amd64 < 2.7.15~rc1-1 @ii mK > FU=0
     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-1nodesource1 @ii mK Ib >
Broken nodejs:amd64 Depends on python-minimal:amd64 < 2.7.15~rc1-1 @ii gR >
  Considering python-minimal:amd64 1 as a solution to nodejs:amd64 3
  Added python-minimal:amd64 to the remove list
  Fixing nodejs:amd64 via keep of python-minimal:amd64
  MarkKeep python-minimal:amd64 < 2.7.15~rc1-1 @ii gR > FU=0
Investigating (0) python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2-minimal:amd64 Breaks on python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > (< 2.7.15-2)
  Considering python-minimal:amd64 1 as a solution to python2-minimal:amd64 3
  Added python-minimal:amd64 to the remove list
  Fixing python2-minimal:amd64 via remove of python-minimal:amd64
  MarkDelete python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > FU=0
Investigating (0) python-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib >
Broken python-all-dev:amd64 Depends on libpython-all-dev:amd64 < 2.7.15~rc1-1 | 2.7.17-2ubuntu4 @ii umH > (= 2.7.17-2ubuntu4)
  Considering libpython-all-dev:amd64 0 as a solution to python-all-dev:amd64 1
  MarkKeep python-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib > FU=0
  Re-Instated libpython2-dev:amd64
  Re-Instated libpython-all-dev:amd64
  Re-Instated python2-dev:amd64
  Re-Instated python-all-dev:amd64
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-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib >
Broken libpython2-dev:amd64 Breaks on libpython-dev:amd64 < 2.7.15~rc1-1 @ii mK > (< 2.7.15-2)
  Considering libpython-dev:amd64 0 as a solution to libpython2-dev:amd64 0
  MarkKeep libpython2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
  Holding Back libpython2-dev:amd64 rather than change libpython-dev:amd64
Investigating (1) nodejs:amd64 < 12.20.1-1nodesource1 @ii mK Ib >
Broken nodejs:amd64 Depends on python-minimal:amd64 < 2.7.15~rc1-1 @ii gR >
  Considering python-minimal:amd64 1 as a solution to nodejs:amd64 3
  Added python-minimal:amd64 to the remove list
  Fixing nodejs:amd64 via keep of python-minimal:amd64
  MarkKeep python-minimal:amd64 < 2.7.15~rc1-1 @ii gR > FU=0
Investigating (1) python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2-minimal:amd64 Breaks on python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > (< 2.7.15-2)
  Considering python-minimal:amd64 1 as a solution to python2-minimal:amd64 3
  Added python-minimal:amd64 to the remove list
  Fixing python2-minimal:amd64 via remove of python-minimal:amd64
  MarkDelete python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > FU=0
Investigating (1) python2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib >
Broken python2-dev:amd64 Depends on libpython2-dev:amd64 < none | 2.7.17-2ubuntu4 @un uH > (= 2.7.17-2ubuntu4)
  Considering libpython2-dev:amd64 0 as a solution to python2-dev:amd64 0
  MarkKeep python2-dev:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
  Holding Back python2-dev:amd64 rather than change libpython2-dev:amd64
Investigating (1) libpython-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib >
Broken libpython-all-dev:amd64 Depends on libpython2-dev:amd64 < none | 2.7.17-2ubuntu4 @un uH > (= 2.7.17-2ubuntu4)
  Considering libpython2-dev:amd64 0 as a solution to libpython-all-dev:amd64 0
  MarkKeep libpython-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib > FU=0
  Holding Back libpython-all-dev:amd64 rather than change libpython2-dev:amd64
Investigating (2) nodejs:amd64 < 12.20.1-1nodesource1 @ii mK Ib >
Broken nodejs:amd64 Depends on python-minimal:amd64 < 2.7.15~rc1-1 @ii gR >
  Considering python-minimal:amd64 1 as a solution to nodejs:amd64 3
  Added python-minimal:amd64 to the remove list
  Fixing nodejs:amd64 via keep of python-minimal:amd64
  MarkKeep python-minimal:amd64 < 2.7.15~rc1-1 @ii gR > FU=0
Investigating (2) python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2-minimal:amd64 Breaks on python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > (< 2.7.15-2)
  Considering python-minimal:amd64 3 as a solution to python2-minimal:amd64 3
  MarkKeep python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
  Holding Back python2-minimal:amd64 rather than change python-minimal:amd64
Investigating (2) python-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib >
Broken python-all-dev:amd64 Depends on libpython-all-dev:amd64 < 2.7.15~rc1-1 | 2.7.17-2ubuntu4 @ii umH > (= 2.7.17-2ubuntu4)
  Considering libpython-all-dev:amd64 0 as a solution to python-all-dev:amd64 1
  MarkKeep python-all-dev:amd64 < 2.7.15~rc1-1 -> 2.7.17-2ubuntu4 @ii umU Ib > FU=0
  Removing python-all-dev:amd64 rather than change libpython-all-dev:amd64
  MarkDelete python-all-dev:amd64 < 2.7.15~rc1-1 | 2.7.17-2ubuntu4 @ii umH Ib > FU=0
Investigating (3) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-minimal:amd64 < none | 2.7.17-2ubuntu4 @un umH > (= 2.7.17-2ubuntu4)
  Considering python2-minimal:amd64 3 as a solution to python2:amd64 5
  MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
  Holding Back python2:amd64 rather than change python2-minimal:amd64
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-minimal:amd64
  Re-Instated python2:amd64
  Re-Instated python-all:amd64
Investigating (4) python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2-minimal:amd64 Breaks on python-minimal:amd64 < 2.7.15~rc1-1 @ii gK > (< 2.7.15-2)
  Considering python-minimal:amd64 3 as a solution to python2-minimal:amd64 3
  MarkKeep python2-minimal:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
  Holding Back python2-minimal:amd64 rather than change python-minimal:amd64
Investigating (5) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-minimal:amd64 < none | 2.7.17-2ubuntu4 @un umH > (= 2.7.17-2ubuntu4)
  Considering python2-minimal:amd64 3 as a solution to python2:amd64 5
  MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
  Holding Back python2:amd64 rather than change python2-minimal:amd64
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-is-python2:amd64 < none -> 2.7.17-4 @un pumN Ib >
Broken python-is-python2:amd64 Depends on python2:amd64 < none | 2.7.17-2ubuntu4 @un umH >
  Considering python2:amd64 5 as a solution to python-is-python2:amd64 9999
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/dist-upgrade/main.log

2021-01-27 19:31:23,261 INFO Using config files '['./DistUpgrade.cfg.bionic']'
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 'DistUpgradeViewText' view
2021-01-27 19:31:23,623 DEBUG enable dpkg --force-overwrite
2021-01-27 19:31:23,641 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
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 focalPostInitialUpdate
2021-01-27 19:31:34,324 DEBUG running Quirks.focalPostInitialUpdate
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-ce-rootless-extras fahclient fahcontrol google-chrome-stable libfaudio0 libfaudio0:i386 libjuh-java libjurt-java liblibreoffice-java libmysqlclient21 libobasis6.4-base libobasis6.4-calc libobasis6.4-core libobasis6.4-draw libobasis6.4-en-us libobasis6.4-extension-beanshell-script-provider libobasis6.4-extension-javascript-script-provider libobasis6.4-extension-mediawiki-publisher libobasis6.4-extension-nlpsolver libobasis6.4-extension-pdf-import libobasis6.4-extension-report-builder libobasis6.4-firebird libobasis6.4-gnome-integration libobasis6.4-graphicfilter libobasis6.4-images libobasis6.4-impress libobasis6.4-kde-integration libobasis6.4-librelogo libobasis6.4-libreofficekit-data libobasis6.4-math libobasis6.4-ogltrans libobasis6.4-onlineupdate libobasis6.4-ooofonts libobasis6.4-ooolinguistic libobasis6.4-postgresql-sdbc libobasis6.4-python-script-provider libobasis6.4-pyuno libobasis6.4-writer libobasis6.4-xsltfilter libreoffice-help-common libreoffice-style-colibre libreoffice6.4 libreoffice6.4-base libreoffice6.4-calc libreoffice6.4-debian-menus libreoffice6.4-dict-en libreoffice6.4-dict-es libreoffice6.4-dict-fr libreoffice6.4-draw libreoffice6.4-en-us libreoffice6.4-impress libreoffice6.4-math libreoffice6.4-ure libreoffice6.4-writer libridl-java libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libunoil-java libunoloader-java minecraft-launcher mysql-apt-config mysql-community-client mysql-community-client-core mysql-community-client-plugins mysql-community-server mysql-community-server-core peek pencil signal-desktop stripe teams timeshift uno-libs-private virtualbox-6.1 wine-stable-amd64 wine-stable-i386:i386 winehq-stable zoom
2021-01-27 19:31:40,670 DEBUG updateSourcesList()
2021-01-27 19:31:40,716 DEBUG rewriteSourcesList() with mirror_check
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://gb.archive.ubuntu.com/ubuntu/ bionic main restricted'
2021-01-27 19:31:40,728 DEBUG verifySourcesListEntry: deb http://gb.archive.ubuntu.com/ubuntu/ focal main restricted
2021-01-27 19:31:40,728 DEBUG url_downloadable: http://gb.archive.ubuntu.com/ubuntu//dists/focal/Release
2021-01-27 19:31:40,728 DEBUG s='http' n='gb.archive.ubuntu.com' p='/ubuntu//dists/focal/Release' q='' f=''
2021-01-27 19:31:40,863 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal main restricted' updated to new dist
2021-01-27 19:31:40,863 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted'
2021-01-27 19:31:40,863 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal-updates main restricted' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic universe'
2021-01-27 19:31:40,864 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal universe' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates universe'
2021-01-27 19:31:40,864 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal-updates universe' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic multiverse'
2021-01-27 19:31:40,864 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal multiverse' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates multiverse'
2021-01-27 19:31:40,864 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal-updates multiverse' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://gb.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse'
2021-01-27 19:31:40,864 DEBUG entry 'deb http://gb.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse' updated to new dist
2021-01-27 19:31:40,864 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security main restricted'
2021-01-27 19:31:40,865 DEBUG verifySourcesListEntry: deb http://security.ubuntu.com/ubuntu focal main restricted
2021-01-27 19:31:40,865 DEBUG url_downloadable: http://security.ubuntu.com/ubuntu/dists/focal/Release
2021-01-27 19:31:40,865 DEBUG s='http' n='security.ubuntu.com' p='/ubuntu/dists/focal/Release' q='' f=''
2021-01-27 19:31:40,942 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security main restricted' updated to new dist
2021-01-27 19:31:40,942 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security universe'
2021-01-27 19:31:40,942 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security universe' updated to new dist
2021-01-27 19:31:40,942 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security multiverse'
2021-01-27 19:31:40,942 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security multiverse' updated to new dist
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.PreDistUpgradeCache
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:Status-Abbrev} ${binary:Package}\n' | grep -E ^.[^nci]``` also no output

```
apt-get update --fix-missing
Hit:1 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
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:
Revision history for this message
Steven Mapes (quartz2021) said :
#1

Okay I've gotten further by removing Python2 completely using

```
apt-get purge python2*
apt-get purge libpython2*
```

Revision history for this message
Allan W. Macdonald (allan-w-macdonald) said :
#2

@Steven:

What happened after you removed these python packages? Did the upgrade process complete successfully or did it still fail only later on?