【发布时间】:2018-02-08 17:17:13
【问题描述】:
我使用的是 Ubuntu 16.04LTS。 我在终端中输入了以下命令:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
作为回报,我收到以下错误:
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/tualatrix/next/ubuntu xenial 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/tualatrix/ppa/ubuntu xenial 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: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
我刚刚从 Ubuntu 存储库安装了非常旧版本的 NodeJS 和 NPM,因为我无法安装最新版本。但是,我仍然想要最新版本的 Node 和 NPM。
【问题讨论】:
-
npm i -g npm更新 npm。对于节点检查n -
在运行命令之前你是否已经用
sudo apt update更新了你的包列表? -
是的,我做到了。我执行了更新
-
我认为你的问题不是来自节点安装程序,而是你的包列表中的一个错误包:似乎是包
http://ppa.launchpad.net/tualatrix/next/ubuntu。 -
如何删除它?
标签: node.js ubuntu-16.04