Dear Tobi,
at least on one host, the new assaultcube package fails to upgrade as
follows:
Setting up assaultcube (1.3.0.2+dfsg-4) ...
Downloading game data…dpkg: error processing package assaultcube (--configure):
installed assaultcube package post-installation script subprocess returned error exit status 4
[…]
Errors were encountered while processing:
assaultcube
Interestingly there's not even an error message from the postinst
script. It just seems to die.
Adding a "set -x" reveals that it aborts at this position:
# dpkg --configure -a
Setting up assaultcube (1.3.0.2+dfsg-4) ...
+ set -e
+ version=1.3.0.2
+ hash=9b3118e7929253f0114fa06cad8310faab646d177b4660406011152f34086b55
+ file=AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
+ url=https://github.com/assaultcube/AC/releases/download/v1.3.0.2/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
+ fqfn=/var/cache/assaultcube/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
+ targetdir=/var/lib/assaultcube/gamedata/
+ cachedir=/var/cache/assaultcube/
+ [ configure = configure ]
+ rm -rf /var/cache/assaultcube/
+ mkdir -p /var/cache/assaultcube/
+ echo -n Downloading game data…
Downloading game data…+ wget -q https://github.com/assaultcube/AC/releases/download/v1.3.0.2/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2 -O /var/cache/assaultcube/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
dpkg: error processing package assaultcube (--configure):
installed assaultcube package post-installation script subprocess returned error exit status 4
Errors were encountered while processing:
assaultcube
Running the wget call without "-q" reveals that
https://github.com/orgs/community/discussions/10539 (Github lacking IPv6
support in many places) is actually the culprit:
# wget https://github.com/assaultcube/AC/releases/download/v1.3.0.2/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2 -O /var/cache/assaultcube/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
--2022-10-06 14:34:26-- https://github.com/assaultcube/AC/releases/download/v1.3.0.2/AssaultCube_v1.3.0.2_LockdownEdition_RC1.tar.bz2
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... failed: Network is unreachable.
# echo $?
4
Unfortunately I see no possibility to fix this easily without Github
finally supporting IPv6. (Hence setting the above mention Github issue as
"forwarded" URL. Feel free to change that.)
So please at least remove that "-q" from the wget call in the postinst
script for easier diagnostics of such download failures.
(And feel free to clone this bug report if you want to track the removal
of -q separated from the download issue itself.)