[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#874669: apt-file reports empty cache; 'apt update' does not fill the cache



Package: apt-file
Version: 3.1.4
Severity: important

Dear Maintainer,

The cache is reported empty and the suggested way to fill the cache does not work anymore:

Sample:
    $ apt-file search test
    E: The cache is empty. You need to run "apt update" first.

    $ apt update
    Reading package lists... Done
    W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
    E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
    E: Unable to lock directory /var/lib/apt/lists/
    W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
    W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

    $ sudo apt update
    Hit:1 [snip] ./ InRelease
    Hit:2 [snip] ascii InRelease
    Hit:3 [snip] ascii-updates InRelease
    Hit:5 [snip] ascii-backports InRelease
    Hit:4 [snip] ascii-security InRelease
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    All packages are up to date.

    $ apt-file search test
    E: The cache is empty. You need to run "apt update" first.

It is intented that 'apt-file update' can only be run as root?

BR
Marko

*** End of the template - remove these template lines ***


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux testing/unstable
Release:	testing/unstable
Codename:	n/a
Architecture: x86_64

Kernel: Linux 4.11.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt-file depends on:
ii  apt                      1.4.7
ii  libapt-pkg-perl          0.1.32
ii  liblist-moreutils-perl   0.416-1+b1
ii  libregexp-assemble-perl  0.36-1
ii  perl                     5.24.1-3+deb9u1

apt-file recommends no packages.

apt-file suggests no packages.

-- no debconf information


Reply to: