Skip to content

Add support for Ubuntu 22.04, 24.04 and Debian 11/12#320

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-support-ubuntu-24-04-debian-12
Draft

Add support for Ubuntu 22.04, 24.04 and Debian 11/12#320
Copilot wants to merge 2 commits intomainfrom
copilot/add-support-ubuntu-24-04-debian-12

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 22, 2026

Ubuntu 20.04 reaches EOL in May 2025. Several package-level breaking changes in newer Debian-based distros prevent the install scripts from working correctly.

Package name changes

  • lib32gcc1lib32gcc-s1 on Ubuntu 22.04+ and Debian 11+
  • mlocateplocate on Ubuntu 22.04+ and Debian 12+

Both are now resolved via version detection using $ID and $VERSION_ID from /etc/os-release.

Ubuntu 24.04: steamcmd removed from apt

steamcmd is no longer in the Ubuntu 24.04 multiverse repo. On Ubuntu 24.04+, the script now downloads and extracts steamcmd manually from Valve's CDN into /home/steam/steamcmd/, and steamexe is set to /home/steam/steamcmd/steamcmd.sh accordingly. The apt symlink step is skipped for this path.

Debian 12: steamcmd requires non-free sources

steamcmd is in Debian's non-free component. When non-free is not present in sources, the script adds a new drop-in file:

echo "deb http://deb.debian.org/debian ${VERSION_CODENAME:-bookworm} main contrib non-free non-free-firmware" \
    | sudo tee /etc/apt/sources.list.d/debian-non-free.list

Uses $VERSION_CODENAME rather than hardcoding bookworm to stay correct for future Debian releases.

Scope

Changes applied consistently across both njordmenu.sh (legacy monolithic script) and rebirth/lib/server.sh + rebirth/lib/core.sh (modular codebase). README prerequisites updated to reflect the newly supported OS versions.

Original prompt

This section details on the original issue you should resolve

<issue_title>[FEATURE] Add support for Ubuntu 24.04 and Debian 12</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
Ubuntu 20.04 reaches EOL in May 2025

Describe the solution you'd like
Make the script work for 24.04 or at least 22.04. Preferably also debian!

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

- Fix lib32gcc1 → lib32gcc-s1 package rename (Ubuntu 22.04+, Debian 11+)
- Fix mlocate → plocate for Ubuntu 22.04+ and Debian 12+
- Add Ubuntu 24.04 manual steamcmd download (removed from apt repos)
- Add Debian 12 non-free/contrib repo setup for steamcmd
- Update steamcmd symlink logic for Ubuntu 24.04+
- Update set_steamexe() for Ubuntu 24.04 manual install path
- Apply all changes consistently in njordmenu.sh and rebirth/lib/
- Update README to list Ubuntu 22.04, 24.04, Debian 11/12 as supported

Co-authored-by: Nimdy <16698453+Nimdy@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Nimdy/Dedicated_Valheim_Server_Script/sessions/d637b7eb-a7f6-4272-b60f-607d47f6c03d
Copilot AI changed the title [WIP] Add support for Ubuntu 24.04 and Debian 12 Add support for Ubuntu 22.04, 24.04 and Debian 11/12 Mar 22, 2026
Copilot AI requested a review from Nimdy March 22, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for Ubuntu 24.04 and Debian 12

2 participants