You are not logged in.

#1 2009-07-23 19:08:09

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Pacman error

Ok i have just installed Arch and I am logged in as root, i run pacman -Sy and then i get a message saying "error= failed to init transaction (unable to lock database)
then i run /var/lib/pacman/db.lck then i get premisson denied and i am stumped at what to do next!:|

Last edited by Arch.Ben (2009-07-23 20:22:44)

Offline

#2 2009-07-23 19:10:53

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Pacman error

Is your netconnection okay? Did you get ip address ? Is your mirrorlist okay ? Can you download some file of them manually?

Offline

#3 2009-07-23 19:14:36

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Pacman error

Arch-ben: Do you have pacman running somewhere else? If not delete /var/lib/pacman/db.lck i.e.

rm /var/lib/pacman/db.lck

.

Offline

#4 2009-07-23 20:05:28

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

Ashren, I have tried that and i get premission denied; and yes i am logged in as root.

Offline

#5 2009-07-23 20:18:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Pacman error

Please change the thread title to something more descriptive. You can do this by editing the first post.

Offline

#6 2009-07-23 20:24:26

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

Ok i got into /var/lib/pacman/db.lck and there is nothing in there =\

Offline

#7 2009-07-23 20:39:01

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Pacman error

That is because it is a lock file that is created when pacman is running. Other pacman processes check if that file is present before performing any operations, and if not, it is created before performing operations, and deleted after it is finished. Its purpose is to keep two pacman processes from installing or removing packages at the same time which may cause conflicts.

Offline

#8 2009-07-23 20:47:46

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

I do not think it is reading my internet connection.

Offline

#9 2009-07-23 21:00:55

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Pacman error

Why, do you get a different error message? The one you posted indicates that there is a lock file present.

Offline

#10 2009-07-23 21:17:06

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

I get this error when i go to run "pacman -Sy"

Offline

#11 2009-07-23 21:23:14

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Pacman error

Ashren wrote:
rm /var/lib/pacman/db.lck

.

^ You must run this command as root, as Ashren has pointed out, before we can go any further with helping you.
If there is indeed a networking issue, it must be addressed after the lock file is removed.

Offline

#12 2009-07-23 21:33:01

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

problem sovled by reinstalling arch it self..

Offline

#13 2009-07-23 22:49:49

celtic426
Member
From: Boston
Registered: 2009-07-16
Posts: 29
Website

Re: Pacman error

I ran into this error multiple times a few days ago when i was installing Arch.  I think the error occurs when a pacman operation, such as -Syu is terminated prematurely. 

The users were right when they said:

(sudo) rm /var/lib/pacman/db.lck

^That always worked for me.


gods are fragile things.  They may be dismissed with a dose of common sense or a whiff of science.

Offline

#14 2009-07-23 23:03:31

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Pacman error

Arch.Ben wrote:

problem sovled by reinstalling arch it self..

That's Windows-like problem solving, not Linux-like wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#15 2009-07-23 23:46:56

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Pacman error

B wrote:
Arch.Ben wrote:

problem sovled by reinstalling arch it self..

That's Windows-like problem solving, not Linux-like wink.

The end justifies the means ... or is it the install justifies the means or ... nevermind wink

R.

Offline

#16 2009-07-24 00:07:59

Arch.Ben
Member
Registered: 2009-07-23
Posts: 13

Re: Pacman error

needless to say after i get done with updates and install a few more things i will be good to go and start learning more about Arch big_smile

Offline

#17 2009-07-24 00:12:57

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Pacman error

For future reference (anyone from the future reading this thread with the same problem...)

See if there *is* already a pacman running elsewhere:

ps -ef | grep pacman

If there is, kill it and remove the .lck file.

That's the only reason I can think of root getting a permission denied error while trying to remove that .lck file.

Offline

#18 2009-07-24 02:55:09

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Pacman error

LOL You reinstalled the entire OS when all you had to do was delete one file!


neutral

Offline

#19 2009-07-24 03:01:39

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: Pacman error

I always kept this alias handy in my bashrc file.

alias rmlock='sudo rm /var/lib/pacman/db.lck'

It was annoying to have to type that much in order to solve a simple problem.

Offline

#20 2009-07-24 04:55:51

windtalker
Member
Registered: 2008-03-17
Posts: 220

Re: Pacman error

B wrote:
Arch.Ben wrote:

problem sovled by reinstalling arch it self..

That's Windows-like problem solving, not Linux-like wink.

But! But!
Isn't it Linux-like to fix it till it is broke? big_smile

Offline

#21 2009-07-24 08:58:24

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Pacman error

windtalker wrote:

But! But!
Isn't it Linux-like to fix it till it is broke? big_smile

And then fix it 'til it works again smile

Offline

#22 2009-07-24 18:57:01

celtic426
Member
From: Boston
Registered: 2009-07-16
Posts: 29
Website

Re: Pacman error

sand_man wrote:

LOL You reinstalled the entire OS when all you had to do was delete one file!

Lol, epic quote.


gods are fragile things.  They may be dismissed with a dose of common sense or a whiff of science.

Offline

Board footer

Powered by FluxBB