Noble install image does not have command-not-found database files

Bug #2042746 reported by Mike Ferreira
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
command-not-found
Fix Released
Undecided
Unassigned

Bug Description

Noble 24.04 Server edition daily dated 2023.11.03...

After install, type:
...
unknown-command

Error message:
Could not find command-not-found database. Run 'sudo apt update' to populate it.
unknown-command: command not found.
...

'apt update' does not populate it...

...
ls /var/lib/command-not-found
<no output = empty>
...

Should have files commands.db & commands.db.metadata, but doesn't. The folder is empty...

...
apt list command-not-found --installed
Listing... Done
command-not-found/noble,now 23.04.0 all [installed,automatic]
...

Reinstalling 'command-not-found' package does not create the files either...

So it seems that this package is broken, and not populating /var/lib/command-not-found with commands.db & commands.db.metadata files.

Since it was broken, and not working, that is why the system image that the installer extracted and copied over (via the curtin rsync) for the installation resulted in an empty folder for that.

This package needs to be repaired, before the image for Noble can by repaired, to fix it for the Noble Installer...

Tags: iso-testing
Revision history for this message
Mike Ferreira (mafoelffen) wrote :
description: updated
Changed in command-not-found:
status: New → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote :

Still same problem with Noble installed from: Ubuntu 24.04 "Noble Numbat" - Daily amd64 (20231115.1)

corrado@corrado-n2-nn-1115:~$ entangle
Could not find command-not-found database. Run 'sudo apt update' to populate it.
entangle: command not found
corrado@corrado-n2-nn-1115:~$ apt list entangle
Listing... Done
entangle/noble 3.0-4 amd64
corrado@corrado-n2-nn-1115:~$ apt policy entangle
entangle:
  Installed: (none)
  Candidate: 3.0-4
  Version table:
     3.0-4 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
corrado@corrado-n2-nn-1115:~$

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2042746

tags: added: iso-testing
Revision history for this message
corrado venturini (corradoventu) wrote :

On my Ubuntu Noble problem seems disappeared:
corrado@corrado-n4-nn-0125:~$ pipponi
pipponi: command not found
corrado@corrado-n4-nn-0125:~$ entangle
Command 'entangle' not found, but can be installed with:
sudo apt install entangle
corrado@corrado-n4-nn-0125:~$ ls /var/lib/command-not-found
commands.db commands.db.metadata
corrado@corrado-n4-nn-0125:~$ inxi -Sxc
System:
  Host: corrado-n4-nn-0125 Kernel: 6.6.0-14-generic arch: x86_64 bits: 64
    compiler: N/A Desktop: GNOME v: 45.3 Distro: Ubuntu 24.04 (Noble Numbat)
corrado@corrado-n4-nn-0125:~$

Changed in command-not-found:
status: Confirmed → Fix Released
Revision history for this message
Mike Ferreira (mafoelffen) wrote :

Does this commit also lead into or fix the newly reported Security "Command Not Found" db Vulnerability of introducing malware through the Ubuntu 'Command Not Found'? Or is that being handled separately?

Just asking...

Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

this fix only concerns the absence of the database used by command-not-found

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.