#968851 Apt does not remove temporary files it creates

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
darkdragon
Date:
2022-04-06 08:15:05 UTC
Severity:
normal
#968851#5
Date:
2020-08-22 11:15:39 UTC
From:
To:
I have several "/tmp/tmpXXXXXXXX" folders, each with a single file
called "apt.conf" and the contents DIR "/";

I think every app should clean up all the temporary files it creates.

#968851#10
Date:
2022-04-06 08:13:59 UTC
From:
To:
Hello!

I noticed that `apt-cache policy` creates temporary files also in
`/var/cache/apt/` (`srcpkgcache.bin.xxxxxx` and
`srcpkgcache.bin.xxxxxx`), to then rename them (to `srcpkgcache.bin` and
`srcpkgcache.bin` respectively).

But when run as normal user this fails, but apt-cache does not remove
these files.

I do not know whether this is a problem with how my permissions are set
on `/var/cache/apt`, but I think that apt-cache should remove them anyway.


Please, let me know if you prefer me to create another bug for this issue.


Thank you,

Pier Angelo V,