do-release-upgrade 抛出此错误
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-1piubui5/groovy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 1932, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 801, 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-1piubui5/Pop.info'
我也有这个问题,但就我而言,它正在寻找
Ubuntu.info
.我的解决方案不是解决方案,而是一种解决方法:在检查现有存储库期间暂停 do-release-upgrade (只需在终端中按Crlt+ ),查找最新目录并在那里创建一个空的信息文件(,或类似的东西这个)。最后,您可以使用 取消暂停发布升级过程。Z
/tmp
ubuntu-release-upgrader-*
touch /tmp/ubuntu-release-upgrader-*/Pop.info
fg
请注意
/tmp/ubuntu-release-upgrader-*
krisek 评论中的星号。可能有几个这样的文件夹需要Pop.info
或ubuntu.info
被放入。在进行 dist-upgrade 之前,您需要从 apt 配置中删除额外的 repos,然后在升级后添加它们,但只有在检查它们是否仍然兼容之后才能添加它们。如果您不这样做,您的升级可能会部分突破。
列出配置中启用的存储库
删除一个