AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 714311
Accepted
Gabor
Gabor
Asked: 2015-12-29 11:19:15 +0800 CST2015-12-29 11:19:15 +0800 CST 2015-12-29 11:19:15 +0800 CST

无法升级到 Vivid

  • 772

我得到这个,你知道一个解决方法:

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. 
15.04
  • 2 2 个回答
  • 228 Views

2 个回答

  • Voted
  1. Best Answer
    Gabor
    2015-12-29T13:05:16+08:002015-12-29T13:05:16+08:00

    所以这阻止了我在升级后登录到 X,因为显然ubuntu-desktop's 的依赖关系compiz被破坏了。

    我通过转到纯文本外壳 (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
    
    • 1
  2. piotrek1543
    2015-12-29T11:53:23+08:002015-12-29T11:53:23+08:00

    根据How can I fix E: Sub-process /usr/bin/dpkg returned an error code (2)?

    尝试按照以下步骤操作:

    我从一个德语链接试过这个:

    Firstable:下载并从以下链接启动此文件 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/

    希望有帮助

    • 0

相关问题

  • ubuntu 15.04 显示问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve