[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#478661: marked as done (Should document how to install packages during preseeding)



Your message dated Sat, 16 May 2020 00:32:27 +0200
with message-id <[🔎] 20200516003227.ef39d7c4e97e4ad4f096a293@mailbox.org>
and subject line Re: Bug#478661: Should document how to install packages during preseeding
has caused the Debian Bug report #478661,
regarding Should document how to install packages during preseeding
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
478661: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478661
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-installer
Version: Lenny (snapshot of 25 april 2008)(netinst)
Severity: normal

Note that I have had the exact same error before and that was fixed a while after. But now it came back (Regression?). Here's the deal: I install debian from the (daily generated) netinst image using 
preseed. First I install packages using the "pkgsel pkgsel/include string" string. This works. Afterwards, It does this:

d-i preseed/late_command string echo hi; \
# Transfer linux_data and chroot into it.
mkdir /target/mnt/data/; \
cp -r /hd-media/linux_data/ /target/mnt/data/; \
chroot /target /mnt/data/linux_data/post-preseed.sh

And post-preseed.sh contains the following lines until it hangs:

# Adding extra sources
echo ""  >> /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list
echo ""  >> /etc/apt/sources.list
echo "deb http://www.debian-multimedia.org testing main" >> /etc/apt/sources.list
echo ""  >> /etc/apt/sources.list
echo "deb http://kernel-archive.buildserver.net/debian-kernel sid main" >> /etc/apt/sources.list
aptitude clean
aptitude update
# Install keys
aptitude -y --allow-untrusted install debian-multimedia-keyring
apt-key add /mnt/data/linux_data/key
aptitude clean
aptitude update
# Update and install
aptitude -y -t testing safe-upgrade  (THIS WORKS)
#aptitude -y -t sid install amsn wine tor easytag (AND HERE IT HANGS)

The error the terminal gives is:

/usr/share/debconf/confmodule: line 42: 3: Bad file descriptor

I heard this is because we have two instances of debconf running (one outside the chroot and one inside the chroot), that is all nice but it still hangs :(

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



--- End Message ---
--- Begin Message ---
Ronald <ronald645@gmail.com> wrote:
> And post-preseed.sh contains the following lines until it hangs:
> 
> # Adding extra sources
> echo ""  >> /etc/apt/sources.list
> echo "deb http://ftp.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list
> echo ""  >> /etc/apt/sources.list
> echo "deb http://www.debian-multimedia.org testing main" >> /etc/apt/sources.list
> echo ""  >> /etc/apt/sources.list
> echo "deb http://kernel-archive.buildserver.net/debian-kernel sid main" >> /etc/apt/sources.list
> aptitude clean
> aptitude update
> # Install keys
> aptitude -y --allow-untrusted install debian-multimedia-keyring
> apt-key add /mnt/data/linux_data/key
> aptitude clean
> aptitude update
> # Update and install
> aptitude -y -t testing safe-upgrade  (THIS WORKS)
> #aptitude -y -t sid install amsn wine tor easytag (AND HERE IT HANGS)

It is documented in
https://d-i.debian.org/manual/en.amd64/apbs05.html#preseed-hooks
how to do custom package installs via preseeding.
(Using aptitude is not supported, by the way!)


So closing this long-standing bug

Holger


-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

--- End Message ---

Reply to: