Empty Dir::Cache::pkgcache setting not handled correctly: E: Could not open file - open (2: No such file or directory)

Bug #1243615 reported by Daniel Hahler on 2013-10-23
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Medium
Unassigned

Bug Description

I am getting the following error dialog when starting "sudo synaptic", at the end of the "Reading package lists" process:

    E: Could not open file - open (2: No such file or directory)
    E: _cache->open() failed, please report.

Using "sudo aptitude" does not produce an error.

This is caused by the following settings in /etc/apt/apt.conf.d:

    Dir::Cache::srcpkgcache "";
    Dir::Cache::pkgcache "";

I am using these settings, because I do not want apt to cache files on disk, which are already cached by the local Squid instance.

According to the apt documentation, the cache can be disabled by setting it to a blank value.

Synaptic only chokes on the 'Dir::Cache::pkgcache "";' setting.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: synaptic 0.80.2
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Wed Oct 23 11:10:28 2013
InstallationDate: Installed on 2012-05-28 (512 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
SourcePackage: synaptic
UpgradeStatus: Upgraded to saucy on 2013-10-08 (14 days ago)

Daniel Hahler (blueyed) wrote :
Changed in synaptic (Ubuntu):
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :

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

Changed in synaptic (Ubuntu):
status: New → Confirmed
Jason Heeris (detly) wrote :

This is still a problem on Trusty 14.04 (synaptic 0.81.1ubuntu1). Because I use a local apt-cacher-ng service, I have this config file:

    $ cat /etc/apt/apt.conf.d/02nocache
    Dir::Cache::srcpkgcache "";
    Dir::Cache::pkgcache "";

Upon starting, Synaptic displays a dialog box containing:

    E: Could not open file - open (2: No such file or directory)
    E: _cache->open() failed, please report.

Closing the box also closes Synaptic.

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

Other bug subscribers