The service is started by a (persistent) timer. The timer runs at 0600
and 1800 (+/-13). Apparently that timer elapsed before your boot.
That said, the reason it starts before a login manager is that it does
not depend on a login manager - why would it, it does not need that. And
systemd starts everything as soon as possible, and as parallel as
possible.
As you can see in the plot, there is less than a second difference
between starting apt-daily and the login manager. But it seems
lightdm.service was waiting for gpu-manager.service, so there was no
delay at all.
Of course, you seem to be running an HDD. That's a niche use case not
well supported by systemd and performance there will of course be worse
than on an SSD, due to the parallel processes causing a lot of seeking.
But that's a general problem with HDDs, and not apt's problem, so I'm
closing this.
Also: You really want to switch to an SSD.
** Changed in: apt (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1662327
Title:
apt-daily.service was slowing down one system startup
Status in apt package in Ubuntu:
Invalid
Bug description:
I don't understand why this service started before the light-dm invite
was displayed to the end user.
Up to the light-dm invite, the system needed roughly twice the time it
usualy needs.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt 1.2.19
ProcVersionSignature: Ubuntu 4.4.0-62.83-generic 4.4.40
Uname: Linux 4.4.0-62-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Feb 6 21:28:54 2017
InstallationDate: Installed on 2017-02-01 (4 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64
(20160719)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.logrotate.d.apt: 2017-02-03T22:39:52.394852
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1662327/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp