install_packages fails at "aptitude --allow-change-held-packages ..."

Henning Glawe henning.glawe at mpsd.mpg.de
Fri Jul 28 08:32:53 CEST 2023


Moin Adam,

On Thu, Jul 27, 2023 at 06:56:27PM -0700, Adam Lewenberg wrote:
> When running the fai-make-nfsroot program I am getting an
> install_packages error:
> 
> aptitude: unrecognized option '--allow-change-held-packages'
> aptitude 0.8.13
> 
> The call to install_packages looks like this:
> 
> install_packages: executing chroot /srv/fai/bookworm-amd64 aptitude -R
> -y -o Dpkg::Options::=--force-confdef -o
> Dpkg::Options::=--force-confnew --allow-change-held-packages install
> deborphan dnsutils ... more packages
> 
> However, aptitude does not support the --allow-change-held-packages
> option, at least not on Debian bullseye or bookworm where I am running
> fai-make-nfsroot. I see this line in install_packages:
> 
> my $aptopt='-y -o Dpkg::Options::=--force-confdef -o
> Dpkg::Options::=--force-confnew --allow-change-held-packages';
> 
> Maybe the "--allow-change-held-packages" should be removed/changed?

I also ran into this issue, a proposed fix is in:
https://github.com/faiproject/fai/pull/119

-- 
Mit freundlichen Grüßen
Henning Glawe

Dr. Henning Glawe
Max-Planck-Institut für Struktur und Dynamik der Materie
Geb. 99 (CFEL), Luruper Chaussee 149, 22761 Hamburg, Germany
http://www.mpsd.mpg.de/, Email: henning.glawe at mpsd.mpg.de
Building/Room: 99/O2.100, Phone: +49-40-8998-88392


More information about the linux-fai mailing list