我已经使用 ubuntu 大约一年了,一直在使用它,而且我一直使用 21.10。现在我正试图升级,它却对我很生气。它说:
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-rt319ihr/jammy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-rt319ihr/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-rt319ihr/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-rt319ihr/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-rt319ihr/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-rt319ihr/Ubuntu.info - open (2: No such file or directory)
我已经在系统上弄乱了一些东西,比如包源、使用 pop os 的启动器以及在 ubuntu 登录屏幕上添加图像,但我看不出它们会如何影响此错误。我需要一些帮助,因为我知道我的版本不会再得到支持,我希望能够更新。提前致谢!