apt update failure during core22 destructive-mode pulls
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Example logs https://paste.ubuntu.com/p/P9rFM6rR6T/ for a core22 based snap with a part that contains stage-packages.
This seems like a regression from core20 based destructive mode builds, where it was possible to run snapcraft as non-root user without running into permission errors during apt update.
Running `snapcraft pull --destructive-mode ...` with sudo is problematic because of lack of regular user's ssh keys/config, and `--bind-ssh` does not seem to be doing anything during destructive mode builds.
$ snap list snapcraft
Name Version Rev Tracking Publisher Notes
snapcraft 7.3.1 8931 latest/stable canonical✓ classic
Evaluation history
No evaluation history available.