question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

【Help】/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found

See original GitHub issue

Error Info

When run require('usb') inside node:10 docker image , I got this error:

Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /node_modules/usb/build/Release/usb_bindings.node)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at bindings (/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/node_modules/usb/usb.js:1:57)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

Steps for error reproduction

docker pull node:10

docker run --rm -it node:10 bash

npm install usb@1.7.0

node -e "require('usb')"

How can I fix this issue? Looking forward to your reply, Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
thegeckocommented, May 5, 2021

@EvanXzj , @robertdrolland, @systemmonkey42 I’ve recreated the release using ubuntu 18.04 and believe this has fixed the issue.

Would you mind testing the pre-release using the repro steps?

docker pull node:10

docker run --rm -it node:10 bash

npm install usb@testing

node -e "require('usb')"

If this works, I’ll create a proper release.

0reactions
EvanXzjcommented, May 7, 2021

@thegecko Okay, Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting GLIBC_2.28 not found - node.js - Stack Overflow
My version is 2.27. So I has tried to fix by change the nodejs version. sudo apt-get remove nodejs nvm install 14.17.6.
Read more >
lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
Found this issue on Latest Version 2.0.7 I am using Binary package gotify-linux-amd64 While starting the server got this Below error .
Read more >
How to fix issue "node: /lib/x86_64-linux-gnu/libc.so.6
It happens because npm is not pointing to the latest node hence the ... /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.28' not found ...
Read more >
Version `GLIBC_2.28' not found - Ask Ubuntu
I'm trying to install PyTorch on ARMv7(32-bit) architecture but PyTorch doesn't have official ARMv7 builds so i tried this unofficial build. It ...
Read more >
lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
I am running PI-hole in a VM under Truenas 13 - just upgraded from 12 to 13 proceeded to update pihole by logging...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found