Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Node dependencies not found: libc.so.6, libstdc++.so.6 not found (required by node) #237

Open
LegendaryWiz opened this issue Aug 22, 2022 · 1 comment

Comments

@LegendaryWiz
Copy link

I run a Homebridge program on my Raspberry Pi 3. However lately it has failed to run and produced error:

pi@raspberrypi:~ $ homebridge
node: /lib/ld-linux-armhf.so.3: version `GLIBCW2.?BGC?W!.}' not found (required by node)
node: /lib/arm-linux-gnueabihf/libdl.so.2: version `GLIBCW2.?BGC?W!.}' not found (required by node)
node: /lib/arm-linux-gnueabihf/libpthread.so.0: version `GLIBCW2.?BGC?W!.}' not found (required by node)
node: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version `GC?W!.}' not found (required by node)
node: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version `GCA_?,4C\ZACI_1<3.%gLIBEXX_34,14 ?CBI_AR]1>s/CxXABA_1.39 GLICXp_3.t.?8' not found (required by node)
node: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBCW2.?BGC?W!.}' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `C\ZACI_1<3.%gLIBEXX_34,14 ?CBI_AR]1>s/CxXABA_1.39 GLICXp_3.t.?8' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `gLIBEXX_34,14 ?CBI_AR]1>s/CxXABA_1.39 GLICXp_3.t.?8' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `?CBI_AR]1>s/CxXABA_1.39 GLICXp_3.t.?8' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CxXABA_1.39 GLICXp_3.t.?8' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLICXp_3.t.?8' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXECI_1.3FNIBcX?s.t.35' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `FNIBcX?s.t.35' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `[email protected]' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `gLIBCXP3.4.11' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `EL	CRZP.4.20' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `gLIBCXZ_s&4' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `E?IBKX\>2/4.21' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `CLiCC_&.?GLM?C_6,9`?LiBCG".10' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLM?C_6,9`?LiBCG".10' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `?LiBCG".10' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `FLyC_2,1GLIFCO2.6GLI?C_:.7P@' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIFCO2.6GLI?C_:.7P@' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLI?C_:.7P@' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBCW2.?BGC?W!.}' not found (required by node)

I am unsure what is wrong. I doubt its a corrupted SD card since my RPI boots fine and can SSH into it. Running commands like node -V or npm -V all produce the exact same error code. Some google search found a similar problem: GoogleCloudPlatform/buildpacks#198 suggested that the problem may be due to me running a node version that's too new? But I'm unsure of what happened and I'm not able to check what node version I'm using. I've not performed any node or npm updates lately. This error just started appearing out of the blue. In fact, any script such as npm cache clean -f or npm install -g n that involves node dependencies produces the exact same error code as shown above too.

Additionally, performing sudo apt-get upgrade returns the following error:

pi@raspberrypi:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 openssh-sftp-server : Depends: openssh-client (= 1:7.4p1-10+deb9u7) but 1:7.4p1-10+deb9u6 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
pi@raspberrypi:~ $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  coinor-libipopt1v5 libbluray2 libc-ares2 libhttp-parser2.8 libmicrodns0 libmumps-seq-4.10.0 libraw15 libsasl2-modules libuv1 nodejs-doc
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  openssh-client openssh-server
Suggested packages:
  keychain libpam-ssh monkeysphere ssh-askpass molly-guard rssh ufw
The following packages will be upgraded:
  openssh-client openssh-server
2 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
187 not fully installed or removed.
Need to get 0 B/1,001 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
Setting up systemd (232-25+deb9u14) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Illegal instruction
dpkg: error processing package systemd (--configure):
 subprocess installed post-installation script returned error exit status 132
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $ 

Really really appreciate any help. Homebridge handles a large part of my Smart Home system and its been down for many days already. Using a new SD card will be hard since it'll be troublesome copying setting everything up again. Thank you so much for anyone that can assist me in any way!

@XECDesign
Copy link

For general support, especially with third party software, the forum is a more appropriate place.

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

No branches or pull requests

2 participants