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

Henning Glawe <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <ZMNhFXEO5JCD2Fxg@safflower>
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: [email protected]
Building/Room: 99/O2.100, Phone: +49-40-8998-88392
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.