"sh: out of range" error message when installing certain packages.
I've been noticing a strange error message pop up when adding certain packages (namely postgresql14-client
, but there might be others) inside a docker container.
Command:
apk --no-cache add postgresql14-client
Response:
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/6) Installing postgresql-common (1.1-r3)
Executing postgresql-common-1.1-r3.pre-install
(2/6) Installing libpq (15.2-r0)
(3/6) Installing ncurses-terminfo-base (6.3_p20221119-r0)
(4/6) Installing ncurses-libs (6.3_p20221119-r0)
(5/6) Installing readline (8.2.0-r0)
(6/6) Installing postgresql14-client (14.7-r0)
Executing busybox-1.35.0-r29.trigger
Executing postgresql-common-1.1-r3.trigger
* Setting postgresql14 as the default version
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
sh: out of range
OK: 11 MiB in 21 packages
Note that despite the error message, the package does install fine, and I'm able to run its installed binaries (namely pg_dump
) just fine.
I have confirmed that this issue can be reproduced on the v3.15
, v3.16
, v3.17
, edge
, and latest
tags of the official Alpine Linux Docker images. Note that other packages, such as apk --no-cache add bash
don't seem to generate this message.
Judging by the nature of the error, I'm suspecting that this is an error in APK, but let me know if this should bug be opened on the postgres package instead.