/var/lib/pacman crashed

Hi,
yesterday my filesystem crashed. /var has its own partition. This particulaur
partition crashed. fsck left me with a corrupted /var/lib/pacman. Some
entries are deleted. Installing new packages or making new packages fails
due to some not fullfilled dependencies. In fact this packages are installed.
Now, whenever a dependency is missed I can easily make pacman -Sf package.
This helps, but I like to have an repaired database. Any idea/hack is welcome!
Thanks neri

Hi,
apeiro wrote:
This has happened to a couple other people.  I've always recommended a cronjob that tars up your /var/lib/pacman/local once a night.
Would you guys want this set up on a default install, or is this better left to the administrator of the system?
Ok, I got to get myself together. Such a bottle of chianto classico is
recomended on casual times. It leaves you with a pleasant loss of gravity.
Regarding your question. I use this particular box as my desktop and boot it
every day. I did a pacman -Syu at this time booting it. You mentioned other
people also had a crashed file system. Maybe it is something in pacman,
maybe something in the tools used by pacman (tar etc.) Is it possible to
contact other with the same problem? If it occurs more often it should be
investigated.
Xentacs post (thanks for that) made me thinking. Maybe it's possible to
write a shellscript, which uses pacman, the untared package db and the
find command to restore the local db. It is for experiencend users 'cause
there is no chance to handle manually installed files (such as nvidia driver
install script) automatically.
Should we have a cron job by default? Why not, it doesn't hurt. Loosing
your local db does hurt. I experienced that. At least, it is _very_ annoying.
I will think about the shellscript when I'm back to 9.81m/s*s. That's for
now. Time to go to bed. See ya tomorrow.
bye neri
ps. apeiro, I'm not offending mentioning pacman as possible source. The
chance that it is related to the problem is very little. Maybe it is something
else. For example, it happened on a true SMP box. Could there be race
conditions in tar? I don't know. If there are probs they are gonna be really
hard to track down. We just shouldn't exclude until we really know. Just
let's keep an eye open.

Similar Messages

  • [SOLVED] error: could not open file /var/lib/pacman/local/qt-4.5.2-4/

    Hi all,
    So there I was, running pacman -Syu on all my Arch machines, and I get to my desktop PC at work, and half way through X decides to crash and kick me back to the CLI. Fair enough
    Now when I try and use pacman, I get a whole bunch of errors about a missing 'depends' directory:
    root ~ # pacman -S amarok
    resolving dependencies...
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    looking for inter-conflicts...
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    It still asks me to continue with installing the new package, but I'd rather get this fixed first in case it buggers it up worse
    Last edited by fukawi2 (2009-07-30 05:44:25)

    Once again my saviour Allan -- I had to -Sf it due to file already existing, but seems to be good now

  • Recovering from 'rm -rf /var/lib/pacman'?

    Well, even after a pacman -Sy clamav still didn't want to update to the newest version that archlinux.org listed. So I deleted /var/lib/pacman and started afresh.
    Guess that was a really bad idea. Now pacman thinks my system is completely empty, when in fact it has gstreamer, amarok, kde, xorg-x11, iptraf and a whole lot of really cool things that I spent the better half of a year configuring and making to work.
    So, how can I get it back? I have /var/log/pacman.log, if that helps. I saw a post on the forum that says I have to use grep "(*)" and then somehow give it back to pacman by |xargs pacman -S, however, it complains about some packages missing from sync db, such as gstreamer and devfsd (which was gone a long time ago). So what can I do in this case?

    Create a file with the package list from your log, edit out anything that doesn't work e.g. devfsd, and then pipe it into pacman.

  • Lost /var/lib/pacman

    Hey guys!
    I've lost my /var/lib/pacman directory. (No! I did not delete it!)
    Is there any chance of getting it back? [..]/current and [..]/extra is not hard, but is there any chance to get [..]/local back?
    Regards,
    Moritz

    Some time ago it happened to me also, I do not know why.
    Probably in /var/cache/pacman/pkg you should have the last pacman you installed, unless you cleaned the cache.
    In reality pacman package are tar.gz of the installation tree
    So copy the file in a directory and decompress it then copy the files in the relative directory.
    If you feel enought confident you can uncompress it directly from root, but I DO NOT suggest it.
    If you do not have the package in the cache you can download it from
    http://darkstar.ist.utl.pt/archlinux/cu … pkg.tar.gz
    Post again if you need more assistance

  • Create Package from /var/lib/pacman/local[SOLVED]

    I am trying to get an old version of google earth bcz the 5.2 in aur doesn't start for me.  I have it installed on another system but there is not package in /var/cache/pacman/pkg.  Is it possible for me to create a package based on the info written by pacman in /var/lib/pacman/loca/google-earth-x.xx.?
    Last edited by empthollow (2010-07-19 04:02:19)

    You need a PKGBUILD.
    Edit:
    Who would have thought that AUR packages write to /var/lib/pacman/local ? ;P
    I stand corrected: you don't necessarily need a PKGBUILD, you can use bacman.
    you can download the previous Google Earth binary from this link
    http://dl.google.com/earth/client/advan … hLinux.bin
    Last edited by karol (2010-07-19 03:59:29)

  • [Solved] /var/lib/pacman wrap defined in /etc/fstab

    How come is it that the ext2 wrap of /var/lib/pacman won't work?
    See here:
    1.
    /var/lib/pacman.db /var/lib/pacman ext2 loop,defaults 0 0
    [det@myhost ~]$ sudo mount -a
    mount: wrong fs type, bad option, bad superblock on /dev/loop1,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    [det@myhost ~]$
    2.
    #/var/lib/pacman.db /var/lib/pacman ext2 loop,defaults 0 0
    [det@myhost ~]$ sudo mount -a
    [det@myhost ~]$
    E: dmesg | tail:
    [det@myhost ~]$ dmesg | tail
    VFS: Can't find an ext2 filesystem on dev loop1.
    [det@myhost ~]$
    Last edited by algorythm (2009-09-30 12:35:04)

    Uh.. actually running the pacman cage shell script fixed this.. ^^
    D'oh my brains had probably gone to school.
    Last edited by algorythm (2009-09-18 21:57:48)

  • Accidentally RM'd contents of /var/lib/pacman/local/

    I have been working on setting up a new workstation for myself, and getting it to be consistent with the old workstation that I had (with the exception of encrypting all of / this time rather than just encrypting /home).  Have been working on this for some time now and due to many frustrations (hardware related), lack of sleep and too many terminal sessions I ended up running an RM command inside /var/lib/pacman/local, removing all contents.
    I need to find a way to rebuild this if at all possible.  I'm thinking parsing out the package names from the pacman.log and then running reinstall for all things, however that is not really an ideal/clean solution.  Is there a better one that someone can point me to?  I found this: https://bbs.archlinux.org/viewtopic.php?pid=670876 however that seems to provide a list, without explaining further steps and I believe that I can get a list out of pacman.log which should be 100% accurate ... something like: yaourt -S `cat /var/log/pacman.log | grep "\[PACMAN\] installed" | awk '{print $5}' | sort | tr '\n' ' '`
    Open to suggestions on this.  I really do not want to have to start over ... again
    Thanks
    B

    ...or you can post the solution that worked for you so other users who may happen across it and can learn from it.
    https://wiki.archlinux.org/index.php/Fo … way_Street
    Last edited by graysky (2013-10-15 20:26:26)

  • Error: could not open the file /var/lib/pacman/sync/.....

    Heya Arch Forums,
    So it's my first time installing and I've made it to the point were I'm ready to install X11.
    When I run "pacman -S xorg-server xorg-xinit xorg-server-utils" my console returns the following errors:
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format 
    error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community-testing.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format
    These errors repeat again followed by:
    error: target not found: xorg-twm
    I'm in Canada, so I've only set my mirror list to use "Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch"
    Also, in my /etc/pacman.conf all SigLevel's are = Never.
    Thanks for any replies.

    skunktrader wrote:Did you run pacman -Syu before attempting to install new packages?
    Thanks for the quick reply
    Yes, however pacman -Syu as well as pacman -Syyu return the same errors.

  • File System Corrupted - Now /var/lib/pacman messed up

    My root partition managed to get corrupted, fsck fixed things for the most part. The main long lasting problem seems to be in /var/lib/pacman. A bunch of the files from extra and a few from community are now missing. When I tried to do a pacman -Syu it updated a few things but also gave a long list of errors since it couldn't find the desc files:
    error: could not open file /var/lib/pacman/extra//a2ps-4.13c-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//aalib-1.4rc5-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abcde-2.3.3-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abcm2ps-4.12.30-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abiword-2.4.6-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abiword-plugins-2.4.6-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abook-0.5.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//abuse-0.7.0-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acct-6.3.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//achessclock-0.9.2b-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acidrip-0.14-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acpi-0.09-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acpid-1.0.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acroread-8.1.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//adns-1.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//adzapper-20070317-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//afterstep-2.2.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//agg-2.5-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//aide-0.13.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//aiksaurus-1.2.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//akode-2.0.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alacarte-0.11.3-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//allegro-4.2.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alltray-0.69-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsa-lib-1.0.14-5/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsa-oss-1.0.14-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsa-utils-1.0.14-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsaplayer-0.99.79-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//amarok-base-1.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//amarok-engine-xine-1.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//amule-2.1.3-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//anjuta-2.2.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//anthy-9100-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//antiword-0.37-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//antlr-2.7.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//apache-2.2.6-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//apache-ant-1.7.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bmp-wma-0.1.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bmpx-0.40.13-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bochs-2.3.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bogofilter-1.1.5-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bomberclone-0.11.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bonnie++-1.03a-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//boost-1.34.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bootchart-0.9-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//brltty-3.7.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bs-2.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bug-buddy-2.20.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bumprace-1.5.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bungmeter-2.0.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bzflag-2.0.8-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//bzr-0.90-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//c-ares-1.4.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cabextract-1.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cairo-1.4.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cairo-perl-1.041-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cairomm-1.4.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//came-1.9-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//camsource-0.7.0-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//capi4hylafax-010300-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//castle-combat-0.7.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//catdoc-0.94.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ccache-2.4-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ccaudio-1.2.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cccp-0.9-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ccmalloc-0.4.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ccrtp-1.5.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ccscript3-1.1.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdargs-1.33-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdcd-0.6.6-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cddb_get-2.27-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdrdao-1.2.2-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdrkit-1.1.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdtool-2.1.8-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdw-0.2.4-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cgoban2-2.6.12-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//checkpassword-0.90-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//chemtool-1.6.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//chkrootkit-0.47-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//chmlib-0.39-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cinepaint-0.22.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//circuslinux-1.0.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cl-ppcre-1.3.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cl-ppmx-1.0.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cl-sdraw-1.0.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//clamav-0.91.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//clanlib-0.8.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//claws-mail-3.0.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//claws-mail-extra-plugins-3.0.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//clisp-2.41-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cln-1.1.13-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//clustalw-1.83-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//clusterit-2.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cmake-2.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cmatrix-1.2a-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cmt-1.15-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cmucl-19d-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cmus-2.2.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//codecs-20061022-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cogito-0.18.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//colortail-0.3.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//commoncpp2-1.5.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//compface-1.5.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//compositeproto-0.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//conky-1.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//connmon-0.13.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//convmv-1.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//corewars-0.9.13-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//courier-authlib-0.59.3-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//courier-imap-4.1.3-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//courier-maildrop-2.0.4-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//courier-mta-0.55.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cowsay-3.03-5/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cplay-1.49-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cpudyn-1.0.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cpufreqd-2.2.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cpufrequtils-002-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//crimson-0.5.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//crypto++-5.5.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cscope-15.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cssed-0.4.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//csup-20060318-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ctags-5.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//culmus-0.101-7/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cups-1.3.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cups-pdf-2.4.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//curl-7.17.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvs-1.11.22-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvsfs-1.1.9-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvsps-2.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvsup-16.1h-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cyrus-sasl-plugins-2.1.22-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//d4x-2.5.7.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//dailystrips-1.0.28-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//damageproto-1.1.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//dvgrab-2.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//easysock-0.3.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//easytag-2.1.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eboard-1.0.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ecasound-2.4.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ecl-0.9i-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eclipse-3.2.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eclipse-cdt-3.1.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eclipse-ecj-3.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ed2k-gtk-gui-0.6.4-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//edb-1.0.5-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eel-2.20.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//efax-0.9-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eject-2.1.5-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ekiga-2.0.11-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//elinks-0.11.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emacs-22.1-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emboss-3.0.0-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emelfm2-0.3.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emerald-0.2.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emerald-themes-0.2.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//emovix-0.9.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//enblend-3.0-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//enchant-1.3.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//enigma-1.04-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//enlightenment-0.16.8.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//enscript-1.6.4-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eog-2.20.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//epdfview-0.1.6-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//epic4-2.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//epiphany-2.20.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//epiphany-extensions-2.20.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//epplet-base-0.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eric-3.9.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//erlang-R11B.5-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//esd-0.2.38-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eterm-0.9.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//etherape-0.9.7-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ethstatus-0.4.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ethtool-6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//ettercap-NG_0.7.3-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eventlog-0.2.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evieext-1.0.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evilwm-1.0.0-1.1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evince-2.20.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evms-2.5.5-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evolution-2.12.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evolution-data-server-1.12.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evolution-exchange-2.12.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evolution-sharp-0.14.0.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//exim-4.68-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//exiv2-0.14-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//exo-0.3.2-5/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//expat-2.0.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//vips-7.12.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//wipe-2.2.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//guichan-0.7.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//guifications-2.14-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//gutenpy-0.3.0-5/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//gwenhywfar-2.6.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//gwget-0.99-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hacburn-0.3.5-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hal-cups-utils-0.6.13-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//happs-0.8.4-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hardinfo-0.4.2.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hardware-monitor-1.4-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hashcash-1.22-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//haskell-binary-0.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//haskell-x11-1.2.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//haskell-x11-extras-0.4-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hatari-0.95-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//haxml-1.13.2-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hddtemp-0.3.beta15.36-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hearse-1.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hedgewars-0.9.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//helixplayer-1.0.8-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hevea-1.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hex-a-hop-20070705-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hexter-0.6.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hgsvn-0.1.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//hlist-darcs-20070629-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//homebank-3.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//klogwatch-2.0.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//ltris-1.0.11-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//man2texi-0.01-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//moinmoin-1.5.8-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//moreutils-svn-81-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//mpdcon-1.1.99-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//nautilus-actions-1.4.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//openthreads-1.5-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-crypt-cbc-2.22-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-text-charwidth-0.04-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-text-markdown-1.0.3-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-universal-can-1.12-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-universal-require-0.11-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-www-mechanize-1.30-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//perl-www-sms-0.09-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//ruby-gtksourceview-0.16.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//smplayer-0.5.21-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//sofia-sip-1.12.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//texlive-formatsextra-doc-2007.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//texlive-games-doc-2007.1-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//weechat-cvs-20070805-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//xfce4-xkb-plugin-svn-3163-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//xfmedia-svn-26105-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/community//xfwm4-svn-26127-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//aalib-1.4rc5-4/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//acpid-1.0.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//agg-2.5-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alltray-0.69-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsa-lib-1.0.14-5/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//alsa-utils-1.0.14-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//amarok-base-1.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//amarok-engine-xine-1.4.7-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cabextract-1.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cairo-1.4.10-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cairo-perl-1.041-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdrdao-1.2.2-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cdrkit-1.1.6-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//chmlib-0.39-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//codecs-20061022-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//compositeproto-0.4-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cpudyn-1.0.1-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cpufrequtils-002-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cups-1.3.3-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//curl-7.17.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvs-1.11.22-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cvsup-16.1h-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//cyrus-sasl-plugins-2.1.22-6/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//damageproto-1.1.0-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//eject-2.1.5-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//esd-0.2.38-3/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//evieext-1.0.2-1/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//exiv2-0.14-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/extra//expat-2.0.1-1/desc: No such file or directory
    As a test I tried doing a pacman -S to reinstall one of those packages, and it gave the same error as well as complaining about the missing depends file. After I told it to install the already up to date package pacman kept saying that the package was corrupted. Any way to fix this short of doing a reinstall?

    These files have to do with the pacman database of all packages, not of installed packages (which are in /var/lib/pacman/local). I would suggest trying 'pacman -Syy' to clean that up, and if you still have the same sorts of errors afterwards that would suggest quite annoying disk corruption.

  • Files in /var/lib/pacman/local newer than in extra? [solved]

    Earlier today tried pacman -Syu and got the following message:
    bash-3.00# pacman -Syu
    :: Synchronizing package databases...
    :: testing is up to date
    :: current is up to date
    :: extra is up to date
    :: unstable is up to date
    :: community is up to date
    :: a52dec: local (0.7.4-3) appears to be newer than repo (extra/0.7.4-2)
    :: arts: local (1.4.2-4) appears to be newer than repo (extra/1.4.1-1)
    :: dbus: local (0.50-2) appears to be newer than repo (extra/0.34-1)
    :: eject: local (2.1.2-2) appears to be newer than repo (extra/2.0.13-1)
    :: faac: local (1.24-2) appears to be newer than repo (extra/1.24-1)
    :: ffmpeg: local (20050806-1) appears to be newer than repo (extra/0.4.9.pre1-1)
    :: gnokii: local (0.6.7-2) appears to be newer than repo (extra/0.6.7-1)
    :: gpgme: local (1.0.3-2) appears to be newer than repo (extra/1.0.3-1)
    :: gst-plugins: local (0.8.11-1) appears to be newer than repo (extra/0.8.10-1)
    :: gstreamer: local (0.8.11-1) appears to be newer than repo (extra/0.8.10-1)
    :: gwenview: local (1.3.0-2) appears to be newer than repo (extra/1.2.0-1)
    :: hal: local (0.5.4-1) appears to be newer than repo (extra/0.5.3-1)
    :: jack-audio-connection-kit: local (0.100.0-3) appears to be newer than repo (extra/0.100.0-1)
    :: jasper: local (1.701.0-3) appears to be newer than repo (extra/1.701.0-2)
    :: k3b: local (0.12.4a-1) appears to be newer than repo (extra/0.12.2-1)
    :: kde-common: local (3.4.2-6) appears to be newer than repo (extra/3.4.1-1)
    :: kdeaccessibility: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeaddons: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdeadmin: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeartwork: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdebase: local (3.4.2-5) appears to be newer than repo (extra/3.4.1-4)
    :: kdebindings: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeedu: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdegames: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdegraphics: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdelibs: local (3.4.2-5) appears to be newer than repo (extra/3.4.1-2)
    :: kdemultimedia: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdenetwork: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-2)
    :: kdepim: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdesdk: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdetoys: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeutils: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: libgphoto2: local (2.1.6-2) appears to be newer than repo (extra/2.1.6-1)
    :: libidn: local (0.5.17-2) appears to be newer than repo (extra/0.5.17-1)
    :: libieee1284: local (0.2.10-2) appears to be newer than repo (extra/0.2.10-1)
    :: libmal: local (0.40-2) appears to be newer than repo (extra/0.40-1)
    :: libmpcdec: local (1.2-2) appears to be newer than repo (extra/1.2-1)
    :: libraw1394: local (1.1.0-2) appears to be newer than repo (extra/1.1.0-1)
    :: libsamplerate: local (0.1.2-2) appears to be newer than repo (extra/0.1.2-1)
    :: musicbrainz: local (2.1.1-3) appears to be newer than repo (extra/2.1.1-2)
    :: net-snmp: local (5.2.1-3) appears to be newer than repo (extra/5.2.1-2)
    :: openexr: local (1.2.2-4) appears to be newer than repo (extra/1.2.2-1)
    :: openslp: local (1.2.0-2) appears to be newer than repo (extra/1.2.0-1)
    :: pilot-link: local (0.11.8-4) appears to be newer than repo (extra/0.11.8-3)
    :: pth: local (2.0.3-2) appears to be newer than repo (extra/2.0.3-1)
    :: qscintilla: local (1.6-1) appears to be newer than repo (extra/1.5.1-1)
    :: qt: local (3.3.5-1) appears to be newer than repo (extra/3.3.4-8)
    :: sane: local (1.0.16-2) appears to be newer than repo (extra/1.0.15-5)
    :: speex: local (1.1.10-3) appears to be newer than repo (extra/1.1.10-1)
    :: t1lib: local (5.1.0-1) appears to be newer than repo (extra/5.0.2-1)
    :: taglib: local (1.4-2) appears to be newer than repo (extra/1.3.1-2)
    :: tunepimp: local (0.3.0-5) appears to be newer than repo (extra/0.3.0-4)
    :: Above packages will be skipped.  To manually upgrade use 'pacman -S <pkg>'
    How did this happen and what can I do to fix it. I mean, obviously all the files shown in local were downloaded using pacman, so how can the local version be greater than the individual versions found in current, extra, testing, unstable or community?!!
    Thanks,
    Gary :x
    Figured this out. Apparently the first mirror listed in the /etc/pacman.d extra file is out of sync. Commented out the first two. Ftp.arch is working fine. Updated the extra db and found two apps needed updating. No more errors, since the /var/lib/pacman/extra directory was completely updated. Will try the original mirror in a few days. 

    Yep, loads of files were updated earlier today, so the mirrors were mostly out of sync for a while.  Look here for more info:
    http://bbs.archlinux.org/viewtopic.php?t=15505

  • Tar'ing up /var/lib/pacman...

    I'm using a script somewhat modified I saw here on the forum to help clean up the system;
    #!/bin/bash
    # Run this daily after an update (pacman -Syyu),
    #tar -cjf /store/bak/pacman-database.tar.bz2 /var/lib/pacman/local
    #pacman -Rscn $(pacman -Qtdq)
    pacman -Sc
    pacman -Scc #(only run to clean out all of /var/cache/pacman/pkg)
    pacman-optimize && sync
    updatedb
    exit 0
    I commented out the first tar line since I don't have a database tared up and also the second line because it will show this message when run; error: no targets specified (use -h for help)
    I really don't think I need these lines...
    So for the rest when it's done running I get this messages in it; (The second line is what I'm wondering about, what is it taring up and where? I don't see anything that was tared..)
    Database directory cleaned up
    ==> MD5sum'ing the old database...
    ==> Tar'ing up /var/lib/pacman...
    ==> Making and MD5sum'ing the new database...
    ==> Syncing database to disk...
    ==> Checking integrity...
    ==> Rotating database into place...
    THANKS

    ngoonee wrote:
    You're not even trying to help yourself, karol has given you more than enough help. The lines come from pacman-optimize, so look at that.
    Moving to Newbie Corner since it'd just clutter on Pacman & Package Upgrade Issues.
    Well I'm sorry I am trying and I'm not getting it...
    There is no pacman-optimize in man pacman and there is no man pacman-optimize and I don't see any info surfing Google...
    Where can I read info on what pacman-optimize is doing as far as the Tarball is concerned?
    1. How is this command suppose to work?
    tar -cjf /store/bak/pacman-database.tar.bz2 /var/lib/pacman/local
    2. Tar'ing up /var/lib/pacman...  Where is this tar at?
    3. What is this script is this something else I should be adding to the one I already have?
    # remove the lock file and our working directory with sums and tarfile
    rm -f "$lockfile"
    rm -rf "$workdir"
    So what really remains is that script above I'm using do I need to keep the first two lines are they important and if so, for the first one, was this something customized someone made specific to their needs and not just a general Arch command that should simply work on everyone's box?
    THANKS
    Last edited by DasFox (2011-11-21 23:49:23)

  • I lost my /var/lib/pacman/local

    Yes I did. Just when the "stable" version of pacman got the new pacman-optimize script.
    Because optimizing failed with some md5sum error and because I'm a "smart" & "do it my way" tipe of guy, I figured that removing everything under /var/lib/pacman should solve the error :oops:. Guess what, it did, but it also removed my installed packages list.
    After a few searches on the forum, I think it did it for good. Now I am doomed to "reinstall" every little package in order to rebuild that dir. Well not quite every, since dependecy helps a little here.
    I think I have to start with something like "gnome-extras xmms-status-plugin iproute". A few others will follow just as soon as I remeber them.
    If any of you can disagree with the solution, I would be most happy to try anything (almost), since my connection is not particularly fast.
    PS: pacman -Scc was involved so cache is not an option.

    There's a patch for the wrong sums issue. It replaces tar c with tar --same-order -c. It can be found in the bug tracker..
    I would suggest backing up /etc/ and /home/ and reinstall. I think your asking for trouble trying to remember all the packages you installed when you consider dependancies and conflicts.
    Considering how important that directory is, you may want to consider running a simple line as a cronjob every night such as:
    pacman -Q | cut -d' ' -f1 | paste -s | sed 's|s| |g' > filelist
    that will echo all the packages you have installed on your machine and put them into a file in a format where all you have to do is add pacman -Sy --noconfirm and it will reinstall all the packages you had.

  • Defragmentation of /var/lib/pacman/ (reiserfs)

    on my laptop i run arch from 0.4 and since then i have over 1200 packages installed. i used reiserfs and realized now, that it accumulated a certain amount of fragmentation over time and is now accessing /var/lib/pacman/ very slowly (that's why pacman sometimes takes very long do to anything) ... coupled to this, the hdd on this laptop is not the fastest ...
    now i just for fun tried something i didn't believe really that it would help but it helped a lot (pacman is now much faster) - what i did:
    [root@Asteraceae lib]# pwd
    /var/lib
    [root@Asteraceae lib]# cp -r pacman/ pacman_cpy/
    [root@Asteraceae lib]# rm -r pacman
    [root@Asteraceae lib]# mv pacman_cpy/ pacman/
    this defragmented the big collection of small files stored across my hdd to one place and now pacman is much faster

    apeiro wrote:
    Wow, that's a good (and simple!) idea, Damir.
    It might be a good thing to include as a pacman option itself.
    pacman --dbmaint or some such.
    thank you. this really helped me with speed of pacman but i feel it more a workaround (a very effective one!) than the solution. however, as it really solves the problem, i can live with this workaround ;-)
    yet another idea towards the solution i can think of now is to use a tarball to store everything and using a ramdrive while working with these files (extract everything from tarball to ramdrive and mount it @ /var/lib/pacman (at boot) and copy everything back to tarball when something is updated (e.g. pacman is run)). this would keep it simple but minimize the accumulation of a defragmentation to a minimum (on the hdd, the whole db will be a single file that is only used as a mirror to the ramdrive)
    including such a workaround in pacman i don't mind but other people will say that this is not a good solution (one of my colleagues at the uni already laughted at me using such "primitive" methods against defragmentation, but i told him that it worked great and is very effective and i don't mind if it is "primitive" or not as long as it does the job). also there will be others to claim that this is unneccessary as everybody can do a cp -r and then rm and then mv by hand.

  • /var/lib/pacman/local problems

    So don't ask how(cause I really don't know), but I restarted my computer last night after having an uptime of ~5 days.  When it started back up I get a bunch of X-server errors.  I track down the errors and find that some /var/ files are missing.  I 'cd' over to var and see that there isn't a thing in the folder.  So I really don't know how this happened(but obviously my fault), but I was wondering if there was anyway of regenerating the /var/lib/pacman/local files so pacman will recognize which packages are installed already?  or am I in trouble?
    Thanks in advance.

    sykotik wrote:
    So don't ask how(cause I really don't know), but I restarted my computer last night after having an uptime of ~5 days.  When it started back up I get a bunch of X-server errors.  I track down the errors and find that some /var/ files are missing.  I 'cd' over to var and see that there isn't a thing in the folder.  So I really don't know how this happened(but obviously my fault), but I was wondering if there was anyway of regenerating the /var/lib/pacman/local files so pacman will recognize which packages are installed already?  or am I in trouble?
    Thanks in advance.
    I'd just grab an endpoint package - like mplayer... it should make sure to grab X and things like that - just force the installs - if a package fails to install due to existing files, you're on the right track lol

  • /var/lib/pacman/local empty

    Hello all,
    I've been using Arch for a few years, but I obviously haven't learn't anything in the process as I've done a very silly thing.
    I wanted to empty the pacman cache at /var/cache/pacman/pkg, but instead I did 'sudo rm -r /var/lib/pacman/local/*'
    I've now lost network access and running sudo comes up with: 'unknown uid 1000: who are you?'
    After reading about pacman, I now realise how important the file in that folder are
    Is this now game over and I have to reinstall? or does anyone know how I can restore the files in /var/lib/pacman/local?
    Thankyou for reading, Richard

    A wiki search would have returned this page to help you restore your missing db, but as you've just been told, you have other issues to address also.

Maybe you are looking for

  • Why can't I download PDF files, and why does the "spinning beach ball" keep showing up?

    I have a late 2008 iMac, 3.06 GHz Core 2 Duo, 4 GB 800 MHz DDR2 SDRAM, 500 Gig Hardrive, and I'm using OS X 10.6.8.  In addition, there are three external drives - 750 G Maxtor, 1T Maxtor, and 1T LaCie for Time Machine.  There are only 20 Gigs left o

  • Pages '09 to Word doc, maintaining graphics in 'letterhead'.

    I have Pages '09 (version 4.2) and when I place 'letterhead' graphics into the Pages document and then save as a Word doc for clients to use as letterheads (to print as needed), the graphics in the Word doc come out in low res.  I have tried saving t

  • Creating an animated flag (without a Plug-in !)

    Hi all , I previously animated a flag in motion 3 , but have deleted the project file. I know that Zaxwerks do a plug in but it it $120 which is quite pricey as I am only using it for one project. I have done it before but can not remember how I did

  • Ipod Touch Sleep/Wake button not working

    Okay people I've had my 1st generation iPod touch since April of 2008...all of a sudden ( a few months ago) my sleep/wake button just stops working. Then recently it began to work again like for 4 days and then it just S T O P P E D ....A G A I N!!!

  • AppData Files for Adobe over large

    Windows 7 Professional hard drive C is 256 GB - it is a solid state drive. The AppData folder is 101 GB  under "Users/Stephen/AppData/Roaming/Adobe" is 96 GB in the Adobe folder alone. This is excessive. It has used up my hard drive and needs to be c