You are not logged in.
I'm trying to install packages from a USB disk.
I'm pretty sure that pacman is sad because the USB drive in question is FAT32. Or potentially it's because I mounted it with udisksctl?
$ udisksctl mount -b /dev/sda1
mounted /dev/sda1 at /run/media/wayne/ABCD-1234
$ cd /run/media/wayne
$ mkdir arch-pkg
$ cd arch-pkg
$ sudo mkdir /tmp/blankdb
$ sudo pacman -Syw --disable-sandbox --cachedir . base base-devel minetest --dbpath /tmp/blankdb
<a whole lotta output>
:: Proceed with download? [Y/n] y
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
I thought it might be because that drive is fat32 so I tried a different drive that I have formatted Linux/ext4
$ cd /mydrive/arch-pkg
$ df -PTh .
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 20G 5.8G 13G 32% /wdrive
$ sudo pacman -Syw --disable-sandbox --cachedir . base base-devel minetest --dbpath /tmp/blankdb
<same whole lotta output>
:: Proceed with download? [Y/n]
:: Retrieving packages...
Total <snip>
error: could not open file ./download-30wA6t/gcc-14.2.1+r134+gab884fffe3fc-1-x86_64.pkg.tar.zst.part: No such file or directory
error: failed to setup a download payload for gcc-14.2.1+r134+gab884fffe3fc-1-x86_64.pkg.tar.zst
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
What's going on here? Why won't pacman download files to my local repo?
Though as I write this out I'm pretty sure that it's not just how it's mounted because
$ sudo -s
# mkdir -p /tmp/arch-pkg
# cd /tmp/arch-pkg
# pacman -Syw --disable-sandbox --cachedir . base base-devel minetest --dbpath /tmp/blankdb
Fails with the same error - no .zst.part file.
Offline
Well, part of the issue is that I needed `--cachedir $PWD` -- apparently that's required to be an absolute directory, per `man pacman`
Offline
Pacman tries to download packages into the current directory, but since FAT32 doesn't support POSIX file ownership, you're probably running into this issue:
https://bbs.archlinux.org/viewtopic.php?id=299473
Offline