【问题标题】:Unmet dependencies when trying to install python and Django on Ubuntu 14.04尝试在 Ubuntu 14.04 上安装 python 和 Django 时未满足的依赖项
【发布时间】:2016-05-13 06:30:25
【问题描述】:

我是python/django的新手,按照How To Install the Django Web Framework on Ubuntu 14.04和“Global Install through pip(section)”进行安装,

当我运行 apt-get install python-pip 时,出现以下错误

aagyat@ubuntu:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gnome-orca : Depends: python3-brlapi but it is not going to be installed
 gnome-sudoku : Depends: python3-gi-cairo (>= 2.90.1) but it is not going to be installed
 onboard : Depends: python3-gi-cairo but it is not going to be installed
           Recommends: onboard-data (>= 0.99.0~alpha1~tr1531) but it is not going to be installed
 python-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu3) but it is not going to be installed
              Recommends: python-dev-all (>= 2.6) but it is not installable
 python3-commandnotfound : Depends: python3-gdbm but it is not going to be installed
 python3-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu3) but it is not going to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
 python3-software-properties : Depends: unattended-upgrades but it is not going to be installed
 usb-creator-common : Depends: python3-debian but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

甚至运行sudo apt-get -f install python-pip 在控制台中也出现同样的错误。

我该如何解决这个问题,我们将非常感谢您的帮助。

当我只运行 sudo apt-get -f install 时,会出现以下错误

dpkg: error processing package usb-creator-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of usb-creator-gtk:
 usb-creator-gtk depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 usb-creator-gtk depends on python3; however:
  Package python3 is not configured yet.
 usb-creator-gtk depends on usb-creator-common (= 0.2.56.3ubuntu0.1); however:
  Package usb-creator-common is not configured yet.

dpkg: error processing package usb-creator-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Errors were encountered while processing:
 python3-minimal
 python3
 language-selector-common
 python3-xkit
 ubuntu-drivers-common
 python3-gdbm:amd64
 python3-commandnotfound
 apturl-common
 python3-pycurl
 unattended-upgrades
 python3-software-properties
 software-properties-common
 software-properties-gtk
 apturl
 gedit
 python3-xdg
 python3-speechd
 python3-pyatspi
 python3-brlapi
 python3-louis
 gnome-orca
 python3-cairo
 python3-gi-cairo
 gnome-sudoku
 language-selector-gnome
 onboard
 python3-chardet
 python3-lxml
 python3-plainbox
 python3-six
 python3-urllib3
 python3-requests
 python3-pyparsing
 python3-checkbox-support
 python3-checkbox-ng
 python3-colorama
 python3-debian
 python3-distlib
 python3-feedparser
 python3-html5lib
 python3-httplib2
 python3-markupsafe
 python3-mako
 python3-setuptools
 python3-pip
 python3-uno
 python3-wheel
 rhythmbox-plugin-zeitgeist
 rhythmbox-plugins
 usb-creator-common
 usb-creator-gtk
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

【问题讨论】:

  • sudo apt-get install python-pip python-dev build-essential 试试这个。
  • 我看到了同样的错误。 @RahulKP
  • sudo apt-get update 再试一次。
  • 试过但没有成功,同样的错误@RahulKP
  • 我试过了,我用回复编辑了我的问题,请看一下。 @AnttiHaapala

标签: python-3.x ubuntu dependency-management apt


【解决方案1】:

终于用下面的命令解决了,更多信息请点击链接

sudo apt-get --reinstall install python3

Repair damaged Python3.2 installation (Ubuntu)

【讨论】:

  • 嗯,你的 Python 3 是怎么破解的?
  • 几天前我在做一些研发,我认为我错误地破坏了 Python。
猜你喜欢
  • 2015-01-13
  • 1970-01-01
  • 2018-09-18
  • 2017-11-17
  • 2017-07-17
  • 2023-03-31
  • 1970-01-01
  • 2017-10-03
  • 2015-04-01
相关资源
最近更新 更多