Hi, Mikko Tuumanen <b...@k2c42.dy.fi> (2019-05-13): > Package: debian-installer > Severity: normal > > Dear Maintainer, > > I tried to preseed Debian buster with > > d-i apt-setup/local0/repository string http://foo/ buster bar > d-i apt-setup/local0/key string http://foo/key > d-i pkgsel/include string baz > > and used netboot "linux" and "initrd.gz" dated 2019-04-10. > > This caused > > May 13 06:34:21 main-menu[300]: (process:30688): 2019-05-13 06:34:18 > URL:http://foo/key [2448/2448] -> "/target/tmp/_fetch-url_key0.pub.31236" [1] > May 13 06:34:21 main-menu[300]: (process:30688): E: gnupg, gnupg2 and gnupg1 > do > not seem to be installed, but one of them is required for this operation > > and later package baz was not found which stopped the installation.
Right, I had been meaning to take care of it, but this special use case had way lower priority than other issues… > Work-around: > > d-i preseed/late_command string in-target /bin/bash -c "\ > wget -O /etc/foo.asc http://foo/key ;\ > echo 'deb [signed-by=/etc/foo.asc] http://foo/ buster bar' > >>>>/etc/apt/sources.list ;\ > apt update ;\ > apt -y install baz" I seem to remember having seen some discussion regarding how to detect binary or armoured keys; maybe a cheap(er) fix would be to make sure we install the needed gnupg bits into /target when such a setting (apt-setup/local*/key) is detected? See generators/60local in apt-setup. Cheers, -- Cyril Brulebois (k...@debian.org) <https://debamax.com/> D-I release manager -- Release team member -- Freelance Consultant
signature.asc
Description: PGP signature