gpt4 book ai didi

node.js - 无法在 Ubuntu 19.04 中安装 Node.js

转载 作者:行者123 更新时间:2023-12-04 18:36:17 25 4
gpt4 key购买 nike

我试图在 ubuntu 19.04 中安装 Node ,但我有很多 404 错误
卷发:

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

关于node.js - 无法在 Ubuntu 19.04 中安装 Node.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66915580/

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