You are not logged in.

#1 2012-05-26 10:15:46

manifesto
Member
Registered: 2012-01-11
Posts: 4

recovering pacman from power crash

Hi,

I was doing pacman -Syu on my laptop that suddenly crashed (bateery came out of power as I did not plug the electric cable ...).
So now I have some troubles while adding and removing packages :
For exemple I want to reinstall chromium and I have the messages :

(1/1) checking available disk space                                [#####################################] 100%
(1/1) upgrading chromium                                           [#####################################] 100%
ldconfig: File /usr/lib/libkcompactdisc.so is empty, not checked.
ldconfig: File /usr/lib/libevent_extra-2.0.so.5.1.7 is empty, not checked.
ldconfig: File /usr/lib/libevent_openssl-2.0.so.5.1.7 is empty, not checked.
ldconfig: File /usr/lib/libevent_extra.so is empty, not checked.

If I try to find package for this file it is not found :

[root@bootstrap acpi_call]#  pacman -Qo /usr/lib/libevent_pthreads-2.0.so.5
error: No package owns /usr/lib/libevent_pthreads-2.0.so.5

I have googled some infos but with no success (like pacman -Syyf ..)
I think this files are just here because of the crash and I could simply remove them and reinstall chromium but I would like to know :
1 - Is there a way to force pacman to reinstall all that ?
2 - Is there a way to check pacman consistency as I can find out all broken packages ?

Offline

#2 2012-05-26 12:06:57

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: recovering pacman from power crash

If it's only Chromium (or a few other other packages) that show this behaviour, and the files being mentioned don't belong to any other packages; it should be safe to force the install for those specific packages (pacman -Sf <packagename>).

PS: I can't state this enough; do NOT use the -f flag for a full system upgrade. It's bound to break more stuff then it fixes.


Burninate!

Offline

#3 2012-05-26 12:27:42

manifesto
Member
Registered: 2012-01-11
Posts: 4

Re: recovering pacman from power crash

Hi,

Thanks for the answer.
ACtually it looks worst that I was thinking.
A bunch of library files are now 0 size ...
It seems I cant install anything now.

-rwxr-xr-x  1 root root        0 May 24 14:09 libaudiocdplugins.so.4.8.0
-rwxr-xr-x  1 root root        0 May 13 15:44 libcryptsetup.so.4.1.0
-r-xr-xr-x  1 root root        0 May 25 18:22 libcups.so.2
-r-xr-xr-x  1 root root        0 May 25 18:22 libcupscgi.so.1
-r-xr-xr-x  1 root root        0 May 25 18:22 libcupsdriver.so.1
-r-xr-xr-x  1 root root        0 May 25 18:22 libcupsimage.so.2
-r-xr-xr-x  1 root root        0 May 25 18:22 libcupsmime.so.1
-r-xr-xr-x  1 root root        0 May 25 18:22 libcupsppdc.so.1
-rwxr-xr-x  1 root root        0 May 22 00:22 libevent-2.0.so.5.1.7
-rw-r--r--  1 root root        0 May 22 00:22 libevent.a
-rwxr-xr-x  1 root root        0 May 22 00:22 libevent_core-2.0.so.5.1.7
-rw-r--r--  1 root root        0 May 22 00:22 libevent_core.a
-rwxr-xr-x  1 root root        0 May 22 00:22 libevent_extra-2.0.so.5.1.7
-rw-r--r--  1 root root        0 May 22 00:22 libevent_extra.a
-rwxr-xr-x  1 root root        0 May 22 00:22 libevent_openssl-2.0.so.5.1.7
-rw-r--r--  1 root root        0 May 22 00:22 libevent_openssl.a
-rwxr-xr-x  1 root root        0 May 22 00:22 libevent_pthreads-2.0.so.5.1.7
-rw-r--r--  1 root root        0 May 22 00:22 libevent_pthreads.a
-rwxr-xr-x  1 root root        0 May 24 14:09 libkcddb.so.4.8.0
-rwxr-xr-x  1 root root        0 May 24 14:09 libkcompactdisc.so.4.8.0
-rwxr-xr-x  1 root root        0 May 24 14:09 libkdeinit4_kmix.so
-rwxr-xr-x  1 root root        0 May 24 14:09 libkdeinit4_kmixctrl.so

I check empty files as well :

[root@bootstrap lib]# find / -xdev  -type f -size 0  -ls | wc -l   
5609

Any way to run a package check with pacman or from which package this files belongs to (when not installed).

Offline

#4 2012-05-26 12:39:41

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: recovering pacman from power crash

You could try wiki tip


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#5 2012-05-26 16:02:32

manifesto
Member
Registered: 2012-01-11
Posts: 4

Re: recovering pacman from power crash

I got some troubles running pkgfile ...

Traceback (most recent call last):
  File "/usr/bin/pkgfile", line 30, in <module>
    import urllib.request, urllib.error, urllib.parse
ImportError: No module named urllib.request

As this is my laptop and I got others distro availables I dont worry to break more this Arch.
So I tried this :
1 - Remove all empty plain files

for file in $(find . -xdev -size 0  -type f ) ; do  
echo $file >> deadfiles
rm $file ; 
done

2 - Reinstall packages with pacman -Sf

It look likes it worked fine.
Let's check after a reboot.

But  I am suprised that there are no check options in pacman, it looks like no chksum on file are maintained.

Last edited by manifesto (2012-05-26 16:03:51)

Offline

Board footer

Powered by FluxBB