You are not logged in.

#1 2013-07-23 10:03:23

frostwind
Member
Registered: 2013-07-23
Posts: 8

[RESOLVED]Can't get any packages with pacman

I'm trying to install arch linux in virtual box, now trying to get a GUI.
When I keep trying to get xorg, or even if i pacman -Syu/Syy I keep getting this error:

[frostwind@arch ~]$ sudo pacman -S xorg
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck

I don't know what to do. Please help.

Last edited by frostwind (2013-07-23 10:14:40)

Offline

#2 2013-07-23 10:05:00

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [RESOLVED]Can't get any packages with pacman

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

Have you ?


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#3 2013-07-23 10:05:40

frostwind
Member
Registered: 2013-07-23
Posts: 8

Re: [RESOLVED]Can't get any packages with pacman

I'm still new to Arch Linux so im not sure of everything yet. do I just remove it then?

Offline

#4 2013-07-23 10:05:51

Opanos
Member
Registered: 2012-09-16
Posts: 42

Re: [RESOLVED]Can't get any packages with pacman

pacman helps you:

rm /var/lib/pacman/db.lck

then run pacman -Syyu

smile

Offline

#5 2013-07-23 10:07:43

frostwind
Member
Registered: 2013-07-23
Posts: 8

Re: [RESOLVED]Can't get any packages with pacman

I did that, I'm still getting errors.

Offline

#6 2013-07-23 10:08:37

frostwind
Member
Registered: 2013-07-23
Posts: 8

Re: [RESOLVED]Can't get any packages with pacman

Nevermind, didn't run it as sudo. Thanks.

Offline

#7 2013-07-23 10:08:50

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [RESOLVED]Can't get any packages with pacman

The same errors ?

edit: beaten to the punch.

Glad you have solved your error. You now need to edit the title of your OP so that it reads "[solved]....."

Last edited by flipper T (2013-07-23 10:10:15)


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#8 2013-07-23 10:09:47

frostwind
Member
Registered: 2013-07-23
Posts: 8

Re: [RESOLVED]Can't get any packages with pacman

I just didnt run it as sudo. It worked.

Offline

#9 2013-07-23 10:11:45

dag
Member
From: US
Registered: 2013-01-20
Posts: 216

Re: [RESOLVED]Can't get any packages with pacman

it usually means you have another pacman running. it is safe to delete though assuming you do not have pacman in motion when that is displayed not sure why you would get that.


--------------------------------------
alcoves wonder creates the wonder unto the ages; never lose that.

Offline

#10 2013-07-23 10:33:16

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

Re: [RESOLVED]Can't get any packages with pacman

frostwind, why would you run 'sudo pacman -S xorg'? Please follow the wiki.
If you did install the whole xorg group, remove it and install only the packages you need, just the drivers from your graphics card, not drivers for all the cards.

Offline

Board footer

Powered by FluxBB