I just tried to upgrade my Kubuntu 22.04, and I got this error:
Continue [yN] y
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,261 kB]
Fetched 1,261 kB in 0s (0 B/s)
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
extracting 'jammy.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit http://apt.pop-os.org/proprietary impish InRelease
Hit http://ca.archive.ubuntu.com/ubuntu impish InRelease
Hit http://ca.archive.ubuntu.com/ubuntu impish-updates InRelease
Hit http://apt.pop-os.org/release impish InRelease
Hit http://ca.archive.ubuntu.com/ubuntu impish-backports InRelease
Hit http://deb.volian.org/volian scar InRelease
Hit https://assets.checkra.in/debian InRelease
Hit http://ppa.launchpad.net/cappelikan/ppa/ubuntu impish InRelease
Hit http://ppa.launchpad.net/ernstp/mesarc/ubuntu impish InRelease
Hit http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu impish InRelease
Hit http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu impish InRelease
Hit http://ppa.launchpad.net/pipewire-debian/pipewire-upstream/ubuntu impish InRelease
Hit http://ppa.launchpad.net/radeon-profile/stable/ubuntu impish InRelease
Hit http://ppa.launchpad.net/smoser/swtpm/ubuntu impish InRelease
Hit http://security.ubuntu.com/ubuntu impish-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
Updating repository information
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/jammy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeMain.py", line 236, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 784, in updateSourcesList
self.sources = SourcesList(matcherPath=self.datadir)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
self.matcher = SourceEntryMatcher(matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
dist = DistInfo(base_dir=matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 270, in __init__
for line in _expand_template(dist_fname, csv_fname):
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 54, in _expand_template
with apt_pkg.TagFile(template) as tmpl:
apt_pkg.Error: E:Could not open file /tmp/ubuntu-release-upgrader-6xz6a1l8/Ubuntu.info - open (2: No such file or directory)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
block = f.read(1048576)
File "/usr/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/jammy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeMain.py", line 236, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-6xz6a1l8/DistUpgrade/DistUpgradeController.py", line 784, in updateSourcesList
self.sources = SourcesList(matcherPath=self.datadir)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
self.matcher = SourceEntryMatcher(matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
dist = DistInfo(base_dir=matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 270, in __init__
for line in _expand_template(dist_fname, csv_fname):
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 54, in _expand_template
with apt_pkg.TagFile(template) as tmpl:
apt_pkg.Error: E:Could not open file /tmp/ubuntu-release-upgrader-6xz6a1l8/Ubuntu.info - open (2: No such file or directory)