[Bug 2047742] Re: /usr/lib/cnf-update-db fails

Heinrich Schuchardt 2047742 at bugs.launchpad.net
Sun Dec 31 17:11:17 UTC 2023


The problem is reproducible on an amd64 Ubuntu Noble system:

$ sudo apt-get update
Get:1 http://de.archive.ubuntu.com/ubuntu noble InRelease [240 kB]
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease    
Hit:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease   
Hit:4 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
Fetched 240 kB in 2s (146 kB/s)
Reading package lists... Done
$ sudo /usr/lib/cnf-update-db
Could not find any command metadata
Please run 'apt update' before using this command.

-- 
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/2047742

Title:
  /usr/lib/cnf-update-db fails

Status in command-not-found package in Ubuntu:
  New
Status in command-not-found source package in Noble:
  New

Bug description:
  I am running Ubuntu 24.04 on an arm64 system. /usr/lib/cnf-update-db
  fails to create the database.

  File /var/lib/apt/lists/ports.ubuntu.com_ubuntu-
  ports_dists_noble_Contents-arm64.lz4 matches the glob
  "/var/lib/apt/lists/*Contents*".

  But there is no file matching "/var/lib/apt/lists/*Commands-*".

  /usr/lib/cnf-update-db fails to create the database because it tries
  to read "/var/lib/apt/lists/*Commands-*".

  When patching the script to force reading *Contents* a database is
  created in /var/lib/command-not-found.db. And with that database I
  receive hints which packages are missing.


  Best regards

  Heinrich

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




More information about the foundations-bugs mailing list