因此,我一直试图更新到Ubuntu22.04开发版本,但某些错误正在出现。每当我试图更新以下错误时,->就会出现
abc@ubuntu:~$ update-manager -d
Checking for a new Ubuntu release
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
extracting 'jammy.tar.gz'
No candidate ver: chromium
No candidate ver: microsoft-edge-stable
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-6ylluso8/jammy", line 8, in
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-6ylluso8/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 184, in __init__
with open(dist_fname) as dist_file:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-6ylluso8/Ubuntu.info'
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.8/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-6ylluso8/jammy", line 8, in
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-6ylluso8/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-6ylluso8/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 184, in __init__
with open(dist_fname) as dist_file:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-6ylluso8/Ubuntu.info'
有什么解决办法吗?我想一个名为Ubuntu.info的文件丢失了。
编辑:我被要求禁用@钒的第三方回复,但结果保持不变。
abc@ubuntu:~$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Checking for a new Ubuntu release
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
extracting 'jammy.tar.gz'
No candidate ver: chromium
No candidate ver: microsoft-edge-stable
No candidate ver: pipewire-audio-client-libraries
No candidate ver: pipewire-bin
No candidate ver: pipewire-media-session
No candidate ver: pipewire-pulse
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-son1yxme/jammy", line 8, in
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-son1yxme/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 184, in __init__
with open(dist_fname) as dist_file:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-son1yxme/Ubuntu.info'
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.8/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-son1yxme/jammy", line 8, in
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeController.py", line 2038, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-son1yxme/DistUpgrade/DistUpgradeController.py", line 1881, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-son1yxme/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 184, in __init__
with open(dist_fname) as dist_file:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-son1yxme/Ubuntu.info'
发布于 2022-04-25 18:57:41
刚刚在网上冲浪,找到了解决这个问题的办法,我的Ubuntu20.04被成功升级到22.04。解决方案可以找到这里。
代替一个名为“Pop.info”的文件(如答案中所示),创建一个名为“Ubuntu.info”的文件
发布于 2022-08-13 15:39:04
只是在手工执行do-release-upgrade
时遇到了这种情况。盖伊在此之前就失败了。这里给出的解决办法是MarianD为我解决了这个问题。您需要使用Ubuntu.info在/tmp/ubuntu-release-upgrader-*/
文件夹中创建touch
文件。
例如:touch /tmp/ubuntu-release-upgrader-93aizvle/Ubuntu.info
这可能很棘手,因为它每次运行do-distribution-upgrade
时都会生成一个新文件夹,而且在您有机会为新创建的文件夹键入touch
命令之前,它可能会失败。令人兴奋!我试了四次。记住用大写字母“U”。
我有一种强烈的感觉,在我的系统中加入一个PopOS回购是罪魁祸首。我这么做是为了得到一个不简单的版本的铬,但所有的地狱作为结果。我试图消除伤害,但两年后,我仍然遇到了一些伤疤。在对这个问题的许多答案中,我看到了对Pop.info
的引用。
https://askubuntu.com/questions/1404436
复制相似问题