`rockcraft pack` error when building a python image
Metadata
Current evaluation
APT emitted an unsandboxed-download warning, but the image built successfully; #937 was closed with no linked code fix.
Resolution: closed not a bug
Reason: The reported output was an APT warning about falling back to an unsandboxed root download, not a pack failure, and the reporter confirmed the image was built. Issue #937 was closed without a resolving PR or commit; its only comment was the automated ROCKCRAFT-254 ticket notice.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
When building a python image, `rockcraft pack` fails with:
```
Pulling install-python :: Downloading package: dpkg - (2.8s)/snap/rockcraft/3466/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/rockcraft/download/dpkg_1.22.6ubuntu6.1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
acq.run()
```
Please notice that despite the error, the image is successfully built.
### To Reproduce
Using the rockcraft.yaml listed below, simply run: `$ rockcraft pack` to see the error.
### Environment
## OS
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
## kernel
`$ uname -a`
Linux x1 6.14.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 25 10:47:01 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
## rockcraft
`$ snap list rockcraft`
Name Version Rev Tracking Publisher Notes
rockcraft 1.13.0 3466 latest/stable canonical✓ classic
### rockcraft.yaml
```yaml
name: python-distroless
base: bare
build-base: ubuntu@24.04
version: '3.12'
summary: Distroless Python container, based on Ubuntu
description: Python container with a baseless image
platforms:
amd64:
parts:
install-python:
plugin: nil
stage-packages:
- base-files
- python3
```
### Relevant log output
```shell
Pulling install-python :: Downloading package: dpkg - (2.8s)/snap/rockcraft/3466/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/rockcraft/download/dpkg_1.22.6ubuntu6.1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
acq.run()
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | APT emitted an unsandboxed-download warning, but the image built successfully; #937 was closed with no linked code fix. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a documented fix; the apt output was an unsandboxed-download warning, despite the image building successfully. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix or resolution. An internal Jira ticket was created, but no code changes or follow-up actions were recorded. The reported permission warning remains unresolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution after triaging and syncing to internal ticket ROCKCRAFT-254. The reported permission warning during rockcraft pack does not prevent successful image builds. Issue appears abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. Despite being triaged and linked to an internal Jira ticket, no resolution or code changes were applied. The reported dpkg permission warning during rockcraft pack remains unresolved. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed after triage and internal ticket creation (ROCKCRAFT-254). No fix was provided. The dpkg permission warning occurs during builds but does not prevent successful image packaging. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.