You are not logged in.

#1 2022-05-13 10:21:32

drees5
Member
Registered: 2022-04-24
Posts: 15

Failed to acquire lockfile when creating custom local repository

I was attempting to create a custom local repositiory which I planned to copy to a usb via following the steps in this wiki post: https://wiki.archlinux.org/title/Pacman … repository in the "Installing packages from a CD/DVD or USB stick" section.

However after following the guide and creating a blank db, and installing a list of packages using this command

pacman -Syw --cachedir . --dbpath /tmp/blankdb - < pkglist.txt

(pkglist.txt contains a list of packages)
  I get the error:

==> ERROR: Failed to acquire lockfile: PATH_TO_DIR/custom.db.tar.gz.lck

when attempting to run

repo-add ./custom.db.tar.gz ./*

I've tried deleting and reinstalling all the downloaded packages but still receive the same error, I've also tried deleting and recreating the /tmp/blankdb directory however this didn't help either. I'm not sure what's going wrong as I'd successfully created a custom local repository using this method previously.

Any help would be much appreciated.

Last edited by drees5 (2022-05-14 15:04:43)

Offline

#2 2022-05-14 16:03:40

drees5
Member
Registered: 2022-04-24
Posts: 15

Re: Failed to acquire lockfile when creating custom local repository

I should also add that any variation on repo-add also fails, for example

repo-add ./repo.db.tar.gz ./*

gives the error

==> ERROR: Failed to acquire lockfile: /home/dylan/Packages/./custom.db.tar.gz.lck.

Offline

Board footer

Powered by FluxBB