2017-06-07 26 views
1

不安裝我給了命令在Ubuntu 16.04的終端LTS AS-皮普在Ubuntu

$ 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?請參閱上面的錯誤。

+1

第一次運行'sudo apt-get -f install' –

+0

你應該看到上面的錯誤,它告訴你該怎麼做:)'你可能想要運行'apt-get -f install'' –

+0

Stack Overflow是一個用於編程和發展問題。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。另請參閱[我在哪裏發佈有關Dev Ops的問題?](http://meta.stackexchange.com/q/134306) – jww

回答

2

好吧,爲了得到pip,你需要安裝那些缺失的依賴關係。請嘗試以下操作:

sudo apt-get update

然後

sudo apt-get upgrade

下一個嘗試:

sudo apt-get install python-pip

如果不工作,然後與-f

嘗試

如需更多幫助,檢查了這一點:https://www.liquidweb.com/kb/how-to-install-pip-on-ubuntu-14-04-lts/

+0

我嘗試使用-f too.Same錯誤。 :/ –

+0

dkms:取決於:module-init-tools,但它不會被安裝這是否意味着我需要安裝dkms? –

+0

pip installed.Thanks:D –

1

運行

sudo apt -f install 

然後重試命令,如果它仍然無法正常工作,我認爲你需要install/upgrade一些軟件包中的錯誤