当尝试更新ubuntu上的节点时,它失败了linux-image-extra ...不会安装

时间:2017-09-14 11:37:25

标签: node.js linux ubuntu

我已经运行以下命令尝试更新节点,但获得以下输出:

$ sudo apt-get install -y nodejs
sudo: unable to resolve host phil: Resource temporarily unavailable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-extra-4.10.0-33-generic : Depends: linux-image-4.10.0-33-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-4.10.0-33-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我真的很困惑,因为我不明白我该做什么。有什么建议可以解决这个问题并将我的节点更新到版本8吗?

1 个答案:

答案 0 :(得分:0)

我解决了与未满足的依赖关系完全相同的问题。

执行命令

    sudo apt-get -f install

首先,您必须解决与未满足的依赖关系相关的所有问题,以便使用apt-get install安装内容

然后,我建议使用NVM安装NodeJS,这个链接可以帮助你:

https://www.digitalocean.com/community/tutorials/como-instalar-node-js-en-ubuntu-16-04-es