You are not logged in.
Hey,
The command:
sudo pacman -U https://www…../download
display:
:: Retrieving packages...
alpmtmp.mf2Iro 85.7 KiB 75.0 KiB/s 00:01 [-----------------------------------------------------------] 100%
loading packages...
error: '/var/cache/pacman/pkg/download-GcZXdn/alpmtmp.mf2Iro': could not find or read package
And yes, there is not a download-xxx folder.
journalctl -f
just shows that I log as root.
Have been seeking unsuccessfully for a while...
Any clue?
Last edited by vids (2025-01-01 21:58:18)
Offline
Can confirm. It seems pacman renames the downloaded file, then unlinks the sigfile and rmdirs the tmpdir, but then uses the old tmpdir path to try and "load" the package.
# strace pacman -U https://archlinux.org/packages/extra/x86_64/0ad/download/
[...]
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14971, si_uid=955, si_status=0, si_utime=3 /* 0.03 s */, si_stime=3 /* 0.03 s */} ---
getuid() = 0
newfstatat(AT_FDCWD, "/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi", {st_mode=S_IFREG|0644, st_size=14766873, ...}, 0) = 0
chown("/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi", 0, 0) = 0
umask(000) = 022
umask(022) = 000
chmod("/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi", 0644) = 0
rename("/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi", "/var/cache/pacman/pkg/alpmtmp.RoEPTi") = 0
) = 4
openat(AT_FDCWD, "/var/cache/pacman/pkg/download-25eFnH/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
fstat(6, {st_mode=S_IFDIR|0700, st_size=36, ...}) = 0
getdents64(6, 0x62941746c9e0 /* 3 entries */, 32768) = 88
unlink("/var/cache/pacman/pkg/download-25eFnH//alpmtmp.RoEPTi.sig") = 0
getdents64(6, 0x62941746c9e0 /* 0 entries */, 32768) = 0
close(6) = 0
rmdir("/var/cache/pacman/pkg/download-25eFnH/") = 0
umask(000) = 022
mkdir("/var", 0755) = -1 EEXIST (File exists)
mkdir("/var/lib", 0755) = -1 EEXIST (File exists)
mkdir("/var/lib/pacman", 0755) = -1 EEXIST (File exists)
umask(022) = 000
openat(AT_FDCWD, "/var/lib/pacman/db.lck", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 000) = 6
write(1, "loading packages...\n", 20loading packages...
) = 20
faccessat2(AT_FDCWD, "/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi.sig", R_OK, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
faccessat2(AT_FDCWD, "/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi", R_OK, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
write(2, "\33[1;31merror: \33[0m", 18error: ) = 18
write(2, "'/var/cache/pacman/pkg/download-"..., 87'/var/cache/pacman/pkg/download-25eFnH/alpmtmp.RoEPTi': could not find or read package
) = 87
close(6) = 0
unlink("/var/lib/pacman/db.lck") = 0
[...]
# ls -l /var/cache/pacman/pkg/alpmtmp.RoEPTi
-rw-r--r-- 1 root root 14766873 Jan 1 22:40 /var/cache/pacman/pkg/alpmtmp.RoEPTi
Please file a bug report against pacman.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I didn't know the strace command. Super cool! ))
I have downgraded pacman and now things work.
Thank for the help!
Offline
I'm fairly sure there is a bug filed already. I just don't care about links without filenames in them, so doubt it will ever be fixed...
Offline