安装 Nodejs 包时出错

安装 Nodejs 包时出错

我需要在 Ubuntu 14.04 中安装 Nodejs

为此,我参考以下 URL 在终端中执行了以下命令:

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

sudo apt-get install nodejs

安装过程的结果是,我收到了以下过程的输出:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
 nodejs : Depends: libc-ares2 (>= 1.8.0) but it is not going to be installed
          Depends: libv8-3.14.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

根据上述输出,我执行了以下命令:

sudo apt-get -f install

但执行上述命令后出现以下错误:

E: Sub-process /usr/bin/dpkg returned an error code (1)

请提出适当的解决方案。

相关内容