You are not logged in.

#1 2011-02-04 20:30:26

manouchk
Member
Registered: 2008-07-29
Posts: 306

pacman cage writing problem

Hi,

I cannot use pacman anymore because of pacman-cage. I cannot write anymore in /var/lib/pacman/

LANG=US sudo pacman -Suy
:: Synchronizing package databases...
error: failed to init transaction (unable to lock database)
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

I ceck that lock file /var/lib/pacman/db.lck is not present. The problem is something else.

I tried to create a file on the loop file (in directory /var/lib/pacman/) and it tells me that there is no space:

Error writing test: No space left on device

but df -h gives me an occupation of only 43%:

/dev/loop0            146M   62M   84M  43% /var/lib/pacman

I don't understand the problem!! Can you help me on that?

I have to mention that I run pacman-optimize few time before the appearence of the problem. May it be the reason of this problem? Can that be solved?

Last edited by manouchk (2011-02-06 12:58:59)

Offline

#2 2011-02-05 14:38:56

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pacman cage writing problem

I tried this:
I umounted the loop file sudo umount /var/lib/pacman
mount again:
mount -o loop,rw /var/lib/pacman.db /var/lib/pacman

I cannot creata a text file. It also says no space left on device.

So I desactivated pacman-cag like that:
I copied /var/lib/pacman in /var/lib/pacman-tmp
rmdir /var/lib/pacman
mv /var/lib/pacman-tmp /var/lib/pacman

It seem to work right now, without using pacman-cage. It will be slower!

Offline

#3 2011-02-06 13:01:50

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pacman cage writing problem

Well, I did try to uncage manually. It works fine till reboot. Now my pacman database has been totally lost as if no packages has been installed on my system!

I desactivated pacmandb deamons but it looks like it was not sufficient and the loop file was created. I really missed something about the internals of pacman-cage. I though that the loop was mounted by pacmandb deamons. Aparently this is not the case!!

Offline

#4 2011-02-06 13:14:19

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pacman cage writing problem

After simply unmounting the loop file, It lokks like I got back everything.

I did save the package list (pacman -Qqe > package_list) as a security in case of problem at next boot time!

Offline

Board footer

Powered by FluxBB