On Thu 06 Apr 2023 at 15:37:24 (+0200), zithro wrote: > On 06 Apr 2023 01:30, David Wright wrote: > > On Sat 01 Apr 2023 at 11:58:49 (+0530), Susmita/Rajib wrote: > > > My present Debian system installed from "Official Debian GNU/Linux > > > Live 11.6.0 lxde 2022-12-17T11:46" > > > > > > While installing a package I receive this following message: > > > > > > W: Download is performed unsandboxed as root as file > > > '/root/.synaptic/tmp//tmp_sh' couldn't be accessed by user '_apt'. - > > > pkgAcquire::Run (13: Permission denied)
> > I guess you have to sort out why a file would be being read from > > /root/.synaptic/tmp//tmp_sh. I know next to nothing about synaptic. From the name of the file, tmp_sh, I would hazard a guess that some process has written a shell script of files to download, but that script has not been placed in a world-readable location. User _apt can't read it to perform the sandboxed download, so user=root has to do it instead. > Strange, the second install, even if providing a local file, is still > fetching the file from "deb.debian.org". So AIUI, the sequence is (user == root): . read the control file from the /path-to/foo.deb and obtain the package name, version and dependencies. . is that package/version locatable using sources.list? . if so, _apt downloads from Debian and caches the file as per usual. Install. . is /path-to/foo.deb world-readable? . if so, _apt "downloads" from /path-to/foo.deb. Install, no Warn. . if not, user/root performs an unsandboxed (no _apt involvement) "download" from /path-to/foo.deb instead. Install and Warn. Cheers, David.