You are not logged in.

#1 2015-10-17 22:56:52

Rappelle
Member
Registered: 2011-03-22
Posts: 9

Can't SSH - libncurses cannot open shared object file

Crap!

While trying to install erlang and elixir on my remote server, I started receiving this error when trying to sudo -i:

bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

Tried reinstalling from pacman, and it said the xz file was corrupted, do I want to remove it? Ok.
Went around in circles trying to install from pacman and yaourt for 5 minutes, and then came back to it after disconnecting, and now I can't even SSH into my server as I get the error above. WELP.

Not sure what to do if I can't even SSH in!?

Offline

#2 2015-10-17 23:12:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,873
Website

Re: Can't SSH - libncurses cannot open shared object file

Short answer: don't do partial updates.

If you have another way into the system (e.g. web-based KVM), try using that; you'll probably need to boot into a liveCD environment to fix your mess though. Otherwise, you're going to have to restore from a backup, or get whoever has physical access to the remote system to do this for you.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-10-17 23:47:12

Rappelle
Member
Registered: 2011-03-22
Posts: 9

Re: Can't SSH - libncurses cannot open shared object file

Say I have access to the file system via a rescue live cd (non-arch), how would I go about fixing this up?

Offline

#4 2015-10-17 23:54:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,535
Website

Re: Can't SSH - libncurses cannot open shared object file

There are probably a few ways - but the shortest would be to downgrade any packages you upgraded in the partial upgrade (using the approach here) then do a proper system upgrade, just as I recently described in another thread.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB