← Back to issue list

Packing the "hello world" example fails: 'apt-utils' has no installation candidate

View original Github issue

Metadata

Project
rockcraft
Number
#43
Type
issue
State
closed
Author
sed-i
Labels
Created
Updated
Closed

Current evaluation

Closed by author as a container runtime issue. The package failure originated from LXD/Docker environment configuration rather than Rockcraft itself. The report was abandoned as a software bug.

Suggested action:

No scores available.

Issue body

Hi! Rockcraft is exciting and I'd like to experiment with it. How can I set it up for testing purposes? The [hello world example](https://rockcraft.readthedocs.io/en/latest/tutorials.html#create-a-hello-world-oci-image) fails: ``` Failed to install packages. * Command that failed: 'lxc --project rockcraft exec local:rockcraft-hello-480 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 apt-get install -y apt-utils curl' * Command exit code: 100 * Command output: b'Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage apt-utils is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n apt\n\n' * Command standard error output: b"E: Package 'apt-utils' has no installation candidate\nE: Unable to locate package curl\n" Full execution log: '/home/ubuntu/.cache/rockcraft/log/rockcraft-20220622-174218.572084.log' ``` Rockcraft version: `latest/edge: 0+git.0e8a4f5 2022-05-23 (94) 73MB classic`

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed by author as a container runtime issue. The package failure originated from LXD/Docker environment configuration rather than Rockcraft itself. The report was abandoned as a software bug.
qwen/qwen3.6-35b-a3b Closed as a duplicate of a related container environment issue. The apt-utils and curl installation failure in the LXC build environment was identified as a known limitation rather than a Rockcraft bug.
qwen/qwen3.6-35b-a3b Closed by the author as a known environment issue. The apt-utils and curl installation failure was attributed to container setup problems, referencing a similar Charmcraft issue. No code fix or merge required.
qwen3.6-35b-a3b-mtp-q6 closed after author noted switching to Docker resolved the apt package failure. The LXC runtime lacked required packages, aligning with a similar charmcraft issue.
qwen3.6-35b-a3b-mtp-q6 Closed as an environment-specific LXC issue. The author self-resolved it by switching to Docker, citing a similar Charmcraft bug. No code changes were implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#178 `rockcraft` crashes at the `update apt cache` step rockcraft open Rockcraft fails at 'update apt cache' on GitHub ubuntu-22.04 runners due to Docker iptables rules blocking LXD container networking. Maintainers identified the root cause and pointed to canonical/setup-lxd or rockcraft-pack actions as the fix. Reporter acknowledged the solution in Jan 2023. No labels, no activity since.
73%