← Back to issue list

Hello world tutorial doesn't work when using 24.04 base

View original Github issue

Metadata

Project
rockcraft
Number
#898
Type
issue
State
open
Author
seb128
Labels
Type: Documentation
Created
Updated
Closed

Current evaluation

Hello World tutorial fails with bare base + ubuntu@24.04 build-base: 'hello' binary not found at runtime (usrmerge/loader issue). Tutorial has since been updated to use ubuntu@26.04 base, so the specific repro no longer matches current docs. No maintainer response; 0 comments.

Suggested action: close stale

Reason: The tutorial (docs/tutorial/code/hello-world/rockcraft.yaml) was updated in commit bdf0258d to use 'base: ubuntu@26.04' instead of the bare base + 24.04 build-base combination reported here, so the specific documentation repro is no longer applicable. The issue has 0 comments and no maintainer engagement over 445 days. If the underlying bare-base usrmerge bug persists, it warrants a separate bug report rather than keeping this docs issue open.

Impact: 30 Quick Win: 18.0 Staleness: 70 Complexity: 40 Confidence: 65 Support Request: 10

Issue body

### Bug Description Trying to follow https://documentation.ubuntu.com/rockcraft/en/latest/tutorial/hello-world/#id1 but changing the base from 22.04 to 24.04 leads to an error ### To Reproduce $ rockcraft pack $ sudo rockcraft.skopeo --insecure-policy copy oci-archive:hello_latest_amd64.rock docker-daemon:hello:latest $ docker run --rm hello:latest exec hello -t error: cannot perform the following tasks: - Execute command "hello" (fork/exec /usr/bin/hello: no such file or directory) ### Environment On Ubuntu Plucky $ rockcraft -V rockcraft 1.12.0 ### rockcraft.yaml ```yaml $ cat rockcraft.yaml name: hello summary: Hello World description: The most basic example of a rock. version: "latest" license: Apache-2.0 base: bare build-base: ubuntu@24.04 platforms: amd64: parts: hello: plugin: nil stage-packages: - hello ``` ### Relevant log output ```shell $ docker run --rm hello:latest exec hello -t error: cannot perform the following tasks: - Execute command "hello" (fork/exec /usr/bin/hello: no such file or directory) ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18.0
Staleness: 70
Complexity: 40
Confidence: 65
Support Request: 10
close stale Hello World tutorial fails with bare base + ubuntu@24.04 build-base: 'hello' binary not found at runtime (usrmerge/loader issue). Tutorial has since been updated to use ubuntu@26.04 base, so the specific repro no longer matches current docs. No maintainer response; 0 comments.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 15
Confidence: 85
Support Request: 10
needs triage Tutorial example fails when switching base to 24.04, causing a missing /usr/bin/hello error in the resulting container. Untriaged, no maintainer comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Tutorial fails with Ubuntu 24.04 base due to missing /usr/bin/hello in container. Unassessed bug report with no maintainer response after 7 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 10
needs triage Tutorial fails when using Ubuntu 24.04 base, causing a missing binary error during execution. Unassessed and inactive for over a year, requiring maintainer review to determine if documentation needs updating or if the problem was resolved elsewhere.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 0
close stale Rockcraft hello-world tutorial fails with ubuntu@24.04 base, causing a runtime error for missing /usr/bin/hello. Open, unassigned, and inactive for 186 days with no comments. Labeled as a documentation issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/rockcraft#1213 (confidence 55%)

    Commit bdf0258d 'docs: update to ubuntu 26 base' changed the hello-world tutorial to use ubuntu@26.04, removing the bare base + 24.04 combination that triggered the error.

  • Related To: canonical/rockcraft#498 (confidence 40%)

    Commit 05489c80 'fix(lifecycle): remove usrmerge-breaking symlinks' addresses the underlying usrmerge/loader issue that causes 'no such file or directory' for binaries in bare-base rocks.

Related issues

No related issues found above the similarity threshold.