Make sure apt caches are up2date before trying to install aptitude
authorMichael Prokop <mika@grml.org>
Tue, 28 Oct 2014 08:00:56 +0000 (09:00 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 28 Oct 2014 08:01:45 +0000 (09:01 +0100)
commit51fbcc7c7595303dd703d13d18ccab018ec617bf
tree3e4054ce52ae97005c5beecb2e148058a5ccdf90
parent96dd50bc39ed1093afa12ed48b327f9773243b12
Make sure apt caches are up2date before trying to install aptitude

Otherwise we might run into:

| [...]
| 08:54:38 preserving etc/apt/sources.list.d/grml-stable.list
| 08:54:39 OK
| 08:54:39 aptitude binary is not available, installing to make sure further FAI actions continue to work
| 08:54:39 Reading package lists...
| 08:54:42 Building dependency tree...
| 08:54:42 Package aptitude is not available, but is referred to by another package.
| 08:54:42 This may mean that the package is missing, has been obsoleted, or
| 08:54:42 is only available from another source
| 08:54:42
| 08:54:42 E: Package 'aptitude' has no installation candidate
| 08:54:42 updatebase.GRMLBASE  FAILED with exit code 100.
| 08:54:42 Calling task_updatebase

As nowadays - with Debian/jessieu - aptitude no longer is in
a base debootstrap chroot.
etc/grml/fai/config/hooks/updatebase.GRMLBASE