Bug#760144: discover-pkginstall hangs when using virtual box

2014-09-01 Thread Wolfgang Schweer
Package: discover
Version: 2.1.2-5.2
Severity: important
Tags: d-i
Usertags: debian-edu

Hi,

while trying to install Debian Edu based on Jessie, D-I hangs at
'Running install-hwpackages'.

I'm using virtualbox, hanging seems to be related to this case.

Last lines of D-I syslog output:

Sep  1 07:09:22 in-target: Building dependency tree...
Sep  1 07:09:22 in-target: 
Sep  1 07:09:22 in-target: Reading state information...
Sep  1 07:09:22 in-target: 
Sep  1 07:09:22 in-target: The following NEW packages will be installed:
Sep  1 07:09:22 in-target:   laptop-detect
Sep  1 07:09:22 kernel: [  629.173623] ISO 9660 Extensions: Microsoft Joliet 
Level 3
Sep  1 07:09:22 kernel: [  629.173897] ISO 9660 Extensions: RRIP_1991A
Sep  1 07:09:23 in-target: 0 upgraded, 1 newly installed, 0 to remove and 0 not 
upgraded.
Sep  1 07:09:23 in-target: Need to get 0 B/5,212 B of archives.
Sep  1 07:09:23 in-target: After this operation, 20.5 kB of additional disk 
space will be used.
Sep  1 07:09:23 in-target: Selecting previously unselected package 
laptop-detect.
Sep  1 07:09:23 in-target: (Reading database ... 29858 files and directories 
currently installed.)
Sep  1 07:09:23 in-target: Preparing to unpack 
.../laptop-detect_0.13.7_i386.deb ...
Sep  1 07:09:23 in-target: Unpacking laptop-detect (0.13.7) ...
Sep  1 07:09:23 in-target: Processing triggers for man-db (2.6.7.1-1) ...
Sep  1 07:09:23 in-target: Setting up laptop-detect (0.13.7) ...
Sep  1 07:09:24 in-target: Reading package lists...
Sep  1 07:09:24 in-target: 
Sep  1 07:09:24 in-target: Building dependency tree...
Sep  1 07:09:24 in-target: 
Sep  1 07:09:24 in-target: Reading state information...
Sep  1 07:09:24 in-target: 
Sep  1 07:09:24 in-target: discover is already the newest version.
Sep  1 07:09:24 in-target: discover set to manually installed.
Sep  1 07:09:24 in-target: 0 upgraded, 0 newly installed, 0 to remove and 0 not 
upgraded.

Output of 'ps a' in D-I target:

  PID TTY  STAT   TIME COMMAND
  161 tty1 Ss+0:00 /bin/sh /sbin/debian-installer
  162 tty2 Ss 0:00 -/bin/sh
  163 tty3 Ss+0:00 /bin/busybox init
  164 tty4 Ss+0:00 /usr/bin/tail -f /var/log/syslog
  174 tty1 S+ 0:00 /usr/bin/bterm -f /lib/unifont.bgf -l C.UTF-8 
/lib/debian-installer/menu
  175 pts/0Ss+0:15 debconf -o d-i /usr/bin/main-menu
  181 pts/0S+ 0:00 /usr/bin/main-menu
 3201 pts/0S+ 0:00 log-output -t pkgsel 
/usr/lib/pre-pkgsel.d/20install-hwpackages
 3202 pts/0S+ 0:00 /bin/sh /usr/lib/pre-pkgsel.d/20install-hwpackages
 3295 pts/0S+ 0:00 /bin/sh /bin/in-target discover-pkginstall
 3357 pts/0S+ 0:00 log-output -t in-target chroot /target 
discover-pkginstall
 3358 pts/0S+ 0:00 /bin/sh /sbin/discover-pkginstall
 3380 pts/0S+ 0:00 /usr/bin/perl -w /usr/share/debconf/frontend 
/usr/bin/debconf-apt-progress --no-progress -- aptitude install -q -y 
virtualbox-ose-guest-x11
 3382 pts/0S+ 0:00 /usr/bin/perl -w /usr/bin/debconf-apt-progress 
--no-progress -- aptitude install -q -y virtualbox-ose-guest-x11
 3383 pts/0S+ 0:00 /usr/bin/perl -w /usr/bin/debconf-apt-progress 
--no-progress -- aptitude install -q -y virtualbox-ose-guest-x11


Wolfgang



signature.asc
Description: Digital signature


Bug#760144: discover-pkginstall hangs when using virtual box

2014-09-01 Thread Petter Reinholdtsen
[Wolfgang Schweer]
  3357 pts/0S+ 0:00 log-output -t in-target chroot /target 
 discover-pkginstall
  3358 pts/0S+ 0:00 /bin/sh /sbin/discover-pkginstall
  3380 pts/0S+ 0:00 /usr/bin/perl -w /usr/share/debconf/frontend 
 /usr/bin/debconf-apt-progress --no-progress -- aptitude install -q -y 
 virtualbox-ose-guest-x11
  3382 pts/0S+ 0:00 /usr/bin/perl -w /usr/bin/debconf-apt-progress 
 --no-progress -- aptitude install -q -y virtualbox-ose-guest-x11
  3383 pts/0S+ 0:00 /usr/bin/perl -w /usr/bin/debconf-apt-progress 
 --no-progress -- aptitude install -q -y virtualbox-ose-guest-x11
 

As we discussed on IRC, I suspect this is caused by
discover-pkginstall using aptitude instead of apt-get, and aptitude
presenting a prompt that is not shown to the user.  Try replacing
aptitude with apt-get in discover-pkginstall.

I'm pushing a fix as we speak. :)

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org