[Bug 1843606] Re: command-not-found unable to open database file (because it is readable only by root)

Paul Donohue 1843606 at bugs.launchpad.net
Sun Jan 4 15:33:40 UTC 2026


*** This bug is a duplicate of bug 1953610 ***
    https://bugs.launchpad.net/bugs/1953610

** This bug is no longer a duplicate of bug 1824000
   command-not-found crashes: unable to open database file (stack trace)
** This bug has been marked a duplicate of bug 1953610
   cnf-update-db creates unreadable database if wrong umask

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/1843606

Title:
  command-not-found unable to open database file (because it is readable
  only by root)

Status in command-not-found package in Ubuntu:
  Confirmed

Bug description:
  On Ubuntu 19.04 I repeatedly encounter command-not-found crashing
  because it is unable to open its database.

  Inspection reveals that files in /var/lib/command-not-found are owned
  by root and have permissions set so that they are readable only by the
  owner.

  Deleting these files or changing their permission to be universally
  readable fixes the issue.

  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: command-not-found 18.10.0~pre2
  ProcVersionSignature: Ubuntu 5.0.0-27.28-generic 5.0.21
  Uname: Linux 5.0.0-27-generic x86_64
  ApportVersion: 2.20.10-0ubuntu27.1
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Wed Sep 11 17:48:29 2019
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-12-12 (2098 days ago)
  InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  PackageArchitecture: all
  SourcePackage: command-not-found
  UpgradeStatus: Upgraded to disco on 2019-06-12 (91 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1843606/+subscriptions




More information about the foundations-bugs mailing list