我尝试使用软件更新程序进行升级,但下载文件后升级窗口默默关闭。然后我尝试使用 进行升级,do-release-upgrade
但也失败了,没有出现明显的错误消息。
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,263 kB]
Fetched 1,264 kB in 0s (0 B/s)
authenticate 'cosmic.tar.gz' against 'cosmic.tar.gz.gpg'
extracting 'cosmic.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://at.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
syslog 中没有错误消息,也/var/log/dist-upgrade
没有错误行:
2018-11-04 18:47:51,846 INFO Using config files '['./DistUpgrade.cfg']'
2018-11-04 18:47:51,846 INFO uname information: 'Linux white 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64'
2018-11-04 18:47:52,185 INFO apt version: '1.6.6'
2018-11-04 18:47:52,185 INFO python version: '3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]'
2018-11-04 18:47:52,188 INFO release-upgrader version '18.10.11' started
2018-11-04 18:47:52,198 INFO locale: 'en_US' 'UTF-8'
2018-11-04 18:47:52,246 INFO screen could not be run
2018-11-04 18:47:52,366 DEBUG Using 'DistUpgradeViewText' view
2018-11-04 18:47:52,412 DEBUG enable dpkg --force-overwrite
2018-11-04 18:47:52,445 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2018-11-04 18:47:55,863 DEBUG lsb-release: 'bionic'
2018-11-04 18:47:55,864 DEBUG _pythonSymlinkCheck run
2018-11-04 18:47:55,865 DEBUG openCache()
2018-11-04 18:47:55,865 DEBUG No such plugin directory: ./plugins
2018-11-04 18:47:55,865 DEBUG plugins for condition 'PreCacheOpen' are '[]'
2018-11-04 18:47:55,865 DEBUG plugins for condition 'cosmicPreCacheOpen' are '[]'
2018-11-04 18:47:55,865 DEBUG plugins for condition 'from_bionicPreCacheOpen' are '[]'
2018-11-04 18:47:55,865 DEBUG quirks: running PreCacheOpen
2018-11-04 18:47:55,865 DEBUG running Quirks.PreCacheOpen
2018-11-04 18:47:56,403 DEBUG /openCache(), new cache size 91315
2018-11-04 18:47:56,403 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2018-11-04 18:47:56,403 DEBUG checkViewDepends()
2018-11-04 18:47:56,404 DEBUG running doUpdate() (showErrors=False)
2018-11-04 18:47:58,472 DEBUG openCache()
2018-11-04 18:47:59,005 DEBUG /openCache(), new cache size 91315
2018-11-04 18:47:59,005 DEBUG doPostInitialUpdate
2018-11-04 18:47:59,005 DEBUG plugins for condition 'PostInitialUpdate' are '[]'
2018-11-04 18:47:59,005 DEBUG plugins for condition 'cosmicPostInitialUpdate' are '[]'
2018-11-04 18:47:59,005 DEBUG plugins for condition 'from_bionicPostInitialUpdate' are '[]'
2018-11-04 18:47:59,005 DEBUG quirks: running cosmicPostInitialUpdate
2018-11-04 18:47:59,005 DEBUG running Quirks.cosmicPostInitialUpdate
2018-11-04 18:47:59,027 DEBUG abort called
2018-11-04 18:47:59,027 DEBUG openCache()
2018-11-04 18:47:59,554 DEBUG /openCache(), new cache size 91315
我安装了所有更新并重新启动,然后尝试升级。我还应该检查什么?
答案1
您的空间情况如何?据我所知,18.10 本身就是一次操作系统更新失败。内核的恐慌程度比一栋挤满了毒贩的房子还要严重,毒贩们的前窗闪烁着灯光。最好的建议是坚持使用您目前拥有的东西。否则,请运行检查以查找损坏的软件包,并验证它们是否确实都是正常工作且匹配的依赖项。如果升级失败,它应该会给出一个错误。如果它只是在重启后挂起,我发现让它继续加载的唯一方法是通过 alt-ctrl-f2 切换到另一个会话,然后使用 alt-ctrl-f1 返回以取消等待加载。