dpkg: conffile difference visualizer subprocess returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Debian) |
New
|
Unknown
|
|||
dpkg (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Groovy |
Invalid
|
High
|
Unassigned | ||
less (Debian) |
Fix Released
|
Unknown
|
|||
less (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Focal |
Fix Released
|
Critical
|
Brian Murray | ||
Groovy |
Fix Released
|
Critical
|
Unassigned | ||
smartmontools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Groovy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
During a release upgrade to Ubuntu 20.04 LTS some users are not able to view the differences made to a configuration file during the upgrade process. This creates a bad user experience and leads to extra crash reports.
[Test Case]
1) Upgrade from a not usr-merged system (Ubuntu 16.04 LTS) to Ubuntu 18.04 LTS
2) Install the smartmontools package
3) Edit /etc/default/
4) Upgrade to Ubuntu 20.04 LTS (this requires do-release-upgrade -d as 20.04.1 is not out yet so release upgrades are not enabled)
To test the fix in the version of less from focal-proposed some hackery of the release upgrader code will be necessary as it disables proposed during the upgrade process. After enabling -proposed for bionic you'll want to run do-release-upgrade -d, then cancel the upgrade. After which you can cd to /tmp/ubuntu-
[Regression Potential]
None, as we are just calling update-alternatives in the preinst of less.
Issue occurred on upgrade from 19.10 to 20.04
ProblemType: PackageDistroRe
Package: smartmontools 7.1-1build1
ProcVersionSign
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
Date: Fri Apr 24 21:33:08 2020
ErrorMessage: conffile difference visualizer subprocess returned error exit status 127
InstallationDate: Installed on 2011-06-18 (3233 days ago)Installatio
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2SourcePackage: smartmontools
Title: package smartmontools 7.1-1build1 failed to install/upgrade: conffile difference visualizer subprocess returned error exit status 127
UpgradeStatus: Upgraded to focal on 2020-04-25 (0 days ago)
mtime.conffile.
mtime.conffile.
tags: | removed: need-duplicate-check |
information type: | Public → Public Security |
information type: | Public Security → Public |
tags: | added: rls-ff-incoming |
Changed in dpkg (Debian): | |
status: | Unknown → New |
Changed in less (Ubuntu): | |
importance: | Undecided → Critical |
tags: | removed: rls-ff-incoming |
tags: | added: id-5ed9172aa6b60a1ab1f596d3 |
Changed in less (Ubuntu Groovy): | |
status: | Triaged → In Progress |
Changed in less (Debian): | |
status: | Unknown → New |
Changed in less (Debian): | |
status: | New → Fix Committed |
Changed in dpkg (Ubuntu Focal): | |
status: | Confirmed → Invalid |
Changed in dpkg (Ubuntu Groovy): | |
status: | Triaged → Invalid |
Changed in smartmontools (Ubuntu Focal): | |
status: | Confirmed → Invalid |
description: | updated |
Changed in less (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | none → ubuntu-20.04.1 |
status: | Triaged → In Progress |
Changed in less (Debian): | |
status: | Fix Committed → Fix Released |
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!