← Back to issue list

snapcraft 9.2.1 produces noise: couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

View original Github issue

Metadata

Project
craft-parts
Number
#1793
Type
issue
State
open
Author
taurus-forever
Labels
Status: Triaged
Created
Updated
Closed
—

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

python-apt warning noise during package downloads in snapcraft 9.x (regression from 8.x); transferred to craft-parts by maintainer, awaiting triage

Suggested action: needs triage

Reason: The issue was transferred to craft-parts by @lengau but has no labels, assignee, or maintainer assessment. It reports a python-apt warning noise during package downloads that appeared in snapcraft 9.x but not 8.x. The reproduction steps are clear, but the issue requires triage to determine if this is a craft-parts fix, a python-apt upstream issue, or a configuration change.

Evaluated by: mr-cal-bot

Impact: 20 Quick Win: 8 Complexity: 30 Confidence: 70 Actionability: 60

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description Hi, Issue: ``` > snapcraft pack Pulling postgres-debs :: Downloading package: coreutils/snap/snapcraft/19458/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/snapcraft/download/coreutils_9.4-3ubuntu6.3_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) acq.run() Packed postgresql_16.15_amd64.snap ``` STR: ``` sudo snap install snapcraft # v9.2.1: latest/stable r19387 or latest/edge r19458 git clone https://github.com/canonical/postgresql-snap && cd postgresql-snap snapcraft clean && snapcraft pack # produces noise above ``` The previous version 8.x had no such noise: ``` sudo snap refresh snapcraft --channel 8.x/stable # v8.14.5, r17614 snapcraft clean && snapcraft pack # has no such noise ``` ### Steps to reproduce See above ### Environment > lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 26.04.1 LTS Release: 26.04 Codename: resolute > uname -a Linux corporate 7.0.0-38-generic canonical/snapcraft#38-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 4 09:10:14 UTC 2026 x86_64 GNU/Linux > snap list snapcraft lxd Name Version Rev Tracking Publisher Notes lxd 5.21.8-3a06799 40958 5.21/stable canonical✓ - snapcraft 8.14.5.post2 18961 8.x/edge canonical✓ classic ### snapcraft.yaml ```yaml https://github.com/canonical/postgresql-snap/blob/16/edge/snap/snapcraft.yaml ``` ### Log output ```shell Pulling postgres-debs :: Downloading package: coreutils/snap/snapcraft/19458/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/snapcraft/download/coreutils_9.4-3ubuntu6.3_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) acq.run() ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b
Impact: 20
Quick Win: 8
Complexity: 30
Confidence: 70
Actionability: 60
needs triage python-apt warning noise during package downloads in snapcraft 9.x (regression from 8.x); transferred to craft-parts by maintainer, awaiting triage

Update history

Date Change
updated
created

Related work

  • Duplicate Of: snapcraft#6523 (confidence 95%)

    Identical issue reported in snapcraft repo before being transferred to craft-parts

Related issues

Issue Project State Summary Similarity
#6523 snapcraft 9.2.1 produces noise: couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) snapcraft open snapcraft 9.2.1 produces python-apt warning noise during package download: 'Download is performed unsandboxed as root as file couldn't be accessed by user _apt'. Regression from 8.x.
95%