FS#71464 - pacman -U multiple downloads fail with ParallelDownloads enabled
Attached to Project:
Pacman
Opened by Geert Hendrickx (ghen) - Wednesday, 07 July 2021, 18:57 GMT
Last edited by Allan McRae (Allan) - Saturday, 04 September 2021, 02:24 GMT
Opened by Geert Hendrickx (ghen) - Wednesday, 07 July 2021, 18:57 GMT
Last edited by Allan McRae (Allan) - Saturday, 04 September 2021, 02:24 GMT
|
Details
The following used to work without parallel downloads, but
fails with ParallelDownloads enabled:
$ sudo pacman -U https://archlinux.org/packages/testing/x86_64/systemd/download https://archlinux.org/packages/testing/x86_64/systemd-libs/download https://archlinux.org/packages/testing/x86_64/systemd-sysvcompat/download :: Retrieving packages... download download failed to download download failed to download error: could not rename /var/cache/pacman/pkg/download.part to /var/cache/pacman/pkg/systemd-libs-249-1-x86_64.pkg.tar.zst (No such file or directory) error: could not rename /var/cache/pacman/pkg/download.part to /var/cache/pacman/pkg/systemd-249-1-x86_64.pkg.tar.zst (No such file or directory) warning: failed to retrieve some files It fails because all three files are retrieved as "download" at the same time (the filename part of all three URL's). A workaround is to trick pacman into saving them under different names, like: $ sudo pacman -U https://archlinux.org/packages/testing/x86_64/systemd/download?1 https://archlinux.org/packages/testing/x86_64/systemd-libs/download?2 https://archlinux.org/packages/testing/x86_64/systemd-sysvcompat/download?3 :: Retrieving packages... download?1 download?2 download?3 Or to disable ParallelDownloads. |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 04 September 2021, 02:24 GMT
Reason for closing: Fixed
Additional comments about closing: git commit c0026caab03d62fdb1774fa66d12e1258a84bf6f
Saturday, 04 September 2021, 02:24 GMT
Reason for closing: Fixed
Additional comments about closing: git commit c0026caab03d62fdb1774fa66d12e1258a84bf6f
(note the trailing slash) which would cause pacman to treat the url as having no file
name and it would pick a random one. Recently though this changed.
$ sudo pacman -U https://archlinux.org/packages/testing/x86_64/systemd/download/ https://archlinux.org/packages/testing/x86_64/systemd-libs/download/ https://archlinux.org/packages/testing/x86_64/systemd-sysvcompat/download/
:: Retrieving packages...
alpmtmp.EUFV2D
alpmtmp.gGTyfr
alpmtmp.YNQYp2