Error during install node js in debian

跟風遠走 提交于 2019-11-30 09:50:16

问题


I trying to install in debian nodejs, I am following these steps how-to-install-node-js-on-ubuntu but when I run sudo bash nodesource_setup.sh the errors below showed for me, anyone help me to solve it ?

W: The repository 'http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/videolan/stable-daily/ubuntu artful Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Falhou ao buscar http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/maverick/main/binary-amd64/Packages  403  Forbidden
E: Falhou ao buscar http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/artful/main/binary-amd64/Packages  404  Not Found
E: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.
Error executing command, exiting

回答1:


This is not related to NodeJS's package in any way.

The real issue is stated:

The repository basically_all_your_repos does not have a Release file.

Your ppa entries are corrupted. Delete all ppa entries which throw errors and then run apt-get update. I'm guessing the installation fails at the beginning, when (sudo) apt-get update is issued. You can check out how to remove ppas here.




回答2:


Try to use NVM to install node js and it helps to checkout different node versions in the same machine for different project.

Check this answer. I clearly listed the commands on how to install node js with NVM on linux.




回答3:


Using Software & Updates Application From https://stackoverflow.com/a/41253291/11032592

  1. Open the Software Updates application;
  2. In "Other Software" tab unmark all options;
  3. In Ubuntu Software tab, "Download from:" choose "Main server" option.
  4. Click in "Close" button and wait a minute until ubuntu reload apt-get.
  5. Open terminal --> sudo apt-get clean all
  6. Open terminal --> sudo apt-get update Done.


来源:https://stackoverflow.com/questions/47251703/error-during-install-node-js-in-debian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!