You are not logged in.

#1 2009-02-08 01:25:43

kaola_linux
Member
From: Bacolod City/Philippines
Registered: 2008-09-23
Posts: 513

Pacman and libarchive error[SOLVED]

Hi, I was having problems with my netbook...All of a sudden, pacman doesn't work anymore...I can't install or update...It's unusable..
Here's what I get when I do something with pacman:

pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory

From what I've read on similar posts, it was said to use .static so I've tried it but unfortunately it did not work as well:

#pacman.static -S libarchive
bash: pacman.static

Any ideas? Thanks in advance

Last edited by kaola_linux (2009-02-08 02:08:00)


Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"

Offline

#2 2009-02-08 01:30:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Pacman and libarchive error[SOLVED]

It looks like you have a slightly older version of either libarchive or pacman installed on your system. The current so is at 2.6.1. Anyway, download a copy of libarchive from some mirror and force install it. By force install I mean to manually decompress the package, and install it into the directories that it's supposed to go in. Immediately afterwards reinstall libarchive through pacman with the -f switch, then run pacman -Suy.

Offline

#3 2009-02-08 01:51:14

kaola_linux
Member
From: Bacolod City/Philippines
Registered: 2008-09-23
Posts: 513

Re: Pacman and libarchive error[SOLVED]

I have the latest package on my cache...How do I install it? It still gives me error when I do

#pacman -Uf /path/to/libarchive

Ok, so I haven't get what you've said...:) I went to the directory of my cache and looked for libarchive, afterwards I extracted it...Now i have a folder created "usr" with the ff. folders:

bin
include
lib
share

What will I do with them?:/

Last edited by kaola_linux (2009-02-08 02:00:15)


Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"

Offline

#4 2009-02-08 01:59:45

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Pacman and libarchive error[SOLVED]

Copy the package to somewhere that you have write permissions. Unpack the archive. You can use:

bsdtar -x -f <package_name>

Copy the usr folder of the extracted archive over /usr in the file system as root:

mv usr /usr

Reinstall libarchive with pacman, using the -f switch if necessary. The run pacman -Suy.

Offline

#5 2009-02-08 02:07:35

kaola_linux
Member
From: Bacolod City/Philippines
Registered: 2008-09-23
Posts: 513

Re: Pacman and libarchive error[SOLVED]

Wow!:D That was fairly simple...thanks alot skottish...:)


Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"

Offline

#6 2009-02-08 02:08:24

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Pacman and libarchive error[SOLVED]

You're welcome. Just make sure that you reinstall libarchive then update your system after. This is a very important step.

Offline

Board footer

Powered by FluxBB