gpt4 book ai didi

node.js - 当尝试在 ubuntu 上更新 Node 时,它失败并显示 linux-image-extra... not going to be installed

转载 作者:太空宇宙 更新时间:2023-11-04 12:20:15 24 4
gpt4 key购买 nike

我已经运行以下命令来尝试更新 Node ,但得到以下输出:

$ 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).

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

最佳答案

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

运行:

    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

关于node.js - 当尝试在 ubuntu 上更新 Node 时,它失败并显示 linux-image-extra... not going to be installed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46218086/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com