Error during install node js in debian

2019-01-29 00:48发布

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

2条回答
Root(大扎)
2楼-- · 2019-01-29 01:32

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楼-- · 2019-01-29 01:38

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.

查看更多
登录 后发表回答