You are not logged in.
Pages: 1
Hello everybody!
I have an issue with pacman. It appeared after my conection with the web was cut down while I was installing gnome. Now, everytime I try to use pacman, is says:
"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 "
And nothing works.
I'm very disapointed with these problems. Arch is not only a hard distro, but it requires a good amount of luck, something I didn't had...
If someone can help me I would be very pleased.
Thanks in advance!
Offline
My MSN is gspottker@hotmail.com
Offline
Offline
Yes, but I didn't know what to do. I'm a newbie. I tried to see the file, but it was blank. And I just don't know what means a "lock database".
Do you know what I have to do?
thanks
Offline
OK. In clue in the error message is "you can remove /var/lib/pacman/db.lck". Do that.
Offline
I'm awfully sorry for this post. I'm just a bad linux user. I removed the file and it worked! Well, thanks for the attention.
I tried before to remove the file, but didn't use the right command...
good bye
Offline
I'm very disapointed with these problems.
You've mentioned only one problem, and that has now been resolved. If you have others, I'm sure people will help you with them, but please search the forum and the wiki first - your problems may have already been solved by someone else.
If you are having difficulty with Arch, it may not be the right distro for you. Have a look around - there are plenty to choose from, many designed to be suitable for new Linux users.
And finally - it's not a good idea to post your email address in public forums.
Offline
+1 on reading the wiki.
If you are new to Linux, have a go at Ubuntu? Not that Arch is worse, but Ubuntu has more handholding.
Offline
Hi
I have another version of the same problem.
Actually I am a BRAND NEW migrant to ArchLinux. I have used Linux on Ubuntu, Kubuntu and PCLinuxOS. But Iam still brand new at command line interfaces. Installing Arch by using the wonderful ARCHLINUX beginner guide has got me thus far to this brand-new KDEmod Linux interface, of which Iam quite proud. And I had a lot of trouble connecting the ethernet at which I succeeded, and then the wireless at which I have managed to be partly but not fully successful.
I managed to commit one more error along the way. Not knowing that the SUDOERS file was in VB or some such arcane language that a non-geek like me is aware of, I managed to bork it to such an extent that i "accidentally" (a typical newbie excuse..!!) "managed" to delete the root' account's name from it...!
As I didn't want to mess up before I knew what exactly was wrong, I continued with the install with no further issues that I could notice.
But the issue for this thread...
I tried using the Arch Wi-Fi guide to make my wifi work, and at one point it seemed to work, because the Wi-Fi LED of my laptop turned on after I did dhcpcd wlan0. But that was a msitaken notion as i learnt to my peril. I logged into a terminal and used pacman to download the wireless assistant GUI to make the process easy for a newbie like me. But since the wireless was not actually working, pacman was unable to connect for more than 10 mins and was stuck on some point...
So I closed the terminal..!
Now when I use pacman to download something it gives me the error like it did for the original poster. I managed to figure out the solution from the hint
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
So i tried to issue the command
/var/lib/pacman/db.lck
But I got this error back.
bash: /var/lib/pacman/db.lck: Permission denied
I went back to issuing the visudo command, and this time I managed to add the root's name correctly and save the file. Now when i type in sudo as root, i am able to get into password and execute an example command like sudo alsamixer and get to the window.
But still i get the same error
bash: /var/lib/pacman/db.lck: Permission denied
What is wrong...? Can someone help me...?
Thanks for reading through.
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Forget sudo for the moment. Does su work?
Last edited by sand_man (2008-12-30 09:15:56)
Offline
yes it does...
[user@myhost ~]$ su root
Password:
bash-3.2#
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
# rm /var/lib/pacman/db.lck
Note: it's never too late for the ultimate solution
Last edited by string (2008-12-30 09:34:03)
Offline
So, you got a 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
and you did:
/var/lib/pacman/db.lck
But I got this error back.
bash: /var/lib/pacman/db.lck: Permission denied
Not quite removing a file. Try an "rm" in there...
Offline
Offline
What's wrong with recommending Ubuntu?
Last edited by string (2008-12-30 09:43:53)
Offline
to all
thank you so much for such a speedy reponse...!
@string... I am considering a solution on the lines of something like this
http://www.ee.surrey.ac.uk/Teaching/Unix/
Never too late to learn..!
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
@jaydoc
That's quite a nice find for anyone starting out on the command line . Also,imho, the auto-didactic approach is enough to overcome any lack of "basic" Linux knowledge when trying to familiarize oneself with Arch. Between search engines, the wiki, and the forum search you should be able to solve most of the problems you'll encounter in the beginning.
Welcome to Arch!
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
thanks xyne... I am beginning to love the Arch Way...! Its a wonderful learning experience to start understanding what is going on beneath the hood of that shiny new computer...! And that is the real difference between the OS-that-should -not be-named and Linux...!
It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead
Offline
Pages: 1