openship icon indicating copy to clipboard operation
openship copied to clipboard

[Bug]: openresty install fails on Ubuntu 26.04 — apt repo has no Release file for non-LTS codename (resolute)

Open tizerluo opened this issue 4 months ago • 1 comments

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

  1. Register an Ubuntu 26.04 (resolute) server.
  2. openship server install <id> -c openresty certbot
  3. 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)

tizerluo avatar Jul 22 '26 01:07 tizerluo

fixed, thank you

Hydralerne avatar Jul 22 '26 01:07 Hydralerne