发行版从 18 LTS 升级到 20 LTS 时出现错误

发行版从 18 LTS 升级到 20 LTS 时出现错误

我正在尝试将 Kubuntu 18 LTS(最新 wit hall 更新)升级到 20.04 LTS。下面是我运行更新命令时发生的情况,我想知道是否有人已经修复了这个问题:

sudo do-release-upgrade -m 桌面 检查新的 Ubuntu 版本 获取:1 升级工具签名 [1,554 B]
获取:2 升级工具 [1,336 kB]
在 0 秒内获取 1,338 kB (0 B/s)
对照“focal.tar.gz.gpg”验证“focal.tar.gz” 提取“focal.tar.gz”

读缓存

检查包管理器 正在读取包列表... 完成 正在构建依赖关系树 正在读取状态信息... 完成 命中 http://ie.archive.ubuntu.com/ubuntubionic 热门
发布http://ie.archive.ubuntu.com/ubuntubionic-updates 发布
热度http://ppa.launchpad.net/bluetooth/bluez/ubuntubionic 热门
发布http://ie.archive.ubuntu.com/ubuntubionic-backports 发行
热度http://ppa.launchpad.net/linuxuprising/java/ubuntubionic 热门发布 https://deb.nodesource.com/node_10.xbionic 释放中
获取:1https://download.docker.com/linux/ubuntubionic InRelease [64.4 kB] 已发布 http://security.ubuntu.com/ubuntubionic-security InRelease
已获取 64.4 kB,耗时 0 秒(0 B/秒)
正在读取软件包列表... 完成 正在构建依赖关系树
正在读取状态信息... 完成

回溯(最近一次调用最后一次):文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”,第 197 行,位于 _get_from_and_to_version di.version('%s' % self.controller.fromDist).split()[0] AttributeError: 'UbuntuDistroInfo' 对象没有属性 'version'

在处理上述异常的过程中,又发生了另一个异常:

                                                                                                                 Traceback (most recent call last):                                    

文件“/tmp/ubuntu-release-upgrader-hup3v_tw/focal”,第 8 行,在
sys.exit(main()) 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeMain.py”,第 238 行,在 main 中
如果 app.run():文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”,第 2089 行,在运行中
返回 self.fullUpgrade() 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”,第 1926 行,在 fullUpgrade 中
如果不是 self.doPostInitialUpdate():文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”,第 924 行,在doPostInitialUpdate self.quirks.run("PostInitialUpdate") 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”,第 99 行,在 run func() 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”,第 118 行,在 focalPostInitialUpdate self._get_from_and_to_version() 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”,第 203 行,在 _get_from_and_to_version (r.version for r in di.get_all("object") AttributeError:'UbuntuDistroInfo' 对象没有属性'get_all' 错误在 sys.excepthook: Traceback(最近一次调用最后一次):文件“/usr/lib/python3/dist-packages/problem_report.py”,第 497 行,在 add_to_existing self.write(f) 文件“/usr/lib/python3/dist-packages/problem_report.py”,第 450 行,在 write block = f.read(1048576) 文件“/usr/lib/python3.6/codecs.py”,第 321 行,在解码(result,consumed)= self._buffer_decode(data, self.errors, final) UnicodeDecodeError:'utf-8'编解码器无法解码位置 1 中的字节 0x8b:无效的起始字节

原始异常是:回溯(最近一次调用最后一次):文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”,第 197 行,在 _get_from_and_to_version di.version('%s' % self.controller.fromDist).split()[0] AttributeError:'UbuntuDistroInfo'对象没有属性'version'

在处理上述异常的过程中,又发生了另一个异常:

回溯(最近一次调用最后一次):文件“/tmp/ubuntu-release-upgrader-hup3v_tw/focal”,第 8 行,在 sys.exit(main())文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeMain.py”,第 238 行,在 main 中,如果 app.run():文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”,第 2089 行,在运行中返回 self.fullUpgrade()文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”,第 1926 行,在 fullUpgrade 中如果不是 self.doPostInitialUpdate():文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeController.py”, 第 924 行, 在 doPostInitialUpdate self.quirks.run(“PostInitialUpdate”) 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”, 第 99 行, 在 run func() 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”, 第 118 行, 在 focalPostInitialUpdate self._get_from_and_to_version() 文件“/tmp/ubuntu-release-upgrader-hup3v_tw/DistUpgrade/DistUpgradeQuirks.py”, 第 203 行, 在 _get_from_and_to_version (r.version for r in di.get_all(“object”) AttributeError:“UbuntuDistroInfo”对象没有属性“get_all”

相关内容