[Bug 1721294] Re: Unattended upgrade fails with "Error in function"
Marius Gedminas
marius at gedmin.as
Wed Nov 15 11:55:31 UTC 2017
This happened again, while trying to upgrade libpq-dev libpq5
postgresql-9.3 postgresql-client-9.3.
Running `unattended-upgrade -v` over an interactive SSH session
succeeded.
I'm not sure what's different. Locale? The successful installation log
contains some non-ASCII characters, specifically dpkg's
(Skaitoma duomenų bazė ... 53857 files and directories currently
installed.)
But if that were the problem, then every upgrade would fail, not just
some of them. (Besides, if the locale were missing from the cron
environment, dpkg wouldn't be using translations.)
--
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/1721294
Title:
Unattended upgrade fails with "Error in function"
Status in unattended-upgrades package in Ubuntu:
Confirmed
Bug description:
This is the cron email I received today:
From: root <root at iv-4.pov.lt>
To: root at pov.lt
Subject: unattended-upgrades result for 'iv-4.pov.lt': 'False'
Date: Wed, 4 Oct 2017 03:40:19 +0300 (EEST)
Unattended upgrade returned: False
Packages that attempted to upgrade:
ca-certificates libidn11 libnss3 libnss3-nssdb
Package installation log:
Error in function:
Unattended-upgrades log:
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=trusty-security', 'o=UbuntuESM,a=trusty', 'o=Ubuntu,a=trusty-security', 'o=Ubuntu,a=trusty-updates', 'origin=LP-PPA-pov,suite=trusty']
Packages that will be upgraded: ca-certificates libidn11 libnss3 libnss3-nssdb
Writing dpkg log to '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2017-10-04_03:40:17.411277.log'
Installing the upgrades failed!
error message: 'installArchives() failed'
dpkg returned a error! See '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2017-10-04_03:40:17.411277.log' for details
Packages that are auto removed: ''
Packages auto-removed
The named log file, var/log/unattended-upgrades/unattended-upgrades-
dpkg_2017-10-04_03:40:17.411277.log contains only this:
Error in function:
That's it.
Now given that ca-certificates is involved, I suspect this may be
related to non-ASCII filenames (see bug 1554365), but unlike that bug,
here the upgrade fails instead of succeeding, and the actual error is
not shown anywhere.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unattended-upgrades 0.82.1ubuntu2.5
Uname: Linux 2.6.32-042stab124.2 x86_64
ApportVersion: 2.14.1-0ubuntu3.25
Architecture: amd64
Date: Wed Oct 4 18:54:54 2017
PackageArchitecture: all
ProcEnviron:
LC_CTYPE=lt_LT.UTF-8
TERM=xterm-256color
PATH=(custom, no user)
LANG=lt_LT.UTF-8
SHELL=/bin/bash
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1721294/+subscriptions
More information about the foundations-bugs
mailing list