Nodejs:取决于:rlwrap 但它不可安装

Joe*_*Joe 5 node.js apt ubuntu-14.04

刚刚在云中购买了一个全新的虚拟服务器 Ubuntu 14.04。

我使用 apt-get update 更新了我的软件包。

尝试安装 node js 时出现问题。我遵循了本指南:https : //github.com/joyent/node/wiki/installing-node.js-via-package-manager

当我跑步时,sudo apt-get install -y nodejs我得到了这个:

user@server sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Depends: rlwrap but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

这个 rlwrap 是什么?我用谷歌搜索但没有找到如何安装它。

--更新--

我尝试了以下建议。没有成功。我降级到 12.04。一切都在那里工作。

bek*_*kce 5

我在 Ubuntu 14.04 中遇到了同样的问题。解决方案:

  1. rlwraphttp://packages.ubuntu.com/trusty/rlwrap下载。这是一个直接链接
  2. 安装它 sudo dpkg -i rlwrap_0.34-2_amd64.deb
  3. 安装 nodejs sudo apt-get install nodejs


use*_*275 2

  1. 启用 Universe 存储库sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
  2. 修复和更新sudo dpkg --configure -a && sudo apt-get update && sudo apt-get -y upgrade
  3. 再试一次(请注意,node.js 指令将 Ubuntu 存储库替换为自定义存储库,因此请确保脚本有效)
>apt-cache show rlwrap
Package: rlwrap
Priority: optional
Section: universe/editors
Installed-Size: 300
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Francois Marier <francois@debian.org>
Architecture: amd64
Version: 0.37-2
Provides: readline-editor
Depends: libc6 (>= 2.4), libncurses5 (>= 5.7+20100313), libreadline6 (>= 6.0)
Filename: pool/universe/r/rlwrap/rlwrap_0.37-2_amd64.deb
Size: 80968
MD5sum: 8fca381b84e7205b92615d2d2f6df588
SHA1: ea227d0b53c16cec64f259e349d69073fce972f8
SHA256: 09d5d948a387f77a1f09b8ad800a73349dbcd6245f787496e0f1743df5259ea4
Description-en: readline feature command line wrapper
 This package provides a small utility that uses the GNU readline library
 to allow the editing of keyboard input for any other command.  Input
 history is remembered across invocations, separately for each command;
 history completion and search work as in bash and completion word lists
 can be specified on the command line.
Homepage: http://utopia.knoware.nl/~hlub/uck/rlwrap/
Description-md5: 2dd4e4df63ed824e61c4e21ad05cd1eb
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: edubuntu-desktop-kde, edubuntu-desktop-gnome
Run Code Online (Sandbox Code Playgroud)