← 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 as an environment conflict, not a Rockcraft defect. Docker’s iptables rules blocked LXD networking and apt access; removing Docker or allowing forwarding resolved it.

Resolution: closed not a bug

Reason: The reporter linked canonical/charmcraft#507, which identified Docker’s iptables configuration as the cause. No Rockcraft code fix was required; removing Docker or allowing LXD forwarding traffic restored package installation.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed not a bug Closed as an environment conflict, not a Rockcraft defect. Docker’s iptables rules blocked LXD networking and apt access; removing Docker or allowing forwarding resolved it.
stealth/space-bunny-alpha — closed not a bug No Rockcraft fix was needed: linked canonical/charmcraft#507 identifies Docker’s iptables rules blocking LXD apt traffic. Packing worked after removing Docker; allowing FORWARD traffic was an alternative.
stealth/space-bunny-alpha — closed not a bug Closed as an environment conflict: Docker’s iptables rules blocked LXD package installation; the author fixed packing by uninstalling Docker.
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.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#507 (confidence 99%)

    The reporter linked this issue for the identical apt-utils failure, which was caused by Docker blocking LXD network traffic.

Related issues

Issue Project State Summary Similarity
#507 charmcraft pack fails for apt-utils is not available charmcraft closed Closed as an environment conflict: Docker altered iptables and blocked LXD networking, preventing apt-utils installation.
73%
#178 `rockcraft` crashes at the `update apt cache` step rockcraft open apt-get update inside LXD build instance fails on GitHub's ubuntu-22.04 runners; maintainers traced it to Docker/LXD iptables clash, not a rockcraft bug, and point to canonical/setup-lxd and canonical/craft-actions rockcraft-pack as fix (now documented).
72%