You are not logged in.
Pages: 1
Good day to all.
I really need a hint, because I don't understand the situation myself. I have a small SSD-space, so I mount an additional SD card via fstab. It is always inside the laptop.
# /home/gena/storage
/dev/mmcblk0p1 /home/gena/storage auto defaults,nofail,noatime,nodiratime,users 0 0
Now I need to transfer the Pacman cache to the same card. I corrected the line in pacman.conf
CacheDir = /home/gena/storage/pacman/pkg/
But now when I try to install something, the packages do not download.
[gena@gena-pc ~]$ sudo pacman -S geeqie
[sudo] password for gena:
warning: geeqie-2.5-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) geeqie-2.5-1
Total Download Size: 1.88 MiB
Total Installed Size: 5.82 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
Why is this happening, what can I do about it and what is the best way to act in this situation?
Last edited by aragorn22 (2024-11-26 20:21:20)
Offline
File and directory permissions.
You generally don't want the pacman cache in a home dir location, and additionally due to security tightening in recent pacman versions a non root user needs access to the path, which will get blocked by the fact that your home dir is inaccessible to other users. If you really need to keep this path, bind mount the pacman cache outside to a normal root owned location that everyone can enter
See recent discussion on this: https://bbs.archlinux.org/viewtopic.php?id=299394 -- I'd still suggest you mount the thing outside of home but give directories you want to be able to access dedicated ownership of your user but keep especially the pacman cache portion root owned. Also what filesystem is this? If it doesn't support unix perms in the first place you might even need to disable the pacman sandbox regardless.
Last edited by V1del (2024-11-25 10:45:39)
Offline
Ok. I make two partition on sd card and mount its like this
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 461.2G 0 disk
├─mmcblk0p1 179:1 0 100G 0 part /var/cache/pacman/pkg
└─mmcblk0p2 179:2 0 350G 0 part /home/gena/storage
fstab now
# /var/cache/pacman/pkg
/dev/mmcblk0p1 /var/cache/pacman/pkg auto defaults,nofail,noatime,nodiratime 0 0
# /home/gena/storage
/dev/mmcblk0p2 /home/gena/storage auto defaults,nofail,noatime,nodiratime,users 0 0
And now pacman gives me the same error. And when I copy the file to the /home/gena/storage in the mc, I get an error ("сannot chmod target file"), though the file is then copied anyway. I think I'm just not clear understand some important detail.
And it is a exFat on both partition.
Offline
Also what filesystem is this? If it doesn't support unix perms in the first place you might even need to disable the pacman sandbox regardless.
Make the pacman cache partition a proper linux filesystem. ext4 or f2fs or so. ... Or enable DisableSandbox in your pacman.conf to disable the DownloadUser sandbox (... I'd not recommend that)
Last edited by V1del (2024-11-25 13:11:04)
Offline
Ok. Im trying this now. Which type of partition is prefer for f2fs in fdisk?
Now I have this:
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 209717247 209715200 100G 7 HPFS/NTFS/exFAT
/dev/mmcblk0p2 209717248 943720447 734003200 350G 7 HPFS/NTFS/exFAT
Offline
The partition type is basically irrelevant, you can have that whatever. It's only interesting for people that want an fstab-less setup so that the GPT mount point generator can infer something from the type. It's just a label it doesn't matter. If you want to change it pick linux filesystem or so
Offline
Its work! Thank you very much! It was surprised for me, because on my working station I have pacman cache also on sd card with exFat. But I config this about ten years ago.
Offline
Then you won't have merged the pacnew from the pacman 7 update. You're basically running into a variant of https://archlinux.org/news/manual-inter … -required/ and if you didn't bring in the changes you won't have the sandbox enabled.
Please mark as [SOLVED] by editing the title in your first post.
Offline
Pages: 1