【发布时间】:2017-06-07 08:30:18
【问题描述】:
我在 Ubuntu 16.04 LTS as-的终端上给出了命令-
$ sudo apt 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:
> bcmwl-kernel-source:i386 : Depends: dkms:i386
> Depends: linux-libc-dev:i386 but it is not going to be installed
> Depends: libc6-dev:i386 but it is not going to be installed
> Depends: linux-headers-generic:i386 but it is not going to be installed or
> linux-headers:i386 dkms : Depends: module-init-tools but it is not going to be installed
> python-pip : Depends: python-pip-whl (= 8.1.1-2ubuntu0.4) but it is
> not going to be installed
> Recommends: python-all-dev (>= 2.6) but it is not going to be installed
> Recommends: python-setuptools but it is not going to be installed
> Recommends: python-wheel but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no
> packages (or specify a solution).
如何安装 pip?请查看以上错误。
【问题讨论】:
-
第一次运行
sudo apt-get -f install -
你应该看到上面的错误,它告诉你该怎么做:)
You might want to run 'apt-get -f install' -
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地方。另见Where do I post questions about Dev Ops?