Comment 15 for bug 1953610

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

Bionic verification

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