Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2010, 10:20 PM   #1
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Rep: Reputation: 1
Pacman locked up?

I just got an 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

When I write the command:
pacman -R /var/lib/pacman/db.lck

The same error returns.

If anyone can help me with this I would appreciate it. I can't install any packages until I resolve this issue.

Old 10-20-2010, 05:55 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,820

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
are you running it as root?

is another package manager running?
Old 10-20-2010, 06:03 AM   #3
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
just do rm -r /var/lib/pacman/db.lck
then it'll work
Old 06-01-2016, 12:29 PM   #4
LQ Newbie
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Talking thanks for this

Originally Posted by linus72 View Post
just do rm -r /var/lib/pacman/db.lck
then it'll work
Just had the same issue, couldn't remember the command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pacman question Prey Linux - Newbie 1 07-16-2006 05:40 PM
Pacman carlosinfl Linux - Games 4 02-13-2006 02:46 PM
Pacman for Slackware Anonymo Slackware 15 12-10-2005 04:26 PM
pacman alaios Linux - Games 1 08-20-2005 03:34 AM
What happened to Pacman? jenna_h Linux - Software 2 05-15-2003 10:04 PM

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration