无法将 Ubuntu 从 16.04.1 升级到 16.10

无法将 Ubuntu 从 16.04.1 升级到 16.10

将 Ubuntu 从 16.04 升级到 16.10 后,下载数据包后,安装阶段开始,窗口打开终端,显示以下内容:

Rozpakowywanie szablonów pakietów dla pakietów: 100%
Prekonfiguracja pakietów...
Rozpakowywanie szablonów pakietów dla pakietów: 100%
Prekonfiguracja pakietów...
Rozpakowywanie szablonów pakietów dla pakietów: 100%
Prekonfiguracja pakietów...
Rozpakowywanie szablonów pakietów dla pakietów: 100%
Prekonfiguracja pakietów...

然后挂了。这是 /var/log/dist-upgrade/main.log 的结尾

2016-11-23 19:21:25,019 ERROR not handled exception:Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-_qub02e8/yakkety", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeMain.py", line 242, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeController.py", line 1880, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade
if not self.doDistUpgrade():
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeController.py", line 1183, in doDistUpgrade
res = self.cache.commit(fprogress,iprogress)
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeCache.py", line 267, in commit
apt.Cache.commit(self, fprogress, iprogress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 515, in commit
res = self.install_archives(pm, install_progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 479, in install_archives
res = install_progress.run(pm)
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeView.py", line 234, in run
res = os.WEXITSTATUS(self.wait_child())
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeViewGtk3.py", line 339, in wait_child
self.update_interface()
File "/tmp/ubuntu-release-upgrader-_qub02e8/DistUpgrade/DistUpgradeViewGtk3.py", line 346, in update_interface
InstallProgress.update_interface(self)
File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 255, in update_interface
if float(percent) != self.percent or status_str != self.status:
ValueError: could not convert string to float: '0,0000'
2016-11-23 19:21:25,020 DEBUG running apport_crash()

答案1

我遇到了同样的问题,这个错误已报告这里这里。我找到了一个立即的解决方案这里,我只是引用 jml3473 的评论(做了一些调整以使其更清楚):

我终止了升级 python 进程,然后我做了: sudo dpkg --configure -a sudo apt-get update sudo apt-get dist-upgrade
dpkg 配置做了很多事情,但是 gnome-shell 和 gnome-session 遇到了依赖问题,所以我做了:
sudo apt-get -f install
我现在正在重做:
sudo apt-get dist-upgrade

这对我来说很管用。我必须澄清一下,我是在进程卡住后立即执行此操作的,我读了一些评论,说尝试重新启动后它就不再起作用了。

相关内容