【问题标题】:nvm install nodejs fail due to Checksums do not match由于校验和不匹配,nvm install nodejs 失败
【发布时间】:2020-08-28 13:09:55
【问题描述】:

我尝试通过在 vagrant box ubuntu/bionic64 上使用 nvm 来安装 nodejs,但不幸的是在安装过程中遇到了问题。安装命令在我的本地 wsl 上运行就好了,不知道为什么 vagrant box 有问题。以下是我的安装命令和安装错误。

wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
nvm install 12.18.3
Downloading and installing node v12.18.3...
Local cache found: ${NVM_DIR}/.cache/bin/node-v12.18.3-linux-x64/node-v12.18.3-linux-x64.tar.xz
Computing checksum with sha256sum
Checksums do not match: '7bedb667857950ad616bc1be0be5d96c7e5ba7e1d99f544df54f1fa7d07b67be' found, 'b79e02e48d0a1ee4cd4ae138de97fda5413542f2a4f441a7d0e189697b8da563' expected.
Checksum check failed!
Removing the broken local cache...
Downloading https://nodejs.org/dist/v12.18.3/node-v12.18.3-linux-x64.tar.xz...
##################################################################################################################################################### 100.0%Computing checksum with sha256sum
Checksums do not match: 'ed85d09bce5a33233ffad2e905e9cdf85d195b1005d1a3579c86381a86dc8e0d' found, 'b79e02e48d0a1ee4cd4ae138de97fda5413542f2a4f441a7d0e189697b8da563' expected.
xz: (stdin): Compressed data is corrupt
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Binary download failed, trying source.
Detected that you have 1 CPU core(s)
Number of CPU core(s) less than or equal to 2, running in single-threaded mode
Local cache found: ${NVM_DIR}/.cache/src/node-v12.18.3/node-v12.18.3.tar.xz
Computing checksum with sha256sum
Checksums do not match: 'be461dce2b2b5cc22aa3752dadd38513053a2b5b0fc6d608a3e7d520066c51cc' found, '71158026579487422fd13cc2553b34cddb76519098aa6030faab52f88c6e0d0e' expected.
Checksum check failed!
Removing the broken local cache...
Downloading https://nodejs.org/dist/v12.18.3/node-v12.18.3.tar.xz...
##################################################################################################################################################### 100.0%Computing checksum with sha256sum
Checksums do not match: 'd842d965b6bc5f051c9ca0cbe7b7c93878e9bc042f1e9a731bc84107ceb6cb5b' found, '71158026579487422fd13cc2553b34cddb76519098aa6030faab52f88c6e0d0e' expected.
xz: (stdin): Compressed data is corrupt
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
nvm: install v12.18.3 failed!

【问题讨论】:

  • 我自己只是在寻找几乎完全相同的问题-一些版本差异但环境相似-vagrant / ubuntu / windows。有趣的是,当我在 Mac 上运行 Vagrant 框时,我没有看到相同的行为(即它有效)。

标签: node.js ubuntu vagrant ubuntu-18.04 nvm


【解决方案1】:

this post

遇到了类似的问题。我按照说明禁用了 Windows Hyper-V,现在我的校验和问题在 Vagrant/Virtualbox/NVM 安装中消失了。可悲的是,这似乎弄乱了我使用较多的 Docker,所以虽然这解决了这个问题,但治疗可能会更糟。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-30
    • 2015-12-01
    相关资源
    最近更新 更多