[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: resolving the “Warning: Download is performed unsandboxed as root … couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)” in a debootstrap'd chroot



I wrote, less than an hour ago:
> Yet, I'm still getting — on every `apt install <SOMETHING>` and `apt update`
> command — the following error:
>       Warning: Download is performed unsandboxed as root as file '/var/lib/apt/lists/partial/deb.debian.org_debian_dists_trixie_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

… I've missed this more than once, so feel silly but the problem was the
permissions on the chroot directory not having read&execute for everyone.

So, it was resolved with …
      # chmod 755 /srv/chroot/trixie
… run on the main system and not the chroot.
--
Bradley M. Kühn - he/them - Policy Fellow & Hacker-in-Residence at Software Freedom Conservancy
     I answer email slowly; feel free to book a chat w/ me: https://sfc.ngo/book/bkuhn
           On the Fediverse (via Mastodon) at https://fedi.copyleft.org/@bkuhn


Reply to: