[Beta] Minimal Linux images (Ubuntu 26.04 & Rocky 10.2) have broken repositories and missing tools
Describe the bug
The newly added Beta feature for minimal Linux environments has critical out-of-the-box configuration errors for ARM64 (aarch64) devices.
I tested both Ubuntu 26.04 and Rocky Linux 10.2 on an iPhone 14 (iOS 27). In both cases, the package managers (apt and dnf) completely fail to update. Additionally, the images are missing basic network diagnostic tools (iproute2, ethtool) and timezone data.
To reproduce
- Open ServerBox app (Beta version) on an iOS device (iPhone 14 / iOS 27).
- Go to the new "Linux" beta section and download either Ubuntu 26.04 (arm64) or Rocky Linux 10.2 (aarch64).
- Open the terminal and try to run
apt update(on Ubuntu) ordnf update(on Rocky Linux). - Observe the errors. Also try running basic commands like
ip a,clear, ortimedatectl.
Expected result
The package manager should successfully fetch repository metadata and update the system. Basic tools like iproute2 and tzdata should be present or installable.
Actual result
Here are the specific errors and missing configurations for both distros:
1. Ubuntu 26.04 (arm64)
- 404 Not Found Error: The default repository file
/etc/apt/sources.list.d/ubuntu.sourcesuses the suiteresolve(which doesn't exist), instead of the correctresolute. - Wrong Mirror: It points to
ports.ubuntu.com. However, for Ubuntu 26.04 arm64, packages are hosted onarchive.ubuntu.com/ubuntu. - MMap Error: Running
apt updatethrowsError: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. - Permission Denied:
aptcomplains about the_aptuser not being able to access/var/lib/apt/lists/partial/(requires sandbox bypass in proot).
2. Rocky Linux 10.2 (aarch64)
- TLS/SSL Error: Running
dnf updateimmediately fails with:Curl error (35): SSL connect error ... error:0A000119:SSL routines::decryption failed or bad record mac. (This is likely due to MTU fragmentation in mobile networks or strict crypto policies). - Missing Tools: The
systemdtools and network utilities are completely missing (timedatectl: command not found,ip: command not found).
Suggested Fix for Build Scripts
To make these beta images usable out-of-the-box, please consider applying these fixes in the build script:
- For Ubuntu:
- Change
resolvetoresolutein the sources file. - Change the URI to
http://archive.ubuntu.com/ubuntu/. - Pre-add
/etc/apt/apt.conf.d/99cachelimitwithAPT::Cache-Start "134217728"; - Pre-add
/etc/apt/apt.conf.d/99sandboxwithAPT::Sandbox::User "root";
- Change
- For Both Distros:
- Include
iproute2,ca-certificates,nano,clear(ncurses-bin), andtzdatain the minimal rootfs so users can actually configure and diagnose the network.
- Include
Issue triage
Feasibility:needs-clarification | Risk:medium
Information needed to reproduce:
- Can you provide the exact Beta app build/version and the Linux image artifact/build identifiers for Ubuntu 26.04 and Rocky Linux 10.2?
- Please include complete apt update and dnf update output, including the configured repository URLs and release metadata.
- Does the Ubuntu repository failure persist after correcting the suite and URI, and what are the permissions/ownership of /var/lib/apt/lists/partial?
- For Rocky, does the TLS error reproduce on another network or with a different MTU, and can you provide verbose dnf/curl logs?
- Which exact commands are absent, and should these tools be installed in the base image or merely available from working repositories?
Suggested labels(not applied automatically):bug, linux, arm64, beta
Thanks for the triage! Here are the details requested:
1. App build/version and image identifiers:
- App: ServerBox v1856 on iOS 27 (iPhone 14).
- Images: Default images downloaded from the app's Beta section (Ubuntu 26.04 arm64, Rocky Linux 10.2 aarch64).
2. Ubuntu 26.04 details:
- Repository failure: The initial failure was due to the typo
resolveinstead ofresolute, and the wrong mirror. - Permissions/MMap error: After correcting the URL and suite,
apt updatedownloaded the lists but failed withError: Dynamic MMap ran out of room. I fixed this by increasing the cache limit. Then it complained about_aptuser permissions (Permission denied for/var/lib/apt/lists/partial/). I bypassed this by settingAPT::Sandbox::User "root";in the apt config. - Output: Once these 3 fixes were applied,
apt update && apt upgrade -yfinally worked successfully. (I can provide the full terminal log if needed).
3. Rocky Linux 10.2 details:
- TLS Error: The exact error is
Curl error (35): SSL connect error for https://dl.rockylinux.org/... error:0A000119:SSL routines::decryption failed or bad record mac. - Network: I am on an LTE/4G mobile network.
- MTU testing: I cannot test MTU changes because standard network tools (
ip,ifconfig,ethtool) are missing from the image. (This is exactly why we need them pre-installed).
4. Missing commands:
ip(from iproute2)clear(from ncurses-bin)timedatectl(from systemd)ethtoolnano/vimThese must be included in the base image. It's a catch-22: users can't runapt install iproute2to fix the network if the network is broken and we have no tools to diagnose it.
5. Verbose logs:
- For Rocky, the
dnferror is a standard curl TLS error. The issue is almost certainly related to mobile LTE MTU fragmentation or overly strict crypto policies (OpenSSL) in the beta rootfs.
Suggested fix remains: Please pre-configure the Ubuntu repo/mmap/sandbox issues in the build script and add iproute2, ca-certificates, and tzdata to both minimal images. Thanks!
Thanks. Working on it, maybe next next release?
Thanks a lot! Looking forward to the update. Also, as a side note: running /sbin/unix_update directly instantly crashes the whole app (likely a proot/segfault issue). Have a great day!
Fixed for the next release, which moves iOS to a new engine. On an iPad, Ubuntu 26.04's apt update/install and Rocky 10.2's dnf over HTTPS work out of the box, and /sbin/unix_update just exits with its usual message. The base images stay minimal; dnf install iproute ncurses nano ethtool (or apt install iproute2) adds the tools.