Comment 13 for bug 1953610

Revision history for this message
Kellen Renshaw (krenshaw) wrote :

Verification for Impish

root@verify-lp1953610-impish:~# ### Verification
# Install updated command-not-found from -proposed
# https://wiki.ubuntu.com/Testing/EnableProposed
cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
EOF
root@verify-lp1953610-impish:~# # Update command-not-found.
apt update
apt install command-not-found
<snip>
Get:17 http://archive.ubuntu.com/ubuntu impish-proposed/universe amd64 c-n-f Metadata [1484 B]
Fetched 543 kB in 2s (268 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  python3-commandnotfound
The following packages will be upgraded:
  command-not-found python3-commandnotfound
2 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 15.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu impish-proposed/main amd64 command-not-found all 21.10.1 [5100 B]
Get:2 http://archive.ubuntu.com/ubuntu impish-proposed/main amd64 python3-commandnotfound all 21.10.1 [10.5 kB]
Fetched 15.6 kB in 0s (34.3 kB/s)
(Reading database ... 32292 files and directories currently installed.)
Preparing to unpack .../command-not-found_21.10.1_all.deb ...
Unpacking command-not-found (21.10.1) over (21.10.0) ...
Preparing to unpack .../python3-commandnotfound_21.10.1_all.deb ...
Unpacking python3-commandnotfound (21.10.1) over (21.10.0) ...
Setting up python3-commandnotfound (21.10.1) ...
Setting up command-not-found (21.10.1) ...
Scanning processes...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.
root@verify-lp1953610-impish:~# # Verify version
dpkg -l | grep command-not-found
ii command-not-found 21.10.1 all Suggest installation of packages in interactive bash sessions
ii python3-commandnotfound 21.10.1 all Python 3 bindings for command-not-found.
root@verify-lp1953610-impish:~# # Force rebuild of DB
rm -rf /var/lib/command-not-found/*
apt update
ls -lah /var/lib/command-not-found/
Hit:1 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu impish InRelease
Hit:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu impish-proposed InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
total 3.2M
drwxr-xr-x 1 root root 62 Mar 10 19:21 .
drwxr-xr-x 1 root root 506 Mar 10 19:06 ..
-rw-r--r-- 1 root root 3.2M Mar 10 19:21 commands.db
-rw-r--r-- 1 root root 3.9K Mar 10 19:21 commands.db.metadata
root@verify-lp1953610-impish:~# # Verify success
su - ubuntu
ubuntu@verify-lp1953610-impish:~$ lck
WARNING:root:could not open file '/etc/apt/sources.list.d/ubuntu-impish-proposed.list'

Command 'lck' not found, did you mean:
  command 'lcp' from deb lsh-client (2.1-13)
  command 'lcf' from deb ucf (3.0043)
  command 'zck' from deb zchunk (1.1.9+ds1-1)
  command 'ck' from deb python3-ck (1.9.4-1.1)
  command 'ack' from deb ack (3.4.0-1)
  command 'lc' from deb mono-devel (6.8.0.105+dfsg-3)
  command 'ick' from deb intercal (30:0.30-3)
Try: apt install <deb name>
ubuntu@verify-lp1953610-impish:~$ ack
WARNING:root:could not open file '/etc/apt/sources.list.d/ubuntu-impish-proposed.list'

Command 'ack' not found, but can be installed with:
apt install ack
Please ask your administrator.
ubuntu@verify-lp1953610-impish:~$ exit
logout
root@verify-lp1953610-impish:~# ## END Verification