nvm install --lts: checksums don't match
Posted: 27. Apr 2020, 18:22
Host: Microsoft Surface, Windows 10
VirtualBox version: 6.1
Guest OS: Ubuntu 18.04
Guest Additions installed: yes (that is, I think so)
Used for comparison:
1. Ubuntu 16.04 running in a WSL instance on the same host PC.
2. Ubuntu 18.04 running native on a second PC.
I'm trying to install a piece of software on an Ubuntu 18.04 VM, and I keep getting a "Checksums don't match" error message. I only get the error message in the VM, not on a WSL instance on the same hardware, and not on native Ubuntu 18.04 on a different PC. I wonder if there's a setting in my VM parameters that I need to change?
The software is Node. It's installed using NVM. The NVM installation goes without a hitch, and gives the right version number. The error happens when I try to install node, using either or . (You don't need to know NVM or Node to help me with this issue. Keep reading.) From the terminal output, it looks like the problem is in either copying the archive to the VM, or extracting the bits from the archive.
Here's the NVM output:
Here's what it should look like:
... because that's what it looked like in WSL Ubuntu 16.04 on the same computer, and native Ubuntu 8.04 on the other computer.
So is there a parameter or a setting on my VM that I need to change to fix it?
VirtualBox version: 6.1
Guest OS: Ubuntu 18.04
Guest Additions installed: yes (that is, I think so)
Used for comparison:
1. Ubuntu 16.04 running in a WSL instance on the same host PC.
2. Ubuntu 18.04 running native on a second PC.
I'm trying to install a piece of software on an Ubuntu 18.04 VM, and I keep getting a "Checksums don't match" error message. I only get the error message in the VM, not on a WSL instance on the same hardware, and not on native Ubuntu 18.04 on a different PC. I wonder if there's a setting in my VM parameters that I need to change?
The software is Node. It's installed using NVM. The NVM installation goes without a hitch, and
Code: Select all
nvm --versionCode: Select all
nvm install nodeCode: Select all
nvm install --ltsHere's the NVM output:
Code: Select all
$ nvm install --lts
Installing latest LTS version.
Downloading and installing node v12.16.2...
Local cache found: ${NVM_DIR}/.cache/bin/node-v12.16.2-linux-x64/node-v12.16.2-linux-x64.tar.xz
Computing checksum with sha256sum
Checksums do not match: 'fa73d939d44e68cb27f475070cc3adb7b83cc5c242abd4cd35e800f24fedcbdd' found, 'f94a6eb06e80ef2794ebf51a2baed0b89ed307d3196ab5579f16c0fa7cc62901' expected.
Checksum check failed!
Removing the broken local cache...
Downloading (stuff deleted bcuz the forum SW won't let me post it)
################################################################################################# 100.0%
Computing checksum with sha256sum
Checksums do not match: '4751b88a4dbe8bdc0349c298b6ef88576185fe69fdf2687da71de01cd35219a2' found, 'f94a6eb06e80ef2794ebf51a2baed0b89ed307d3196ab5579f16c0fa7cc62901' 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.
Local cache found: ${NVM_DIR}/.cache/src/node-v12.16.2/node-v12.16.2.tar.xz
Computing checksum with sha256sum
Checksums do not match: '4e4179f69fd415050d6e91709c94f76e993d50e2ce418943df2b1624a8f22c98' found, '555c47ca0a40e5526d9ab7b2e9c18f9dbd1d956cbdc013fd2223bb11a069be78' expected.
Checksum check failed!
Removing the broken local cache...
Downloading (stuff deleted bcuz the forum SW won't let me post it)
################################################################################################# 100.0%
Computing checksum with sha256sum
Checksums do not match: '4fd3917e99b2f1b2588a719ed9d4eb36ba647c00f1e23ece9cb8a68b2a755255' found, '555c47ca0a40e5526d9ab7b2e9c18f9dbd1d956cbdc013fd2223bb11a069be78' 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.16.2 failed!
Code: Select all
Installing latest LTS version.
Downloading and installing node v12.16.2...
Downloading (stuff deleted bcuz the forum SW won't let me post it)
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Creating default alias: default -> lts/* (-> v12.16.2)
So is there a parameter or a setting on my VM that I need to change to fix it?