Pacman gives bug "File name too long" on github repos

When I install linux-surface linux-surface-headers iptsd it says:

error: could not open file /var/cache/pacman/pkg/34f4ca80-db95-11eb-97f0-b12d6201c490?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210708%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210708T024837Z&X-Amz-Expires=300&X-Amz-Signature=2c3bed792bb9b3c7069adaa302483b568b8276f6e52a832ae35f763a60266fa1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=155009767&response-content-disposition=attachment%3B%20filename%3Dlinux-surface-5.12.14.arch1-1-x86_64.pkg.tar.zst&response-content-type=application%2Foctet-stream.sig.part: File name too long
error: could not open file /var/cache/pacman/pkg/3a521500-db95-11eb-8d92-cf3add629fb2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210708%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210708T024922Z&X-Amz-Expires=300&X-Amz-Signature=707276aee5b434b50fc1ff32632da258ba23543a32e6d1f0f15f08940ff85468&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=155009767&response-content-disposition=attachment%3B%20filename%3Dlinux-surface-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst&response-content-type=application%2Foctet-stream.sig.part: File name too long
error: could not open file /var/cache/pacman/pkg/65b0d700-84b4-11eb-8a5f-2ad707bb2821?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210708%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210708T024940Z&X-Amz-Expires=300&X-Amz-Signature=1de3b9ad7efa605df2e16e35ccf928628a9cd4e2f4d53adf036e6eadeeb7ded3&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=261858706&response-content-disposition=attachment%3B%20filename%3Diptsd-0.4-1-x86_64.pkg.tar.zst&response-content-type=application%2Foctet-stream.sig.part: File name too long

These packages are not in the repos.

man pacman | less -p BUGS

BUGS
Bugs? You must be kidding; there are no bugs in this software. But if we happen to be
wrong, submit a bug report with as much detail as possible at the Arch Linux Bug
Tracker in the Pacman section.

1 Like

yes already known/open ( june 2021) with pacman 6
when we add github custom repo

example : https://github.com/xdevs23/linux-nitrous/releases

curl -ILs https://github.com/xdevs23/linux-nitrous/releases/download/v5.13.4-1/linux-nitrous.db | grep ^loc
location: https://github-releases.githubusercontent.com/219786970/336317db-9807-4d45-bd51-bdbec38c3722?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210722T051811Z&X-Amz-Expires=300&X-Amz-Signature=37d07511fd442bc3be9f0b0816b8368f4ce75d03165829feb4489729b205e331&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=219786970&response-content-disposition=attachment%3B%20filename%3Dlinux-nitrous.db&response-content-type=application%2Foctet-stream

in redirect (real url), we found “336317db-9807-4d45-bd51-bdbec38c3722?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-…” as first post in this subject