do-release-upgrade 在此过程中深度中止。
主日志文件以以下内容结尾。我该如何恢复此系统?(apt.log 文件看起来很无聊)。
2015-03-28 08:30:32,930 INFO Using config files '['./DistUpgrade.cfg']'
2015-03-28 08:30:32,930 INFO uname information: 'Linux ciderpress 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64'
2015-03-28 08:30:32,930 INFO apt version: '1.0.1ubuntu2'
2015-03-28 08:30:32,930 INFO python version: '2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2]'
2015-03-28 08:30:32,930 INFO release-upgrader version '0.220.3' started
2015-03-28 08:30:32,932 INFO locale: 'en_US' 'UTF-8'
2015-03-28 08:30:32,995 ERROR not handled exception:
Traceback (most recent call last):
File "/tmp/update-manager-BUP2jL/trusty", line 10, in <module>
sys.exit(main())
File "/tmp/update-manager-BUP2jL/DistUpgrade/DistUpgradeMain.py", line 230, in main
from .DistUpgradeController import DistUpgradeController
File "/tmp/update-manager-BUP2jL/DistUpgrade/DistUpgradeController.py", line 74, in <module>
from . import sourceslist
File "/usr/lib/python2.7/dist-packages/DistUpgrade/sourceslist.py", line 35, in <module>
from apt.deprecation import function_deprecated_by
ImportError: No module named deprecation
答案1
我遇到了这个问题,并且从其他来源获得了一个有问题的 python-apt 包。我apt
通过编辑/etc/apt/sources.list
和删除文件手动删除了这些来源/etc/apt/sources.list.d
,然后执行以下操作:
apt-get update
apt-get remove python-apt
apt-get install update-manager-core
最后一个命令将重新安装 python-apt,它应该来自正确的 ubtuntu 源。升级现在似乎运行良好。