[Bug 1396787] Re: checking trust of archives eats a lot of cpu
Launchpad Bug Tracker
1396787 at bugs.launchpad.net
Fri Jul 6 15:38:27 UTC 2018
This bug was fixed in the package unattended-upgrades - 1.4ubuntu1
---------------
unattended-upgrades (1.4ubuntu1) cosmic; urgency=medium
* Merge from Debian unstable
- Remaining changes:
- unattended-upgrades: Do not automatically upgrade the development
release of Ubuntu unless Unattended-Upgrade::DevRelease is true.
- Dropped changes, included in Debian:
- Stop rewriting test apt.conf in test_untrusted.py.
- Fix test_on_battery on Ubuntu development releases
unattended-upgrades (1.4) unstable; urgency=medium
* Skip starting init.d script in debhelper-generated postinst part
(LP: #1778800)
* Use "deb-systemd-invoke start" instead of "systemctl start" in postinst.
It is used only in a workaround applied for a Debian bug and for upgrading
from pre-bionic versions.
* Clear cache when autoremoval is invalid for a package set marked for
removal (LP: #1779157)
* Clear cache after failed commits to return from a possibly invalid state
* Unlock for dpkg operations with apt_pkg.pkgsystem_unlock_inner() when it
is available, also stop running when reacquiring the lock fails.
Thanks to to Julian Andres Klode for original partial patch
* Use fully qualified domain name in email subject.
* Send email about all failures and crashes (Closes: #898607)
* Add short textual summary of the results in the summary email
* Recommend overriding configuration in a separate file.
This can be better than changing /etc/apt/apt.conf.d/50unattended-upgrades
because package updates don't conflict with local changes this way.
* Adjust candidates only for packages to be possibly installed
(Closes: #892028, #899366) (LP: #1396787)
* Add Unattended-Upgrade::OnlyOnACPower config file example for all
distributions
* debian/control: Drop redundant Testsuite: autopkgtest field to keep Lintian
happy
* Bump Standards-Version to 4.1.4
* Add debian/tests/upgrade-all-security to install all current security
updates. On development releases this tests latest stable, on stable
releases it tests the release itself.
* Skip updates on metered connections (Closes: #855570)
* Quote shell variables in autopkgtest
* Stop u-u early when it should stop later anyway
* Measure time for --dry-run and after all updates are installed in
autopkgtests
* Filter out packages cheaper when they are not from allowed origins
* Collect autoremovable packages, too, when looking for upgradable ones
-- Balint Reczey <rbalint at ubuntu.com> Fri, 06 Jul 2018 13:33:29 +0200
** Changed in: unattended-upgrades (Ubuntu)
Status: New => Fix Released
--
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/1396787
Title:
checking trust of archives eats a lot of cpu
Status in unattended-upgrades package in Ubuntu:
Fix Released
Bug description:
(System: Ubuntu 14.04, up to date packages)
I noticed that unattended-upgrades spends a significant amount of time
in phases where it runs at 100% cpu. On a slower machine (core 2 t7200
2GHz) this goes on for minutes rather than seconds. This interferes
with using the machine for other tasks.
Using the --debug option to unattended-upgrades shows that the program
outputs a lot of lines like the following during these 100% cpu
phases:
matching 'a'='trusty-updates' against '<Origin component:'universe'
archive:'trusty-updates' origin:'Ubuntu' label:'Ubuntu'
site:'de.archive.ubuntu.com' isTrusted:True>
From this output I guess the operation executed is not so complicated
that it should require so much cpu power. ??
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unattended-upgrades 0.82.1ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-40.69-generic 3.13.11.10
Uname: Linux 3.13.0-40-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
Date: Wed Nov 26 21:53:57 2014
InstallationDate: Installed on 2014-08-28 (90 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=de_DE.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/1396787/+subscriptions
More information about the foundations-bugs
mailing list