package unattended-upgrades 1.1ubuntu1.18.04.1 failed to install/upgrade: installed unattended-upgrades package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Upgrading unattended-upgrades during shutdown fails due to postinst trying to start the unattended-upgrades service. This can break installation of other security-fixes, too.
* Unattended-upgrades is regularly SRU-d and this bug can break installing other important updates.
* The fix is not starting/stopping the init.d script in postinst which is not useful during package installation anyway.
[Test Case]
* Check prerm that invoke-rc.d is not called:
--- prerm.old 2018-06-07 01:30:55.000000000 +0200
+++ /var/lib/
@@ -40,11 +40,6 @@
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
-# Automatically added by dh_installinit/
-if [ -x "/etc/init.
- invoke-rc.d unattended-upgrades stop || exit 1
-fi
-# End automatically added section
exit 0
* Check postinst that invoke-rc.d is not called:
--- postinst.old 2018-06-07 01:30:55.000000000 +0200
+++ /var/lib/
@@ -108,8 +108,7 @@
# Automatically added by dh_installinit/
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.
- update-rc.d unattended-upgrades defaults >/dev/null
- invoke-rc.d unattended-upgrades start || exit 1
+ update-rc.d unattended-upgrades defaults >/dev/null || exit 1
fi
fi
# End automatically added section
[Regression Potential]
* Unattended-
[Original Bug Text]
update did not install.
a similar thing has happened with several apps have tried to download and the OS wont install them for some reason.
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: unattended-upgrades 1.1ubuntu1.18.04.1
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Tue Jun 26 22:26:14 2018
ErrorMessage: installed unattended-upgrades package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-06-08 (18 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitec
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.1
SourcePackage: unattended-upgrades
Title: package unattended-upgrades 1.1ubuntu1.18.04.1 failed to install/upgrade: installed unattended-upgrades package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
APT::Periodic:
APT::Periodic:
APT::Periodic:
APT::Periodic:
mtime.conffile.
Could you please confirm that the installation failure happened during shutdown? In that case this is a duplicate of LP: #1778219.
DpkgTerminalLog .txt: 18.04.1) ... upgrades. service: Connection timed out upgrades. service' for details. upgrades, action "start" failed. upgrades. service - Unattended Upgrades Shutdown system/ unattended- upgrades. service; enabled; vendor preset: enabled) upgrade( 8) slice/unattende d-upgrades. service
Setting up unattended-upgrades (1.1ubuntu1.
Failed to start unattended-
See system logs and 'systemctl status unattended-
invoke-rc.d: initscript unattended-
[0;1;32m●[0m unattended-
Loaded: loaded (/lib/systemd/
Active: [0;1;32mactive (running)[0m since Mon 2018-06-25 07:02:10 BST; 1 day 15h ago
Docs: man:unattended-
CGroup: /system.
Failed to dump process list, ignoring: No such file or directory
dpkg: error processing package unattended-upgrades (--configure):
installed unattended-upgrades package post-installation script subprocess returned error exit status 1
... however there is a little twist, since in u-u's case the debhelper-added service start is not needed and I'm fixing that.