You are not logged in.

#1 2017-05-15 10:11:49

GioGio
Member
Registered: 2017-01-03
Posts: 9

error while loading shared libraries: xxx: cannot open shared object

Hi everyone,

Yesterday I installed openssh and after trying the command ssh I received the error

error while loading shared libraries: xxx: cannot open shared object 

So I installed openssl and then it worked.
Now when I restarted the system, I have a new problem. It just hangs on Reached target Graphical Interface.

When I press ctrl+alt+f2 to log in with the non graphical interface, I saw that I cannot use anymore lots of commands (sudo and pacman included).
They both give me the same error

error while loading shared libraries: xxx: cannot open shared object

I tried to execute

 /sbin/ldconfig -v 

to try to fix the links, but it didn't work.

What should I do?
Thanks in advance for any hint.

Offline

#2 2017-05-15 10:50:53

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: error while loading shared libraries: xxx: cannot open shared object

Please post the system's full pacman.log

Offline

#3 2017-05-15 10:55:32

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

Re: error while loading shared libraries: xxx: cannot open shared object


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

Offline

#4 2017-05-15 10:59:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: error while loading shared libraries: xxx: cannot open shared object

Either you have been doing partial updates, which are unsupported, or you are using a mirror that is not up-to-date.

Boot from the install media a use pacman to do a full update of your system, see 'man pacman' on how to tell pacman to do operations on your currently installed system and not the install media root.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2017-05-15 13:13:55

GioGio
Member
Registered: 2017-01-03
Posts: 9

Re: error while loading shared libraries: xxx: cannot open shared object

R00KIE wrote:

Either you have been doing partial updates, which are unsupported, or you are using a mirror that is not up-to-date.

Boot from the install media a use pacman to do a full update of your system, see 'man pacman' on how to tell pacman to do operations on your currently installed system and not the install media root.

Now I got a problem with this.
I booted into the live USB, I mounted the root partition on /mnt and tried to execute

pacman -Syu -r /mnt

Problem now is that it says

error: Partition / too full: 196521 blocks are needed, 64033 blocks are free.

The output of df says that /dev/sda3 mounted on /mnt is 50% free and it has 9750784 blocks available

The output of df -i says that /mnt has 1141195 blocks available.

Any idea of the reason why it says that? Thanks in the meantime for the gist.

Offline

#6 2017-05-15 13:23:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: error while loading shared libraries: xxx: cannot open shared object

Set --cachedir as well.

Offline

#7 2017-05-16 14:06:05

GioGio
Member
Registered: 2017-01-03
Posts: 9

Re: error while loading shared libraries: xxx: cannot open shared object

Scimmia wrote:

Set --cachedir as well.

This did work thanks, and it seems it doesn't have anymore any problem related to shared libraries.
Unfortunately I forgot to mount the boot partition when upgrading the whole system, and I'm not sure if that's the reason, but now I can't boot anymore.
It says that it cannot load the kernel modules and then that it cannot mount the boot partition.
I guess I'm gonna open a new thread because so far I could not solve it from looking online.

Thanks a lot for the help!

Offline

#8 2017-05-16 14:08:19

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: error while loading shared libraries: xxx: cannot open shared object

Just boot from your USB again, mount the / and /boot partitions, and then use the same pacman flags you used above to reinstall the linux package.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-05-16 14:12:36

GioGio
Member
Registered: 2017-01-03
Posts: 9

Re: error while loading shared libraries: xxx: cannot open shared object

slithery wrote:

Just boot from your USB again, mount the / and /boot partitions, and then use the same pacman flags you used above to reinstall the linux package.

I did, but unfortunately this didn't help, it says that everything is up to date and that there is nothing to upgrade.

Offline

#10 2017-05-16 14:15:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: error while loading shared libraries: xxx: cannot open shared object

He didn't say to update, he said to reinstall the linux package.

Offline

Board footer

Powered by FluxBB