← Back to issue list

feat(deb): Don't run apt-get update as non-root user

View original Github issue

Metadata

Project
craft-parts
Number
#753
Type
pull request
State
closed
Author
thp-canonical
Labels
Created
Updated
Closed

Current evaluation

Superseded by pull request #752. The author confirmed the change was replaced, so this pull request was closed without merging.

Suggested action:

No scores available.

Issue body

- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? ----- `apt-get update` will fail as non-root user. It is only needed when some build-dependencies are not installed yet. If all build dependencies are installed, craft-parts can be run without root permissions. This was previously only possible by setting the environment variable `CRAFT_PARTS_PACKAGE_REFRESH=0`.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Superseded by pull request #752. The author confirmed the change was replaced, so this pull request was closed without merging.
qwen3.6-35b-a3b-mtp-q6 Superseded by pull request #752. The change to prevent running apt-get update as a non-root user was implemented in the referenced PR instead, leaving this pull request closed without merging.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#752 feat(deb): only run apt update as superuser craft-parts merged Merged. The Debian packaging script now conditionally runs apt update only when executed as root, replacing environment variable checks with a direct UID check. Approved by two reviewers, passed CI, and changed eight files.
75%