【发布时间】:2017-02-25 06:10:02
【问题描述】:
我正在运行 Debian Jessie (8.5) 并尝试安装 Node.js:
sudo apt-get install -y nodejs
它变成了一个兔子洞。上面的命令给了我错误:
nodejs : Depends: rlwrap but it is not installable
apt-get 似乎对 rlwrap 一无所知,因为apt-cache search rlwrap 什么也没想到。所以我手动下载了包(rlwrap-0.42),并尝试在上面运行./configure,结果如下:
You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
this program!
所以我安装了libreadline,这并没有使错误消失,但我发现here 也需要libreadline-dev。再次apt-cache search 什么都没有,所以我从here (packages.ubuntu.com) 下载了包。
debian 包安装程序告诉我:
Error: Dependency is not satisfiable: libtinfo-dev
所以我尝试下载并安装libtinfo-dev。那个人说它需要libtinfo5。然后,libtinfo5 给了我以下信息:
Error: breaks existing package 'libncurses5' dependency libtinfo5 (= 5.9 +20140913-1 +b1)
现在我被困住了。我该如何解决这个包裹问题?或者有没有更简单的方法来做到这一点?提前致谢!
编辑:在执行apt-get update 和apt-cache search rlwrap 之后我的终端窗口的图像
【问题讨论】:
-
我设法使用不同版本的 Node.js 解决了这个问题(在 Debian 8.2 上):
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -然后apt-get install nodejs
标签: node.js linux debian installation apt