Hi,

Am Sat, 23 Jun 2018 01:03:44 +0200
schrieb Lars Kruse <de...@sumpfralle.de>:

> I just checked here, whether it would be sufficient to simply run the cron-job
> as "nobody" (instead of root). This works for me.
> This would be preferable (compared to the change above), or?
> Or maybe I overlooked something?

indeed I overlooked something :(

The random nature of the "update" action was hiding/postponing the following 
error
messages:

W: chmod 0700 of directory /var/lib/apt/lists/partial failed - 
SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission 
denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: 
Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches 
(13: Permission denied)


Running the plugin as root would obviously solve this.
But it also leads to issues like #849548 [1].

Let's give the issue another few weeks of time - maybe I will come up
with a rewrite of the apt_all plugin. Otherwise we will run apt_all as
root (as suggested above).

Cheers,
Lars


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849548

Reply via email to