Configuration file '/etc/default/smartmontools'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** smartmontools (Y/I/N/O/D/Z) [default=N] ? d
sh: 1: pager: not found
diff: standard output: Broken pipe
dpkg: error processing package smartmontools (--configure):
conffile difference visualizer subprocess returned error exit status 127
This really looks like an environment issue:
Setting up smartmontools (7.1-1build1) ...
Configuration file '/etc/default/ smartmontools'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** smartmontools (Y/I/N/O/D/Z) [default=N] ? d
sh: 1: pager: not found
diff: standard output: Broken pipe
dpkg: error processing package smartmontools (--configure):
conffile difference visualizer subprocess returned error exit status 127
Due to missing /bin/pager:
(c)rafaeldtinoc o@devel: ~$ which pager o@devel: ~$ ls -lah /bin/pager es/pager o@devel: ~$ ls -lah /etc/alternativ es/pager es/pager -> /usr/bin/less
(c)rafaeldtinoc
lrwxrwxrwx 1 root root 23 Apr 24 21:39 /bin/pager -> /etc/alternativ
(c)rafaeldtinoc
lrwxrwxrwx 1 root root 13 Apr 24 21:39 /etc/alternativ
Try checking your system for pager:
(c)rafaeldtinoc o@devel: ~$ sudo update-alternatives --query pager man/man1/ pager.1. gz
Name: pager
Link: /usr/bin/pager
Slaves:
pager.1.gz /usr/share/
Status: auto
Best: /usr/bin/less
Value: /usr/bin/less
Alternative: /bin/more man/man1/ more.1. gz
Priority: 50
Slaves:
pager.1.gz /usr/share/
Alternative: /usr/bin/less man/man1/ less.1. gz
Priority: 77
Slaves:
pager.1.gz /usr/share/
and fixing it!