root@verify-lp1953610-bionic:~# ### Verification
root@verify-lp1953610-bionic:~# # Install updated command-not-found from -proposed
root@verify-lp1953610-bionic:~# # https://wiki.ubuntu.com/Testing/EnableProposed
root@verify-lp1953610-bionic:~# 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-bionic:~# # Update command-not-found.
root@verify-lp1953610-bionic:~# apt update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 Packages [105 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted Translation-en [17.1 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [163 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [33.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 Packages [2216 B]
Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en [788 B]
Get:13 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [11.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [6332 B]
Fetched 824 kB in 2s (528 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@verify-lp1953610-bionic:~# apt install command-not-found
Reading package lists... Done
Building dependency tree
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:
command-not-found-data python3-commandnotfound
The following packages will be upgraded:
command-not-found command-not-found-data python3-commandnotfound
3 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 1023 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 bionic-proposed/main amd64 command-not-found all 18.04.6 [5208 B]
Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 python3-commandnotfound all 18.04.6 [9032 B]
Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 command-not-found-data amd64 18.04.6 [1009 kB]
Fetched 1023 kB in 1s (785 kB/s)
(Reading database ... 29000 files and directories currently installed.)
Preparing to unpack .../command-not-found_18.04.6_all.deb ...
Unpacking command-not-found (18.04.6) over (18.04.5) ...
Preparing to unpack .../python3-commandnotfound_18.04.6_all.deb ...
Unpacking python3-commandnotfound (18.04.6) over (18.04.5) ...
Preparing to unpack .../command-not-found-data_18.04.6_amd64.deb ...
Unpacking command-not-found-data (18.04.6) over (18.04.5) ...
Setting up command-not-found-data (18.04.6) ...
Setting up python3-commandnotfound (18.04.6) ...
Setting up command-not-found (18.04.6) ...
root@verify-lp1953610-bionic:~# # Verify version
root@verify-lp1953610-bionic:~# dpkg -l | grep command-not-found
ii command-not-found 18.04.6 all Suggest installation of packages in interactive bash sessions
ii command-not-found-data 18.04.6 amd64 Set of data files for command-not-found.
ii python3-commandnotfound 18.04.6 all Python 3 bindings for command-not-found.
root@verify-lp1953610-bionic:~# # Force rebuild of DB
root@verify-lp1953610-bionic:~# rm -rf /var/lib/command-not-found/*
root@verify-lp1953610-bionic:~# apt update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 242 kB in 1s (266 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@verify-lp1953610-bionic:~# ls -lah /var/lib/command-not-found/
total 28K
drwxr-xr-x 1 root root 62 Mar 10 19:36 .
drwxr-xr-x 1 root root 542 Mar 10 19:27 ..
-rw-r--r-- 1 root root 24K Mar 10 19:36 commands.db
-rw-r--r-- 1 root root 800 Mar 10 19:36 commands.db.metadata
root@verify-lp1953610-bionic:~# # Verify success
root@verify-lp1953610-bionic:~# su - ubuntu
ubuntu@verify-lp1953610-bionic:~$ lck
WARNING:root:could not open file '/etc/apt/sources.list.d/ubuntu-bionic-proposed.list'
lck: command not found
ubuntu@verify-lp1953610-bionic:~$ ack
WARNING:root:could not open file '/etc/apt/sources.list.d/ubuntu-bionic-proposed.list'
Command 'ack' not found, did you mean:
command 'act' from snap act (0.3.2)
command 'ark' from snap ark (21.12.2)
See 'snap info <snapname>' for additional versions.
ubuntu@verify-lp1953610-bionic:~$ exit
logout
root@verify-lp1953610-bionic:~# ## END Verification
Bionic verification
root@verify- lp1953610- bionic: ~# ### Verification lp1953610- bionic: ~# # Install updated command-not-found from -proposed lp1953610- bionic: ~# # https:/ /wiki.ubuntu. com/Testing/ EnableProposed lp1953610- bionic: ~# cat <<EOF >/etc/apt/ sources. list.d/ ubuntu- $(lsb_release -cs)-proposed.list archive. ubuntu. com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe lp1953610- bionic: ~# # Update command-not-found. lp1953610- bionic: ~# apt update security. ubuntu. com/ubuntu bionic-security InRelease archive. ubuntu. com/ubuntu bionic InRelease [242 kB] archive. ubuntu. com/ubuntu bionic-updates InRelease archive. ubuntu. com/ubuntu bionic-backports InRelease archive. ubuntu. com/ubuntu bionic-proposed InRelease [242 kB] archive. ubuntu. com/ubuntu focal-backports InRelease archive. ubuntu. com/ubuntu bionic- proposed/ restricted amd64 Packages [105 kB] archive. ubuntu. com/ubuntu bionic- proposed/ restricted Translation-en [17.1 kB] archive. ubuntu. com/ubuntu bionic- proposed/ main amd64 Packages [163 kB] archive. ubuntu. com/ubuntu bionic- proposed/ main Translation-en [33.5 kB] archive. ubuntu. com/ubuntu bionic- proposed/ multiverse amd64 Packages [2216 B] archive. ubuntu. com/ubuntu bionic- proposed/ multiverse Translation-en [788 B] archive. ubuntu. com/ubuntu bionic- proposed/ universe amd64 Packages [11.6 kB] archive. ubuntu. com/ubuntu bionic- proposed/ universe Translation-en [6332 B] lp1953610- bionic: ~# apt install command-not-found not-found- data python3- commandnotfound not-found- data python3- commandnotfound archive. ubuntu. com/ubuntu bionic- proposed/ main amd64 command-not-found all 18.04.6 [5208 B] archive. ubuntu. com/ubuntu bionic- proposed/ main amd64 python3- commandnotfound all 18.04.6 [9032 B] archive. ubuntu. com/ubuntu bionic- proposed/ main amd64 command- not-found- data amd64 18.04.6 [1009 kB] not-found_ 18.04.6_ all.deb ... commandnotfound _18.04. 6_all.deb ... commandnotfound (18.04.6) over (18.04.5) ... not-found- data_18. 04.6_amd64. deb ... not-found- data (18.04.6) over (18.04.5) ... not-found- data (18.04.6) ... commandnotfound (18.04.6) ... lp1953610- bionic: ~# # Verify version lp1953610- bionic: ~# dpkg -l | grep command-not-found not-found- data 18.04.6 amd64 Set of data files for command-not-found. commandnotfound 18.04.6 all Python 3 bindings for command-not-found. lp1953610- bionic: ~# # Force rebuild of DB lp1953610- bionic: ~# rm -rf /var/lib/ command- not-found/ * lp1953610- bionic: ~# apt update security. ubuntu. com/ubuntu bionic-security InRelease archive. ubuntu. com/ubuntu bionic InRelease [242 kB] archive. ubuntu. com/ubuntu bionic-updates InRelease archive. ubuntu. com/ubuntu bionic-backports InRelease archive. ubuntu. com/ubuntu bionic-proposed InRelease archive. ubuntu. com/ubuntu focal-backports InRelease lp1953610- bionic: ~# ls -lah /var/lib/ command- not-found/ db.metadata lp1953610- bionic: ~# # Verify success lp1953610- bionic: ~# su - ubuntu verify- lp1953610- bionic: ~$ lck sources. list.d/ ubuntu- bionic- proposed. list'
root@verify-
root@verify-
root@verify-
> # Enable Ubuntu proposed archive
> deb http://
> EOF
root@verify-
root@verify-
Hit:1 http://
Get:2 http://
Hit:3 http://
Hit:4 http://
Get:5 http://
Hit:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 824 kB in 2s (528 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@verify-
Reading package lists... Done
Building dependency tree
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:
command-
The following packages will be upgraded:
command-not-found command-
3 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 1023 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://
Get:2 http://
Get:3 http://
Fetched 1023 kB in 1s (785 kB/s)
(Reading database ... 29000 files and directories currently installed.)
Preparing to unpack .../command-
Unpacking command-not-found (18.04.6) over (18.04.5) ...
Preparing to unpack .../python3-
Unpacking python3-
Preparing to unpack .../command-
Unpacking command-
Setting up command-
Setting up python3-
Setting up command-not-found (18.04.6) ...
root@verify-
root@verify-
ii command-not-found 18.04.6 all Suggest installation of packages in interactive bash sessions
ii command-
ii python3-
root@verify-
root@verify-
root@verify-
Hit:1 http://
Get:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 http://
Fetched 242 kB in 1s (266 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@verify-
total 28K
drwxr-xr-x 1 root root 62 Mar 10 19:36 .
drwxr-xr-x 1 root root 542 Mar 10 19:27 ..
-rw-r--r-- 1 root root 24K Mar 10 19:36 commands.db
-rw-r--r-- 1 root root 800 Mar 10 19:36 commands.
root@verify-
root@verify-
ubuntu@
WARNING:root:could not open file '/etc/apt/
lck: command not found verify- lp1953610- bionic: ~$ ack sources. list.d/ ubuntu- bionic- proposed. list'
ubuntu@
WARNING:root:could not open file '/etc/apt/
Command 'ack' not found, did you mean:
command 'act' from snap act (0.3.2)
command 'ark' from snap ark (21.12.2)
See 'snap info <snapname>' for additional versions.
ubuntu@ verify- lp1953610- bionic: ~$ exit lp1953610- bionic: ~# ## END Verification
logout
root@verify-