[Bug]: openresty install fails on Ubuntu 26.04 — apt repo has no Release file for non-LTS codename (resolute)
Describe the bug
server install -c openresty (and certbot, which runs apt-get update afterwards) fails on Ubuntu 26.04 LTS because the installer pins the openresty apt repo to $(lsb_release -sc), i.e. resolute:
deb [signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu resolute main
openresty.org only publishes repos for LTS releases (currently up to noble; see http://openresty.org/package/ubuntu/dists/), so apt-get update fails:
E: The repository 'http://openresty.org/package/ubuntu resolute Release' does not have a Release file.
[openresty] OpenResty installation failed
Because the installer runs apt-get update again after rewriting the sources file, this also breaks subsequent component installs (e.g. certbot) in the same run.
To Reproduce
- Register an Ubuntu 26.04 (resolute) server.
openship server install <id> -c openresty certbot- Install aborts at the apt step.
Expected behavior
Installer should map non-LTS/unsupported codenames to the nearest supported LTS (e.g. resolute → noble), or probe the repo and fall back with a warning.
Workaround used
Temporarily rewrite the codename before installing, restore afterwards:
cp /etc/os-release /etc/os-release.bak
sed -i "s/^VERSION_CODENAME=resolute/VERSION_CODENAME=noble/" /etc/os-release
openship server install <id> -c openresty # succeeds
mv /etc/os-release.bak /etc/os-release
The noble-pinned repo works fine on 26.04 (openresty 1.31.1.1 installs and runs). Note: chattr +i on the sources file does NOT work — the installer aborts on the failed write (set -e).
Environment
- openship CLI 0.2.1 (npm global), also reproduced via desktop app API
- Server: Ubuntu 26.04 LTS x86_64 (Contabo VPS)
fixed, thank you