Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install nodejs on Debian and Ubuntu #1241

Closed
q0rban opened this issue Jul 29, 2021 · 19 comments
Closed

Unable to install nodejs on Debian and Ubuntu #1241

q0rban opened this issue Jul 29, 2021 · 19 comments

Comments

@q0rban
Copy link

q0rban commented Jul 29, 2021

I am unable to install NodeJS 12 on Debian buster due to unmet dependencies. The specific error is nodejs : Depends: libgcc-s1 (>= 3.4) but it is not installable.

Steps to replicate:

$ docker run debian:buster-slim bash -c 'apt-get update && apt-get -y install curl && curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && apt-get -y install nodejs'

...
## Confirming "buster" is supported...
...


The following packages have unmet dependencies:
 nodejs : Depends: libgcc-s1 (>= 3.4) but it is not installable
E: Unable to correct problems, you have held broken packages.
@agundy
Copy link
Contributor

agundy commented Jul 29, 2021

Same underlying issue but I want to point out that this additionally breaks for both ubuntu:xenial and ubuntu:bionic which up to today both built fine.

docker run ubuntu:xenial bash -c 'apt-get update && apt-get -y install curl && curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && apt-get -y install nodejs'
docker run ubuntu:bionic bash -c 'apt-get update && apt-get -y install curl && curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && apt-get -y install nodejs'

@gcarothers
Copy link

Same issue with Node 14.x as well, went looking for changes to the debian packages recently but didn't find any

@zodman
Copy link

zodman commented Jul 29, 2021

I confirm:

docker run debian:stable bash -c 'apt-get update && apt-get -y install curl && curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && apt-get -y install nodejs'
....
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Depends: libgcc-s1 (>= 3.4) but it is not installable
E: Unable to correct problems, you have held broken packages.

@q0rban q0rban changed the title Unable to install Node 12 on Debian buster Unable to install nodejs on Debian and Ubuntu Jul 29, 2021
@scwall
Copy link

scwall commented Jul 29, 2021

arf same, great update :/

Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [157 kB]
Fetched 198 kB in 1s (223 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Depends: libgcc-s1 (>= 3.4) but it is not installable
E: Unable to correct problems, you have held broken packages.

@igsu
Copy link
Contributor

igsu commented Jul 29, 2021

We are actively working on solving this issue, as soon as it has been fixed it will be reported here.

@EnnioWolsink
Copy link

If you can afford to use Node v16, this problem doesn't seem to occur when installing this version. Can anyone else confirm?

See https://github.com/nodesource/distributions#installation-instructions

@doc-balto
Copy link

Based on this other topic: #33

We found a temp workaround by pinning to the previous version. We're using docker w/ Ubuntu & Node 14, so added with this:

RUN set -ex \
    apt-get update \
    curl -o nodejs.deb https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.17.2-1nodesource1_amd64.deb \
    apt-get install -y ./nodejs.deb \
    rm nodejs.deb \
    rm -rf /var/lib/apt/lists/*

@igsu
Copy link
Contributor

igsu commented Jul 29, 2021

We have detected the source of the problem and this issue has been fixed.

@excid3
Copy link

excid3 commented Jul 29, 2021

Fix worked for me @igsu 🙏

@needcaffeine
Copy link

Get:5 https://deb.nodesource.com/node_12.x stretch/main amd64 nodejs amd64 12.22.4-1nodesource1 [18.2 MB]
Err:5 https://deb.nodesource.com/node_12.x stretch/main amd64 nodejs amd64 12.22.4-1nodesource1
  Writing more data than expected (18201958 > 18198878)
  Hashes of expected file:
   - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
   - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
   - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
   - Filesize:18198878 [weak]

Fetched 2338 kB in 0s (8342 kB/s)
E: Failed to fetch https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.4-1nodesource1_amd64.deb  Writing more data than expected (18201958 > 18198878)
   Hashes of expected file:
    - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
    - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
    - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
    - Filesize:18198878 [weak]

Unfortunately still failing for me.

@LupineDev
Copy link

Get:5 https://deb.nodesource.com/node_12.x stretch/main amd64 nodejs amd64 12.22.4-1nodesource1 [18.2 MB]
Err:5 https://deb.nodesource.com/node_12.x stretch/main amd64 nodejs amd64 12.22.4-1nodesource1
  Writing more data than expected (18201958 > 18198878)
  Hashes of expected file:
   - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
   - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
   - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
   - Filesize:18198878 [weak]

Fetched 2338 kB in 0s (8342 kB/s)
E: Failed to fetch https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.4-1nodesource1_amd64.deb  Writing more data than expected (18201958 > 18198878)
   Hashes of expected file:
    - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
    - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
    - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
    - Filesize:18198878 [weak]

Unfortunately still failing for me.

I get a similar error but it says Mirror sync in progress in the Failed to fetch... line. Hopefully it will resolve itself in a bit.

@nickatnight
Copy link

Confirmed working thanks @igsu

@needcaffeine
Copy link

I can confirm that it resolved itself! Thanks @igsu.

@sushanth-krishnaswamy
Copy link

Confirming that it resolved itself! Thanks @igsu :)

@arunchandrancTR
Copy link

Verified on my side, it is working for me. Thank you, team.

@q0rban
Copy link
Author

q0rban commented Jul 29, 2021

Thanks for the prompt fix, it was breaking Tugboat builds for our customers… Closing the issue. Oh, and here's a goat for your troubles. 🐐

@q0rban q0rban closed this as completed Jul 29, 2021
@scwall
Copy link

scwall commented Jul 30, 2021

thank you for your promptness @igsu

@adrienfr
Copy link

Still have an issue on CircleCI with :

curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs

Get:1 http://deb.debian.org/debian buster/main amd64 libpython2.7-minimal amd64 2.7.16-2+deb10u1 [395 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 python2.7-minimal amd64 2.7.16-2+deb10u1 [1369 kB]
Get:3 https://deb.nodesource.com/node_14.x buster/main amd64 nodejs amd64 14.17.4-1nodesource1 [25.0 MB]
Err:3 https://deb.nodesource.com/node_14.x buster/main amd64 nodejs amd64 14.17.4-1nodesource1
File has unexpected size (25211968 != 25045506). Mirror sync in progress? [IP: 23.62.230.111 443]
Hashes of expected file:

  • SHA256:796a1b5f6fa3caddd4b1f6e31bb8e98a1f289dae638a17d41ec73be0d080eceb
  • SHA1:d7e7966ad5ba47486a307d33b61b637e11c87335 [weak]
  • MD5Sum:2c4e16dcadfed0711d1a3192da4c6d1e [weak]
  • Filesize:25045506 [weak]

@eric-eye
Copy link

Hello! Thank you all for fixing yesterday. I am also still experiencing the checksum failure:

Get:1 https://deb.nodesource.com/node_12.x buster/main amd64 nodejs amd64 12.22.4-1nodesource1 [18.2 MB]
Err:1 https://deb.nodesource.com/node_12.x buster/main amd64 nodejs amd64 12.22.4-1nodesource1
  File has unexpected size (18316392 != 18198878). Mirror sync in progress? [IP: 23.62.230.111 443]
  Hashes of expected file:
   - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
   - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
   - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
   - Filesize:18198878 [weak]
E: Failed to fetch https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.4-1nodesource1_amd64.deb  File has unexpected size (18316392 != 18198878). Mirror sync in progress? [IP: 23.62.230.111 443]
   Hashes of expected file:
    - SHA256:e06f310695beca44b83eea02ea0ca3d518e3b04dfc28697a356383a2a8f462a1
    - SHA1:f8dbe1c58e0b37f8122dc70173215bc006323095 [weak]
    - MD5Sum:a20874d3437df32c259fa27d11d26d9d [weak]
    - Filesize:18198878 [weak]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests