root@lp1953610-bionic:~# umask 0027 root@lp1953610-bionic:~# dpkg -l | grep command-not-found ii command-not-found 18.04.5 all Suggest installation of packages in interactive bash sessions ii command-not-found-data 18.04.5 amd64 Set of data files for command-not-found. ii python3-commandnotfound 18.04.5 all Python 3 bindings for command-not-found. root@lp1953610-bionic:/etc/apt/sources.list.d# apt update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Hit:3 http://ppa.launchpad.net/krenshaw/lp1953610/ubuntu bionic InRelease Hit:4 http://archive.canonical.com/ubuntu bionic InRelease Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [23.7 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [7312 B] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [580 B] Fetched 639 kB in 2s (395 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 3 packages can be upgraded. Run 'apt list --upgradable' to see them. root@lp1953610-bionic:/etc/apt/sources.list.d# ls -lah /var/lib/command-not-found/ total 28K drwxr-xr-x 1 root root 62 Feb 15 16:01 . drwxr-xr-x 1 root root 572 Jan 28 19:35 .. -rw-r----- 1 root root 24K Feb 15 16:01 commands.db -rw-r----- 1 root root 201 Feb 15 16:01 commands.db.metadata root@lp1953610-bionic:/etc/apt/sources.list.d# cd root@lp1953610-bionic:~# apt list --upgradable Listing... Done command-not-found/bionic 18.04.6 all [upgradable from: 18.04.5] command-not-found-data/bionic 18.04.6 amd64 [upgradable from: 18.04.5] python3-commandnotfound/bionic 18.04.6 all [upgradable from: 18.04.5] root@lp1953610-bionic:~# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: libfreetype6 Use 'apt autoremove' to remove it. The following packages will be upgraded: command-not-found command-not-found-data python3-commandnotfound 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1049 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://ppa.launchpad.net/krenshaw/lp1953610/ubuntu bionic/main amd64 command-not-found all 18.04.6 [14.3 kB] Get:2 http://ppa.launchpad.net/krenshaw/lp1953610/ubuntu bionic/main amd64 python3-commandnotfound all 18.04.6 [18.1 kB] Get:3 http://ppa.launchpad.net/krenshaw/lp1953610/ubuntu bionic/main amd64 command-not-found-data amd64 18.04.6 [1017 kB] Fetched 1049 kB in 2s (493 kB/s) (Reading database ... 39254 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@lp1953610-bionic:~# ls -lah /var/lib/command-not-found/ total 28K drwxr-xr-x 1 root root 62 Feb 15 16:01 . drwxr-xr-x 1 root root 572 Jan 28 19:35 .. -rw-r----- 1 root root 24K Feb 15 16:01 commands.db -rw-r----- 1 root root 201 Feb 15 16:01 commands.db.metadata root@lp1953610-bionic:~# rm -rf /var/lib/command-not-found/* root@lp1953610-bionic:~# apt update Hit:1 http://ppa.launchpad.net/krenshaw/lp1953610/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Hit:3 http://archive.canonical.com/ubuntu bionic InRelease Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease Fetched 242 kB in 1s (374 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. root@lp1953610-bionic:~# ls -lah /var/lib/command-not-found/ total 28K drwxr-xr-x 1 root root 62 Feb 15 16:06 . drwxr-xr-x 1 root root 572 Jan 28 19:35 .. -rw-r--r-- 1 root root 24K Feb 15 16:06 commands.db -rw-r--r-- 1 root root 201 Feb 15 16:06 commands.db.metadata