![从 16.04 LTS 到 18.04 LTS 的 `do-release-upgrade` 失败,并显示按 x 销毁或按 r 恢复窗口](https://linux22.com/image/1165291/%E4%BB%8E%2016.04%20LTS%20%E5%88%B0%2018.04%20LTS%20%E7%9A%84%20%60do-release-upgrade%60%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%B9%B6%E6%98%BE%E7%A4%BA%E6%8C%89%20x%20%E9%94%80%E6%AF%81%E6%88%96%E6%8C%89%20r%20%E6%81%A2%E5%A4%8D%E7%AA%97%E5%8F%A3.png)
我有一台机器运行 16.04 LTS。我尝试do-release-upgrade
升级,但总是失败。最后我得到:
“按 x 键销毁窗口或按 r 键恢复窗口”
我正在寻找可能存在问题的线索。/var/log/dist-upgrade/main.log
# cat ./main.log 2019-04-16 17:29:25,723 INFO Using config files '['./DistUpgrade.cfg.xenial']' 2019-04-16 17:29:25,723 INFO uname information: 'Linux romulus 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64' 2019-04-16 17:29:26,162 INFO apt version: '1.2.31' 2019-04-16 17:29:26,163 INFO python version: '3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]' 2019-04-16 17:29:26,167 INFO release-upgrader version '18.04.29' started 2019-04-16 17:29:26,181 INFO locale: 'en_US' 'UTF-8' 2019-04-16 17:29:26,257 DEBUG screen returned: 'There is a screen on: 4933.ubuntu-release-upgrade-screen-window (04/16/2019 02:10:26 PM)(Detached) 1 Socket in /var/run/screen/S-root. ' 2019-04-16 17:29:26,258 INFO found active screen session, re-attaching
答案1
事实证明,一些 Python 包不知何故损坏了。重新安装基本 Python 包以及与升级和包管理相关的包最终解决了这个问题。