You are not logged in.

#1 2008-01-26 08:26:21

piotr
Member
Registered: 2008-01-26
Posts: 58

pacman crushed

Hi,
Im new to Arch Linux. It is the best distro so far, but Im still trying to learn it. Then recently I got this problem with pacman. It does not work. Any time I use "pacman -S . . . " I get this message:

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.

Can someone help me, how to get pacman work again?
Thanks,
piotr.

Offline

#2 2008-01-26 08:30:12

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: pacman crushed

killall pacman; rm /var/lib/pacman/db.lck

Offline

#3 2008-01-26 08:30:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: pacman crushed

You could try following the instructions in the error message...

piotr wrote:

if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck.

Offline

#4 2008-01-26 08:42:40

piotr
Member
Registered: 2008-01-26
Posts: 58

Re: pacman crushed

I tried your suggestion. It does not work. I get this message:

killall pacman
pacman: no process killed
[root@myhost piotr]# rm /var/lib/pacman/db.lck
rm: cannot remove `/var/lib/pacman/db.lck': No such file or directory

Offline

#5 2008-01-26 08:47:48

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: pacman crushed

try this.

pacman --debug -Syy

"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2008-01-26 08:51:12

piotr
Member
Registered: 2008-01-26
Posts: 58

Re: pacman crushed

Hi,
Solved. Yes. I tried pacman -Syy and it started to work. Thanks a lot cactus. I really appreciate this help.
Piotr

Offline

Board footer

Powered by FluxBB