繁体   English   中英

在Ubuntu 14.0上安装NPM导致python 2.7依赖问题

[英]Installing NPM on Ubuntu 14.0 giving python 2.7 dependency issue

我正在ubuntu 14.0上安装npm。 它已经安装了python 2.7.11。 它显示以下错误。

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:
     apt-xapian-index : Depends: python:any (>= 2.7.1-0ubuntu2)
     duplicity : Depends: python:any (>= 2.7.1-0ubuntu2)
     gconf2 : Depends: python:any
     hplip-data : Depends: python:any (>= 2.7.1-0ubuntu2)
     ibus : Depends: python:any (>= 2.7.1-0ubuntu2)
     ibus-pinyin : Depends: python:any (>= 2.7.1-0ubuntu2)
     ibus-table : Depends: python:any (>= 2.7.1-0ubuntu2)
     landscape-client-ui-install : Depends: python:any
     npm : Depends: nodejs but it is not going to be installed
           Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
           Depends: node-ansi but it is not going to be installed
           Depends: node-archy but it is not going to be installed
           Depends: node-block-stream but it is not going to be installed
           Depends: node-fstream (>= 0.1.22) but it is not going to be installed
           Depends: node-fstream-ignore but it is not going to be installed
           Depends: node-github-url-from-git but it is not going to be installed
           Depends: node-glob (>= 3.1.21) but it is not going to be installed
           Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
           Depends: node-inherits but it is not going to be installed
           Depends: node-ini (>= 1.1.0) but it is not going to be installed
           Depends: node-lockfile but it is not going to be installed
           Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
           Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
           Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
           Depends: node-gyp (>= 0.10.9) but it is not going to be installed
           Depends: node-nopt (>= 2.1.1) but it is not going to be installed
           Depends: node-npmlog but it is not going to be installed
           Depends: node-once but it is not going to be installed
           Depends: node-osenv but it is not going to be installed
           Depends: node-read but it is not going to be installed
           Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
           Depends: node-request (>= 2.25.0) but it is not going to be installed
           Depends: node-retry but it is not going to be installed
           Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
           Depends: node-semver (>= 2.1.0) but it is not going to be installed
           Depends: node-sha but it is not going to be installed
           Depends: node-slide but it is not going to be installed
           Depends: node-tar (>= 0.1.18) but it is not going to be installed
           Depends: node-which but it is not going to be installed
     python-apt : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-aptdaemon : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-cairo : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-chardet : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-commandnotfound : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-crypto : Depends: python:any (>= 2.7.5-5~)
     python-cupshelpers : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-dbus : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-debian : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-debtagshw : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-defer : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-dirspec : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-gi : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-gobject-2 : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-gtk2 : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-httplib2 : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-ibus : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-imaging : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-libxml2 : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-lockfile : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-lxml : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-notify : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-oauthlib : Depends: python:any (>= 2.7.5-5~)
                       Depends: python:any (< 2.8)
     python-oneconf : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-openssl : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-pexpect : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-pil : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-piston-mini-client : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-pkg-resources : Depends: python:any (>= 2.7)
                            Depends: python:any (< 2.8)
     python-qt4 : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-reportlab : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-requests : Depends: python:any (< 2.8)
                       Depends: python:any (>= 2.7.5-5~)
     python-samba : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-serial : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-sip : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-six : Depends: python:any (>= 2.7.5-5~)
                  Depends: python:any (< 2.8)
     python-smbc : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-twisted-core : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-twisted-web : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-ubuntu-sso-client : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-urllib3 : Depends: python:any (>= 2.7.5-5~)
                      Depends: python:any (< 2.8)
     python-xapian : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-xdg : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-zeitgeist : Depends: python:any (>= 2.7.1-0ubuntu2)
     python-zope.interface : Depends: python:any (>= 2.7.1-0ubuntu2)
     sessioninstaller : Depends: python:any (>= 2.7.1-0ubuntu2)
     software-center : Depends: python:any (>= 2.7.1-0ubuntu2)
     software-center-aptdaemon-plugins : Depends: python:any (>= 2.7.1-0ubuntu2)
     totem : Depends: python:any (>= 2.7.1-0ubuntu2)
     totem-plugins : Depends: python:any (>= 2.7.1-0ubuntu2)
     ubuntu-sso-client-qt : Depends: python:any (>= 2.7.1-0ubuntu2)
     ubuntu-system-service : Depends: python:any (>= 2.7.1-0ubuntu2)
     unity : Depends: python:any
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
You might want to run 'apt-get -f install' to correct these:

Try 'apt-get -f install' with no packages

您尝试它告诉您的操作吗?

首先尝试:

apt-get update

接着

apt-get -f install

如果这样不起作用,请尝试aptitude软件包管理器。 它提供了多种解决方案,您可以选择一种。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM