[Bug 1719630] Re: unattended-upgrades uses dpkg-vendor but doesn't depend on dpkg-dev
Balint Reczey
balint.reczey at canonical.com
Wed Mar 13 17:27:34 UTC 2019
Tested with 1.1ubuntu1.18.04.7~16.04.2 on Xenial:
root at x-uu-lp-1260041:~# dpkg -l unattended-upgrades | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==========================-============-===========================================
ii unattended-upgrades 1.1ubuntu1.18.04.7~16.04.2 all automatic installation of security upgrades
root at x-uu-lp-1260041:~# grep dpkg-dev /var/lib/dpkg/info/unattended-upgrades.* ; echo $?
1
root at x-uu-lp-1260041:~#
** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1719630
Title:
unattended-upgrades uses dpkg-vendor but doesn't depend on dpkg-dev
Status in unattended-upgrades package in Ubuntu:
Fix Released
Status in unattended-upgrades source package in Xenial:
Fix Committed
Status in unattended-upgrades source package in Artful:
Fix Released
Bug description:
[Impact]
* Unattended-upgrades may fail to install due to missing dpkg-vendor command.
* The fix is using lsb_release which is provided by dependencies.
[Test Case]
* Install unattended-upgrades, then check the maintainer scripts to not have reference to dpkg-dev:
$ grep dpkg-dev /var/lib/dpkg/info/unattended-upgrades.* ; echo $?
1
[Regression Potential]
* lsb_release may fail but that would be a different, bigger issue affecting many other programs. This is unlikely.
* Changed maintainer scripts may fail due to errors introduced with the fix. Since those scripts had extensive testing in later releases by now it looks like unlikely to occur, too.
[Original Bug Text]
in its postinst script unattended-upgrade uses dpkg-vendor from dpkg-
dev but does not depends on dpkg-dev which results in the following
error:
# apt-get update && apt-get upgrade
Installing the packages goes well, except for, getting this warning.
Setting up unattended-upgrades (0.97ubuntu1) ...
/var/lib/dpkg/info/unattended-upgrades.postinst: 65:
/var/lib/dpkg/info/unattended-upgrades.postinst: dpkg-vendor: not found
/var/lib/dpkg/info/unattended-upgrades.postinst: 66:
/var/lib/dpkg/info/unattended-upgrades.postinst: dpkg-vendor: not found
/var/lib/dpkg/info/unattended-upgrades.postinst: 124:
/var/lib/dpkg/info/unattended-upgrades.postinst: dpkg-vendor: not found
/var/lib/dpkg/info/unattended-upgrades.postinst: 125:
/var/lib/dpkg/info/unattended-upgrades.postinst: dpkg-vendor: not found
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: unattended-upgrades 0.97ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
Uname: Linux 4.13.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 26 10:01:05 2017
InstallationDate: Installed on 2013-09-03 (1483 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitecture: all
ProcEnviron:
TERM=screen-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apt.apt.conf.d.50unattended-upgrades: [modified]
mtime.conffile..etc.apt.apt.conf.d.50unattended-upgrades: 2017-09-05T01:34:04.573213
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1719630/+subscriptions
More information about the foundations-bugs
mailing list