Yacine
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
Contact: Website

libattr.so.1 => not found

Tue Dec 31, 2013 7:38 pm

Hi all,

I'm going crazy with this error since a while:

Code: Select all

error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory
I started looking for a solution on the internet but nothing to do, I can not solve my problem.

I think it is because it lacks a library, but I do not know how to solve.

Code: Select all

me@myRpi /lib $ ldd /bin/ls
        /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f14000)
        libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0xb6ee4000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6ed5000)
        libacl.so.1 => /lib/arm-linux-gnueabihf/libacl.so.1 (0xb6ec6000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6e9e000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d6f000)
        /lib/ld-linux-armhf.so.3 (0xb6f20000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6d64000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6d45000)
        libattr.so.1 => not found
I would appreciate any help, thanks !
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi

User avatar
DougieLawson
Posts: 29692
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: libattr.so.1 => not found

Tue Dec 31, 2013 8:14 pm

sudo apt-get install libattr1
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Yacine
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
Contact: Website

Re: libattr.so.1 => not found

Tue Dec 31, 2013 9:44 pm

Thanks for your answer, but it doesn't work. Here is what I get:

Code: Select all

Setting up install-info (4.13a.dfsg.1-10) ...
cp: error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory
dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi

Yacine
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
Contact: Website

Re: libattr.so.1 => not found

Thu Jan 02, 2014 1:00 am

In fact I can't upgrade neither install any new package, because the command cp seems to use tje libattr.so library.

Any idea on how solving this ? Thanks a lot!
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi

User avatar
DougieLawson
Posts: 29692
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: libattr.so.1 => not found

Thu Jan 02, 2014 1:19 am

You'll need to find a way of getting a good copy of libattr.so.1
Or you're going to have to rebuild your SDCard (or recover it from that backup you took last week ... oh you didn't back it up).

If you get a USB SDCard reader you can have two SDCards mounted on one RPi. Build a new copy of Rasbian on a new card.
Boot the RPi from the new card.
Mount the broken Raspbian installation in the card reader.

You then have two choices
1. Copy config stuff from the broken Raspbian to the new install (so you don't have to reconfigure everything), you will need to re-install all of those software packages (it's a right pain in the tail, but do-able).
2. Copy cp -R /lib/* to the broken Raspbian, copy cp -R /usr/* to the broken Raspbian. You can probably get away without copying /bin or /sbin, but you may want to add those two. Shouldn't need /var or /opt

When my 32GB SDCard was about to expire I chose option 1. It involved copying /etc, /root and /home to the newly built card then working through what software packages I needed to re-install and what packages I could forget (things I'd only installed for experiments). I've since moved /home stuff to my NAS box (2TB HD) and have that on an NFS share (so it won't go missing again).

Option 2, if it works is a better rescue and will have a lower impact. If you go that way then the first things to do once you're back running are
1. Take a backup
2. sudo apt-get update, sudo apt-get dist-upgrade, rpi-upate & reboot
3. Take another backup
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Yacine
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
Contact: Website

Re: libattr.so.1 => not found

Thu Jan 02, 2014 1:50 am

Ok thanks !
I think i'll go with the option 1. Because all I need is my blog's files (I use the Rpi as web server for my blog, and yeah :cry: I didn't back it up).

Is it possible to access to those files easily, wich are in /var/www/ ?

Thanks again for your help :)
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi

User avatar
jojopi
Posts: 2993
Joined: Tue Oct 11, 2011 8:38 pm

Re: libattr.so.1 => not found

Thu Jan 02, 2014 2:19 am

Yacine wrote:In fact I can't upgrade neither install any new package, because the command cp seems to use tje libattr.so library.
The missing libattr.so.1 will not stop you installing libattr1 itself. It is merely blocking the completion of package install-info, which you already have in half-configured state. If these are your only problems, you can do:

Code: Select all

sudo apt-get purge install-info
sudo apt-get install --reinstall libattr1
sudo apt-get install info
(There may be a better way to get apt/dpkg to defer configuration of install-info until after libattr1 is reinstalled, but I can not find it.)

Yacine
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
Contact: Website

Re: libattr.so.1 => not found

Thu Jan 02, 2014 11:33 am

\o/ YEAH !!!

Thanks jojopi, it now works correclty :)
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi

Return to “Troubleshooting”

Who is online

Users browsing this forum: pnaven03 and 41 guests