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

Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package?



On Mon 04 Dec 2023 at 21:24:58 (+0000), Albretch Mueller wrote:
> On 12/2/23, David Wright <deblis@lionunicorn.co.uk> wrote:
> > Obviously I'm trying to replicate what you do.
> ...
> > Presumably you're running more commands than you revealed above?
> 
>  Yes, I am; for each "  Depends: " package I have been using apt-get download

~# mkdir /tmp/acl2 ; cd $_
/tmp/acl2# apt-get download acl2
Get:1 http://deb.debian.org/debian bullseye/main amd64 acl2 amd64 8.3dfsg-2 [21.5 MB]
Fetched 21.5 MB in 2s (10.1 MB/s)
W: Download is performed unsandboxed as root as file '/tmp/acl2/acl2_8.3dfsg-2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
/tmp/acl2# ls -laR . /var/cache/apt
.:
total 21004
drwxr-xr-x  2 root root     4096 Dec  4 17:11 .
drwxrwxrwt 17 root root    20480 Dec  4 17:10 ..
-rw-r--r--  1 root root 21481292 Jan 27  2021 acl2_8.3dfsg-2_amd64.deb

/var/cache/apt:
total 69356
drwxr-xr-x  3 root root     4096 Dec  4 15:00 .
drwxr-xr-x 17 root root     4096 May  2  2022 ..
drwxr-xr-x  3 root root    57344 Dec  4 09:27 archives
-rw-r--r--  1 root root 35492253 Dec  4 15:00 pkgcache.bin
-rw-r--r--  1 root root 35451043 Dec  4 15:00 srcpkgcache.bin

/var/cache/apt/archives:
total 68
drwxr-xr-x 3 root root 57344 Dec  4 09:27 .
drwxr-xr-x 3 root root  4096 Dec  4 15:00 ..
-rw-r----- 1 root root     0 Apr 16  2022 lock
drwx------ 2 _apt root  4096 Dec  4 09:18 partial

/var/cache/apt/archives/partial:
total 64
drwx------ 2 _apt root  4096 Dec  4 09:18 .
drwxr-xr-x 3 root root 57344 Dec  4 09:27 ..
/tmp/acl2# 

Still no extra .bin files.

Cheers,
David.


Reply to: