apt stops working if /var/cache erased
Bug #18391 reported by
66dny9r02
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Medium
|
Matt Zimmerman |
Bug Description
Enhancement priority:
According to the Filesystem Hierarchy Standard, files in /var/cache can safely
be deleted without data loss. I suppose this would mean that applications should
be able to handle such a data loss without too much problems.
At this moment, apt stops working if /var/cache/apt is removed. When I made the
/var/cache/apt, /var/cache/archives and /var/cache/
it could successfully reload its sources again.
I'd suggest to add a check in apt to see whether its directories in /var/cache
exist and are usable, and if not, to try to make them.
To post a comment you must log in.
/var/cache/apt is not a file; it's a directory. The FHS makes this distinction
for good reason. You are free to remove files in order to free up space, but
leave the directories and their permissions unchanged.