Public bug reported:

On Ubuntu Xenial, apt-get fails silently when security update server
cannot be reached. This state could be detected by scanning the apt-get
output afterwards. But manually adding workarounds to each apt-get
invocation in production automation is prone to error, thus leaving
machines without security updates.

Expected behaviour (e.g.):
* 0 - all OK
* 1 - temporary failure (e.g. network)
* 2 - permanent failure


Test:
* Change your update server IP in /etc/hosts to something unreachable
* Run apt-get update (might take a while)
* Check exit status


$ lsb_release -r -d
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
rfiedler@n3ahit1403:~$ 

ii  apt                                 1.2.24
amd64        commandline package manager

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  apt-get update silently fails fetching security updates

Status in apt package in Ubuntu:
  New

Bug description:
  On Ubuntu Xenial, apt-get fails silently when security update server
  cannot be reached. This state could be detected by scanning the apt-
  get output afterwards. But manually adding workarounds to each apt-get
  invocation in production automation is prone to error, thus leaving
  machines without security updates.

  Expected behaviour (e.g.):
  * 0 - all OK
  * 1 - temporary failure (e.g. network)
  * 2 - permanent failure

  
  Test:
  * Change your update server IP in /etc/hosts to something unreachable
  * Run apt-get update (might take a while)
  * Check exit status

  
  $ lsb_release -r -d
  Description:    Ubuntu 16.04.3 LTS
  Release:        16.04
  rfiedler@n3ahit1403:~$ 

  ii  apt                                 1.2.24
  amd64        commandline package manager

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1742695/+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