Install error "package1 : Depends: package2 but it is not going to be installed"

Steffen Grunewald steffen.grunewald at aei.mpg.de
Mon Jun 28 10:06:27 CEST 2021


On Fri, 2021-06-25 at 20:16:32 +0000, Taras Damián Enrique via linux-fai wrote:
> > (a) do not install package1 at all, just package2 - and fill in after
> >   rebooting (ouch, that wouldn't be FA anymore)
> > (b) change package installation order to have package2 (which is an
> >   implicit dependency right now) installed before even thinking about
> >   installing package1
> > (c) move installation of the whole bunch, or at least part of it, into
> >   a hook
> 
> Hi Steffen,
> 
> I have been using FAI for just a couple of months, but in my opinion 
> your best option could be (b).
> You could achieve this by writing two simple scripts to be run by the 
> 'configure task' (put them under the proper directory in $FAI/scripts), 
> lets say '10-scripta' installs package2 and '20-scriptb' installs package1.
> As they are run in alphabetical order you will get package1 installed 
> after package2.

There's a possible minor problem with this - both packages get installed by
different classes (and there's no 1:1 mapping, i.e., package2 is listed
for multiple classes, while package1 only shows up for one of them IIRC).
Since we're somewhat bound to class ordering rules, this may require more
than just two scripts (and you probably mean hooks).

But you seem to be right, I'll have a closer look into this.

Since this kind of error usually signalizes a bigger problem (with the
packages, and/or the installation logic) it's certainly worth investigating.


Thanks,
 Steffen

-- 
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1 * D-14476 Potsdam-Golm * Germany
~~~
Fon: +49-331-567 7274
Mail: steffen.grunewald(at)aei.mpg.de
~~~


More information about the linux-fai mailing list