You are not logged in.

#1 2012-12-10 16:54:22

orvel
Member
Registered: 2012-12-10
Posts: 2

[Solved] Problems installing the base system

Hi,

I am following begginer's guide to install archlinux. Unfortunately after entering

# pacstrap -i /mnt base base-devel

I get

==> 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.

Regards

Last edited by orvel (2012-12-22 10:20:46)

Offline

#2 2012-12-10 17:24:55

alexanderthegre
Member
Registered: 2012-07-29
Posts: 66

Re: [Solved] Problems installing the base system

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.

Offline

#3 2012-12-11 01:24:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [Solved] Problems installing the base system

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?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-12-12 11:10:43

orvel
Member
Registered: 2012-12-10
Posts: 2

Re: [Solved] Problems installing the base system

Hi,

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.

Regards.

Offline

#5 2012-12-21 10:14:20

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Problems installing the base system

Please mark this topic as solved by editing the title of your first post.

Offline

Board footer

Powered by FluxBB