[英]Unable to install Node.js in Ubuntu 19.04
我试图在 ubuntu 19.04 中安装节点,但我有很多 404 错误
Curl:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
日志:
## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 https://linux.teamviewer.com/deb stable InRelease
Hit:2 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease
Ign:3 http://archive.canonical.com/ubuntu disco InRelease
Err:4 http://archive.canonical.com/ubuntu disco Release
404 Not Found [IP: 91.189.92.150 80]
Get:5 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Ign:6 https://storage.googleapis.com/download.dartlang.org/linux/debian stable InRelease
Ign:7 http://security.ubuntu.com/ubuntu disco-security InRelease
Get:8 http://packages.microsoft.com/repos/code stable/main armhf Packages [20.8 kB]
Err:9 http://security.ubuntu.com/ubuntu disco-security Release
404 Not Found [IP: 91.189.91.39 80]
Get:10 http://packages.microsoft.com/repos/code stable/main arm64 Packages [20.8 kB]
Hit:11 https://storage.googleapis.com/download.dartlang.org/linux/debian stable Release
Hit:13 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:14 http://in.archive.ubuntu.com/ubuntu disco InRelease
Ign:15 http://in.archive.ubuntu.com/ubuntu disco-updates InRelease
Ign:16 http://in.archive.ubuntu.com/ubuntu disco-backports InRelease
Err:17 http://in.archive.ubuntu.com/ubuntu disco Release
404 Not Found [IP: 43.255.166.254 80]
Err:18 http://in.archive.ubuntu.com/ubuntu disco-updates Release
404 Not Found [IP: 43.255.166.254 80]
Err:19 http://in.archive.ubuntu.com/ubuntu disco-backports Release
404 Not Found [IP: 43.255.166.254 80]
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://in.archive.ubuntu.com/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://in.archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://in.archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
提前致谢
Ubuntu Disco 已停产,您应该编辑/etc/apt/sources.list
如下:
deb http://old-releases.ubuntu.com/ubuntu/ disco main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ disco-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ disco-updates main restricted universe multiverse
然后:
sudo apt update
sudo apt install nodejs
像这样安装:
sudo apt update
sudo apt install nodejs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.