无法升级至 Vivid

无法升级至 Vivid

我明白了,你知道有什么解决方法吗:

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. 

答案1

因此,这阻止我在升级后登录 X,因为显然ubuntu-desktop的依赖关系compiz已被破坏。

我通过进入纯文本 shell (Ctrl+Alt+F1) 然后执行以下操作来修复此问题此解决方案稍作调整:

sudo vi /etc/apt/apt.conf
# add this line:   APT::Default-Release "vivid"; 
sudo apt-get -t vivid install apt/vivid
sudo apt-get update
sudo apt-get dist-upgrade

答案2

根据我该如何修复 E:子进程 /usr/bin/dpkg 返回错误代码 (2)?

尝试按照以下步骤操作:

我已经从德语链接尝试过此操作:

首先:从下面的链接下载并启动这个文件 available.ksh
https://media-cdn.ubuntu-de.org/forum/attachments/10/04/7312538-available.ksh

然后

   sudo apt-get update && sudo apt-get dist-upgrade
   sudo dpkg --clear-avail 

再说一遍:

        sudo apt-get update && sudo apt-get dist-upgrade   

我获得该信息的地方。
https://forum.ubuntuusers.de/topic/dpkg-fehler-bei-aktualisierung/

希望有帮助

相关内容