Verified on zesty:

root@d5c73dbb41a2:/# apt-cache  policy apt    
apt:
  Installed: 1.4.6~17.04.1
  Candidate: 1.4.8
  Version table:
     1.4.8 500
        500 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 Packages
 *** 1.4.6~17.04.1 500
        500 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4 500
        500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
root@d5c73dbb41a2:/# grep Wants /lib/systemd/system/apt-daily.timer
Wants=network-online.target
root@d5c73dbb41a2:/# apt install apt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  apt-doc aptitude | synaptic | wajig dpkg-dev powermgmt-base python-apt
The following packages will be upgraded:
  apt
1 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 1096 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 apt amd64 
1.4.8 [1096 kB]
Fetched 1096 kB in 1s (850 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 4078 files and directories currently installed.)
Preparing to unpack .../archives/apt_1.4.8_amd64.deb ...
Unpacking apt (1.4.8) over (1.4.6~17.04.1) ...
Setting up apt (1.4.8) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
root@d5c73dbb41a2:/# grep Wants /lib/systemd/system/apt-daily.timer
root@d5c73dbb41a2:/# 


** Tags removed: verification-needed verification-needed-zesty
** Tags added: verification-done verification-done-zesty

-- 
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/1716973

Title:
  Don't pull in network-online.target in apt-daily.timer

Status in apt package in Ubuntu:
  Fix Released
Status in apt source package in Xenial:
  Fix Committed
Status in apt source package in Zesty:
  Fix Committed

Bug description:
  [Impact]
  apt-daily.timer is enabled on every boot and pulls in network-online.target 
via Wants and After. While nothing has an After=apt-daily.timer (or rather an 
After=timers.target) and this should thus not impact boot performance, the 
rc-local.service specifies an After=network-online.target and the login stuff 
(getty, gdm, etc) is ordered After=rc-local, thus severely increasing the time 
to login if nothing else pulls in network-online (like an LSB script).

  This works around the problem on most boots, the problem will only
  occur if the timer would have elapsed while the machine was off.

  [Test case]
  Well, the change is fairly obvious. Actually testing that is pointless, and 
depending on the system configuration, network-online.target might be pulled in 
by something else. So just look at the file and check that the 
network-online.target dependency moved to the service.

  [Regression potential]
  Literally none. We just move the dependency to the service which actually 
needs it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1716973/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to