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

Bug#914865: anything new?



Matus UHLAR - fantomas <uhlar@fantomas.sk> ezt írta (időpont: 2019.
aug. 19., H, 18:12):
this problem seems to be in apt, not in unattended-uprades.

I have configured apt to use /tmp as base for packages:

Dir::Cache::archives "/tmp/archives";
Apt::Update::Pre-Invoke {"mkdir -m 700 -p /tmp/archives/partial";};

unfortunately, the pre-invoke command only seems to be called when package
list is updated (as its name says), not when packages are fetched to be
installed.

hacking unattended-uprades to call update would apparently fix this

On 23.08.19 18:26, Bálint Réczey wrote:
Thanks for the additional info.
IMO APT should either provide a hook to be called before fetching
archives or the maintainers can decide to not provide one and tell
users to create the directory structure for themselves.
Since the issue affects all python-apt users and APT maintainers
should make the call on the solution I'm reassigning the bug.

apt since (1.8.0~rc4) supports APT::Install::Pre-Invoke hook, as result of
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1815761

hopefully this could be used in for unattended-upgrades, if it's called
before packages are to be downloaded, not only installed.

Otherwise we need new, possibly more generic hook.

I believe that since many people have SSDs, they will prefer downloading
archives to temporary storage.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Nothing is fool-proof to a talented fool.


Reply to: