我得到这个,你知道一个解决方法:
Errors were encountered while processing:
ubuntu-desktop
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 102, in apport_excepthook
pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
File "/usr/lib/python3/dist-packages/apport/report.py", line 525, in add_proc_info
raise ValueError('%s does not exist' % self['ExecutablePath'])
ValueError: /usr/bin/python3.4 (deleted) does not exist
Original exception was:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
dpkg: dependency problems prevent configuration of ubuntu-desktop:
ubuntu-desktop depends on ubuntu-session; however:
Package ubuntu-session is not installed.
ubuntu-desktop depends on unity-control-center; however:
Package unity-control-center is not installed.
ubuntu-desktop depends on unity-settings-daemon; however:
Package unity-settings-daemon is not installed.
dpkg: error processing package ubuntu-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ubuntu-desktop
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
所以这阻止了我在升级后登录到 X,因为显然
ubuntu-desktop
's 的依赖关系compiz
被破坏了。我通过转到纯文本外壳 (Ctrl+Alt+F1) 来修复它,然后通过一个小的调整来遵循这个解决方案:
根据How can I fix E: Sub-process /usr/bin/dpkg returned an error code (2)?
希望有帮助