I am following begginer's guide to install archlinux. Unfortunately after entering
# pacstrap -i /mnt base base-devel
==> Creating install root at /mnt
==> Installing packages to /mnt
warning: database file for 'core' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to synchronize any databases
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 /mnt/var/lib/pacman/db.lck
==> ERROR: Failed to install packages to new root
I do have a working network as ping'ing works fine. The mirror list also seems to be fine. Even unmodified list doesn't work. Disk partitions are created and mounted properly. I have no idea why I get these errors.
I tried to find on the web if anyone else had the same problem. Unfortunately all similar problems reported were either due to non-functioning network or bad mirror list, both of which seem to be fine in my case.
I would appreciate if anyone could at least give a hint were to start looking for clues about the source of the problem.
Last edited by orvel (2012-12-22 10:20:46)
You get this error sometimes if you cancel (Ctrl-C) pacman. If you're sure no other instance of pacman is running, try removing /mnt/var/lib/pacman/db.lck.
Please use [code ] [/code ] tags (w/o the spaces).
You don't say whether you tried following the suggestion in the output (as mentioned by alexanderthegre as well).
If that's not the problem, what's your partition/filesystem setup?
thanks a lot alexanderthegre and cfr for your help and sorry for a late reply. After all, removing 'db.lck' file did help. Finally I have installed archlinux and so archlinux comunity has one more happy new member.