Synaptic can't install a package if /var/cache/apt/archives is empty

Bug #1591620 reported by dhenry
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My /var/cache/apt/archives directory is mounted as a tmpfs partition, therefore after a fresh boot, the directory is empty.

In such a situation, synaptic fails to install any package with the following error:

E: Could not open lock file /var/cache/apt/archives/lock - open (2: No such file or directory)
E: Could not open file descriptor -1
E: Unable to lock the download directory

Workaround to repair synaptic for current session:

sudo mkdir -p /var/cache/apt/archives/partial
sudo touch /var/cache/apt/archives/lock
sudo chmod 640 /var/cache/apt/archives/lock

synaptic should silently create those files if they are missing, instead of failing, like apt does.

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

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

Changed in synaptic (Ubuntu):
status: New → Confirmed
Keith (dkstathem)
summary: - Synaptic can't install a package if /var/cache/apt/archives does not
- exist
+ Synaptic can't install a package if /var/cache/apt/archives is empty
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.