Public bug reported: attempting to upgrade from 16.04 to 18.04.5 on Linode
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.7 LTS Release: 16.04 Codename: xenial ran all updates and upgrades and rebooted before I started - fatal error occurred after running do-release-upgrade and I was instructed to report this as a bug: A fatal error occurred Please report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted. note: I did not have apport installed prior to upgrade This is the actual installation log, followed by contents of the two requested log files: ------------------ Checking for a new Ubuntu release Get:1 Upgrade tool signature [819 B] Get:2 Upgrade tool [1,248 kB] Fetched 1,248 kB in 0s (0 B/s) authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg' extracting 'bionic.tar.gz' Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN] y Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press [ENTER] Reading package lists... Done Building dependency tree Reading state information... Done Hit http://mirrors.linode.com/ubuntu xenial InRelease Hit http://mirrors.linode.com/ubuntu xenial-updates InRelease Hit http://mirrors.linode.com/ubuntu xenial-backports InRelease Hit http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Hit http://archive.ubuntu.com/ubuntu xenial InRelease Hit http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Fetched 109 kB in 0s (0 B/s) Reading package lists... Done Building dependency tree Reading state information... Done Updating repository information Third party sources disabled Some third party entries in your sources.list were disabled. You can re-enable them after the upgrade with the 'software-properties' tool or your package manager. To continue please press [ENTER] Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1,527 kB] Get:4 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [906 kB] Get:5 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [296 kB] Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [224 kB] Get:7 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [13.5 kB] Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [29.6 kB] Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,102 kB] Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [973 kB] Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [247 kB] Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [26.0 kB] Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [9,208 B] Get:14 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [5,272 B] Get:15 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB] Get:16 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8,531 kB] Get:17 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB] Fetched 27.7 MB in 0s (0 B/s) Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done A fatal error occurred Please report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted. Your original sources.list was saved in /etc/apt/sources.list.distUpgrade. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 259, in __getitem__ return self._weakref[key] File "/usr/lib/python3.5/weakref.py", line 131, in __getitem__ o = self.data[key]() KeyError: 'ubuntu-minimal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 263, in __getitem__ rawpkg = self._cache[key] KeyError: 'ubuntu-minimal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/ubuntu-release-upgrader-k4nwoo_z/bionic", line 8, in <module> sys.exit(main()) File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeMain.py", line 238, in main if app.run(): File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeController.py", line 2072, in run return self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeController.py", line 1955, in fullUpgrade if not self.cache.anyVersionDownloadable(self.cache[pkg]): File "/usr/lib/python3/dist-packages/apt/cache.py", line 265, in __getitem__ raise KeyError('The cache has no package named %r' % key) KeyError: "The cache has no package named 'ubuntu-minimal'" ------- requested logs ----- cat /var/log/dist-upgrade/main.log 2021-01-29 13:05:28,390 INFO Using config files '['./DistUpgrade.cfg.xenial']' 2021-01-29 13:05:28,391 INFO uname information: 'Linux ataxia.ataxiagallery.com 5.9.6-x86_64-linode139 #1 SMP Thu Nov 5 14:45:39 EST 2020 x86_64' 2021-01-29 13:05:29,181 INFO apt version: '1.2.32ubuntu0.2' 2021-01-29 13:05:29,182 INFO python version: '3.5.2 (default, Oct 7 2020, 17:19:02) [GCC 5.4.0 20160609]' 2021-01-29 13:05:29,186 INFO release-upgrader version '18.04.40' started 2021-01-29 13:05:29,199 INFO locale: 'en_US' 'UTF-8' 2021-01-29 13:05:29,275 INFO screen could not be run 2021-01-29 13:05:29,304 WARNING estimate_kernel_initrd_size_in_boot() returned '0' for kernel? 2021-01-29 13:05:29,304 WARNING estimate_kernel_initrd_size_in_boot() returned '0' for initrd? 2021-01-29 13:05:29,553 DEBUG Using 'DistUpgradeViewText' view 2021-01-29 13:05:29,622 DEBUG enable dpkg --force-overwrite 2021-01-29 13:05:29,674 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz' 2021-01-29 13:05:33,478 DEBUG lsb-release: 'xenial' 2021-01-29 13:05:49,196 DEBUG _pythonSymlinkCheck run 2021-01-29 13:05:49,200 DEBUG openCache() 2021-01-29 13:05:49,200 DEBUG No such plugin directory: ./plugins 2021-01-29 13:05:49,200 DEBUG plugins for condition 'PreCacheOpen' are '[]' 2021-01-29 13:05:49,200 DEBUG plugins for condition 'bionicPreCacheOpen' are '[]' 2021-01-29 13:05:49,200 DEBUG plugins for condition 'from_xenialPreCacheOpen' are '[]' 2021-01-29 13:05:49,200 DEBUG quirks: running PreCacheOpen 2021-01-29 13:05:49,200 DEBUG running Quirks.PreCacheOpen 2021-01-29 13:05:50,222 DEBUG /openCache(), new cache size 93723 2021-01-29 13:05:50,224 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode 2021-01-29 13:05:50,224 DEBUG checkViewDepends() 2021-01-29 13:05:50,224 DEBUG running doUpdate() (showErrors=False) 2021-01-29 13:06:38,967 DEBUG openCache() 2021-01-29 13:06:39,929 DEBUG /openCache(), new cache size 93723 2021-01-29 13:06:39,929 DEBUG doPostInitialUpdate 2021-01-29 13:06:39,929 DEBUG plugins for condition 'PostInitialUpdate' are '[]' 2021-01-29 13:06:39,929 DEBUG plugins for condition 'bionicPostInitialUpdate' are '[]' 2021-01-29 13:06:39,929 DEBUG plugins for condition 'from_xenialPostInitialUpdate' are '[]' 2021-01-29 13:06:39,929 DEBUG quirks: running bionicPostInitialUpdate 2021-01-29 13:06:39,929 DEBUG running Quirks.bionicPostInitialUpdate 2021-01-29 13:06:48,344 DEBUG MetaPkgs: 2021-01-29 13:06:55,668 DEBUG Foreign: certbot libapache2-mod-php5.6 libgd3 libicu65 libjbig0 libpcre3 libssl1.1 libwebp6 libxml2 openssl php-common php-gd php-gettext php-mbstring php-pear php5.6 php5.6-cli php5.6-common php5.6-gd php5.6-json php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-opcache php5.6-readline php5.6-xml php7.1-common php7.1-gd php7.1-mbstring php7.2-common php7.2-mbstring php8.0-common php8.0-gd php8.0-mbstring python-certbot-apache python-chardet python-pkg-resources python-six python3-acme python3-asn1crypto python3-augeas python3-certbot python3-certbot-apache python3-certifi python3-cffi-backend python3-chardet python3-configargparse python3-configobj python3-cryptography python3-future python3-idna python3-josepy python3-ndg-httpsclient python3-openssl python3-parsedatetime python3-pkg-resources python3-pyasn1 python3-requests python3-requests-toolbelt python3-rfc3339 python3-six python3-urllib3 python3-zope.component python3-zope.hookable python3-zope.interface 2021-01-29 13:06:55,669 DEBUG Obsolete: fio-util 2021-01-29 13:06:55,669 DEBUG updateSourcesList() 2021-01-29 13:06:55,766 DEBUG rewriteSourcesList() with mirror_check 2021-01-29 13:06:55,767 DEBUG ['ubuntu-minimal', 'ubuntu-standard'] 2021-01-29 13:06:55,767 DEBUG Checking pkg: ubuntu-minimal 2021-01-29 13:06:55,768 DEBUG Checking pkg: ubuntu-standard 2021-01-29 13:06:55,771 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial main restricted' 2021-01-29 13:06:55,773 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ bionic main restricted # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,773 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial-updates main restricted' 2021-01-29 13:06:55,775 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ xenial-updates main restricted # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,776 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial universe' 2021-01-29 13:06:55,778 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ bionic universe # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,778 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial-updates universe' 2021-01-29 13:06:55,780 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ xenial-updates universe # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,780 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial multiverse' 2021-01-29 13:06:55,782 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ bionic multiverse # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,782 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial-updates multiverse' 2021-01-29 13:06:55,784 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ xenial-updates multiverse # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,784 DEBUG examining: 'deb http://mirrors.linode.com/ubuntu/ xenial-backports main restricted universe multiverse' 2021-01-29 13:06:55,786 DEBUG entry '# deb http://mirrors.linode.com/ubuntu/ xenial-backports main restricted universe multiverse # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:55,786 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu xenial-security main restricted' 2021-01-29 13:06:55,786 DEBUG verifySourcesListEntry: deb http://security.ubuntu.com/ubuntu bionic main restricted 2021-01-29 13:06:55,787 DEBUG url_downloadable: http://security.ubuntu.com/ubuntu/dists/bionic/Release 2021-01-29 13:06:55,787 DEBUG s='http' n='security.ubuntu.com' p='/ubuntu/dists/bionic/Release' q='' f='' 2021-01-29 13:06:55,813 DEBUG entry 'deb http://security.ubuntu.com/ubuntu bionic-security main restricted' updated to new dist 2021-01-29 13:06:55,813 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu xenial-security universe' 2021-01-29 13:06:55,814 DEBUG entry 'deb http://security.ubuntu.com/ubuntu bionic-security universe' updated to new dist 2021-01-29 13:06:55,814 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu xenial-security multiverse' 2021-01-29 13:06:55,814 DEBUG entry 'deb http://security.ubuntu.com/ubuntu bionic-security multiverse' updated to new dist 2021-01-29 13:06:55,814 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu xenial universe' 2021-01-29 13:06:55,814 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu bionic universe 2021-01-29 13:06:55,814 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/bionic/Release 2021-01-29 13:06:55,814 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/bionic/Release' q='' f='' 2021-01-29 13:06:56,038 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu bionic universe' updated to new dist 2021-01-29 13:06:56,039 DEBUG examining: 'deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main' 2021-01-29 13:06:56,047 DEBUG entry '# deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:06:56,048 DEBUG examining: 'deb http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main' 2021-01-29 13:06:56,056 DEBUG entry '# deb http://ppa.launchpad.net/certbot/certbot/ubuntu bionic main # disabled on upgrade to bionic' was disabled (unknown mirror) 2021-01-29 13:07:23,078 DEBUG running doUpdate() (showErrors=True) 2021-01-29 13:08:42,530 DEBUG openCache() 2021-01-29 13:08:43,466 DEBUG /openCache(), new cache size 93198 2021-01-29 13:08:43,468 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode 2021-01-29 13:08:43,468 ERROR No 'ubuntu-minimal' available/downloadable after sources.list rewrite+update 2021-01-29 13:08:43,468 ERROR 'ubuntu-minimal' was not in the cache 2021-01-29 13:08:43,471 ERROR not handled exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 259, in __getitem__ return self._weakref[key] File "/usr/lib/python3.5/weakref.py", line 131, in __getitem__ o = self.data[key]() KeyError: 'ubuntu-minimal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 263, in __getitem__ rawpkg = self._cache[key] KeyError: 'ubuntu-minimal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/ubuntu-release-upgrader-k4nwoo_z/bionic", line 8, in <module> sys.exit(main()) File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeMain.py", line 238, in main if app.run(): File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeController.py", line 2072, in run return self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-k4nwoo_z/DistUpgrade/DistUpgradeController.py", line 1955, in fullUpgrade if not self.cache.anyVersionDownloadable(self.cache[pkg]): File "/usr/lib/python3/dist-packages/apt/cache.py", line 265, in __getitem__ raise KeyError('The cache has no package named %r' % key) KeyError: "The cache has no package named 'ubuntu-minimal'" 2021-01-29 13:08:43,471 DEBUG running apport_crash() 2021-01-29 13:08:43,472 ERROR failed to import apport python module, can't generate crash: No module named 'apport_python_hook' 2021-01-29 13:08:43,472 DEBUG can't find apport --------- cat /var/log/dist-upgrade/apt.log Log time: 2021-01-29 13:05:49.930369 Log time: 2021-01-29 13:06:39.656868 Log time: 2021-01-29 13:08:43.193422 ----------------------- ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: ubuntu-release-upgrader-core 1:16.04.32 Uname: Linux 5.9.6-x86_64-linode139 x86_64 ApportVersion: 2.20.1-0ubuntu2.28 Architecture: amd64 CrashDB: ubuntu Date: Fri Jan 29 13:30:45 2021 PackageArchitecture: all ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ubuntu-release-upgrader Symptom: dist-upgrade UpgradeStatus: Upgraded to xenial on 2021-01-29 (0 days ago) VarLogDistupgradeAptlog: Log time: 2021-01-29 13:05:49.930369 Log time: 2021-01-29 13:06:39.656868 Log time: 2021-01-29 13:08:43.193422 ** Affects: ubuntu-release-upgrader (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug dist-upgrade third-party-packages xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1913786 Title: fatal error occurred during upgrade to 18.04.5 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1913786/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs