Here is the proble. Smart control not installed. Fixed
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -t long /dev/sda
[sudo] password for tomgirl:
sudo: smartctl: command not found
tomgirl@tomgirl-OptiPlex-790 ~ $ smartctl -t long /dev/sda
The program 'smartctl' is currently not installed. You can install it by typing:
sudo apt install smartmontools
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo apt install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gsmartcontrol smart-notifier gpg
Recommended packages:
mailx | mailutils
The following NEW packages will be installed:
smartmontools
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 446 kB of archives.
After this operation, 1,526 kB of additional disk space will be used.
Get:1
http://archive.ubuntu.com/ubuntu xenial-updates/main i386 smartmontools i386 6.4+svn4214-1ubuntu0.1 [446 kB]
Fetched 446 kB in 1s (372 kB/s)
Selecting previously unselected package smartmontools.
(Reading database ... 237861 files and directories currently installed.)
Preparing to unpack .../smartmontools_6.4+svn4214-1ubuntu0.1_i386.deb ...
Unpacking smartmontools (6.4+svn4214-1ubuntu0.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (229-4ubuntu21) ...
Setting up smartmontools (6.4+svn4214-1ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21) ...
tomgirl@tomgirl-OptiPlex-790 ~ $ ^C