node.js - 在 Ubuntu 16.10 上安装 nodejs 的问题

标签 node.js linux ubuntu

有人可以帮我理解为什么找不到这些包吗?

sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libuv1
The following NEW packages will be installed:
  libuv1 nodejs
0 upgraded, 2 newly installed, 0 to remove and 28 not upgraded.
Need to get 3.346 kB of archives.
After this operation, 14,1 MB of additional disk space will be used.
Err:1 http://it.archive.ubuntu.com/ubuntu yakkety/universe amd64 libuv1 amd64 1.9.1-1
  404  Not Found
Err:2 http://it.archive.ubuntu.com/ubuntu yakkety/universe amd64 nodejs amd64 4.2.6~dfsg-1ubuntu5
  404  Not Found
E: Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/universe/libu/libuv1/libuv1_1.9.1-1_amd64.deb  404  Not Found
E: Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/universe/n/nodejs/nodejs_4.2.6~dfsg-1ubuntu5_amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

最佳答案

试试这样安装

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

关于node.js - 在 Ubuntu 16.10 上安装 nodejs 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49775781/

相关文章:

node.js - 上传/部署 zip 文件时,不会创建 .platform Hook 中的 AWS Elastic Beanstalk 自定义 nginx .conf 文件

javascript - Mocha 在完成所有测试之前结束测试运行

linux - 使用来自 Linux 的证书向 Azure 进行身份验证

ruby - 每次在 linux 目录中创建新文件时运行一个进程

javascript - 'npm install bcrypt' 在 Ubuntu 17.04 64 位上失败

linux - Virtualbox 卡住了整个 Ubuntu 16.04.3 LTS

ruby - RVM - 无法在 Ubuntu 11.10 上安装 gem thrift

Javascript 文件或模块范围内的变量

node.js - Nodejs V8 GC 在 Excel 生成文件崩溃之前被通知

linux - 如何使用 sed 从字符串中删除小数?