You are not logged in.

#1 2012-01-21 18:20:25

Radikll
Member
Registered: 2012-01-21
Posts: 2

pacman locked but /var/lib/pacman/db.lck doesn't exist.

[root@mcE-102 ~]# pacman -U bukkit-0.3-2-any.pkg.tar.xz
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
[root@mcE-102 ~]# ls -al /var/lib/pacman/
total 20
drwxr-xr-x   4 root root 4096 Jan 16 21:53 .
drwxr-xr-x  13 root root 4096 Jan 16 21:46 ..
drwxr-xr-x 212 root root 8192 Jan 16 21:48 local
drwxr-xr-x   2 root root 4096 Jan 16 21:44 sync
[root@mcE-102 ~]# rm /var/lib/pacman/db.lck
rm: cannot remove `/var/lib/pacman/db.lck': No such file or directory
[root@mcE-102 ~]#

Am I doing something wrong here? I don't understand this error... I've even tried restarting the machine (normally my last resort).

I can't install anything using pacman or yaourt.

[root@mcE-102 ~]# yaourt -Ss bukkit
curl error: Couldn't resolve host name

[Solution]

[root@mcE-102 ~]# dhcpcd 
dhcpcd[865]: version 5.2.12 starting
cat: write error: No space left on device
dhcpcd[865]: eth0: broadcasting for a lease
dhcpcd[865]: eth0: offered 192.168.1.56 from 192.168.1.1
dhcpcd[865]: eth0: acknowledged 192.168.1.56 from 192.168.1.1
dhcpcd[865]: eth0: leased 192.168.1.56 for 86400 seconds
dhcpcd[865]: eth0: open: No space left on device
dhcpcd[865]: write_lease: No space left on device
cat: write error: No space left on device
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname: line 9: hostname: command not found
dhcpcd[865]: forked to background, child pid 887
[root@mcE-102 ~]# ping google.com
ping: unknown host google.com
[root@mcE-102 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           55G   53G     0 100% /
udev             10M     0   10M   0% /dev
/run             10M  164K  9.9M   2% /run
/dev/sda3        55G   53G     0 100% /
shm            1009M     0 1009M   0% /dev/shm
tmpfs          1009M     0 1009M   0% /tmp
/dev/sda1       236M   22M  202M  10% /boot
[root@mcE-102 ~]#

No space left on device... I'm using nilfs and there are an crazy number of checkpoints. I'm switching my root fs to something stable and more useful than nilfs...

Last edited by Radikll (2012-01-21 18:38:16)

Offline

#2 2012-01-26 01:35:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman locked but /var/lib/pacman/db.lck doesn't exist.

Please mark the thread as solved.

Offline

Board footer

Powered by FluxBB