apt doesn't always recreate missing directories in /var/cache

Bug #1356700 reported by Removed by request
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I'm using Ubuntu 14.10 dev with apt 1.0.4ubuntu6 and if /var/cache gets emptied apt doesn't recreate in all cases the missing directories for example with the command "apt-get clean". Here is an example output:

root@ubuntu:~# apt-get clean
root@ubuntu:~# rm -fr /var/cache/*
root@ubuntu:~# apt-get clean
E: Could not open lock file /var/cache/apt/archives/lock - open (2: No such file or directory)
E: Unable to lock the download directory

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote :

This is also true if you change the archives directory with Dir::Cache::archives

tags: added: amd64 trusty utopic
Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

With regards to the original problem statement, apt-get clean fails because there is nothing in /var/cache/apt. However, apt-get update works fine.

Changed in apt (Ubuntu):
importance: High → Medium
importance: Medium → Low
Revision history for this message
Brian Murray (brian-murray) wrote :

Also removing everything in /var/cache seems a bit extreme, a more concise test case would be removing things in /var/cache/apt/.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.