Re: lh build: How-to debug Sub-process /usr/bin/dpkg returned an error code (1)
Thanks you Daniel for, and your offer to investigate this issue, but I
think I have found what was the culprit. Here are more excerpt of the log
-------------
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing desktop-base (--configure):
subprocess installed post-installation script returned error exit status 1
[...]
dpkg: dependency problems prevent configuration of
gnome-desktop-environment:
gnome-desktop-environment depends on desktop-base; however:
Package desktop-base is not configured yet.
dpkg: error processing gnome-desktop-environment (--configure):
dependency problems - leaving unconfigured
[...]
Errors were encountered while processing:
desktop-base
gnome-desktop-environment
E: Sub-process /usr/bin/dpkg returned an error code (1)
P: Begin unmounting filesystems...
--- 123 (=the return code)
Here is how I bypassed this problem:
sudo mount -o bind /proc chroot/proc
sudo chroot chroot
apt-get remove grub-pc grub-common
something like that: dpkg --reconfigure --all ( I don't remember exactly)
Ctrl-D
afterwards
touch .stage/chroot_install-packages
lh chroot
( nicely, all the automatic process restarted )
I canceled "lh chroot" when I saw:
Begin copying chroot
because it take time (useful in general, but useless for me)
after
find chroot -name '*.gz' -print0 | xargs -0 gunzip
(which is probably a poor idea because it breaks man aliases)
I issued mksquashfs chroot ... , I don't need more ( I distributed
multi-OS USB keys to my students, so the whole boot process is my own
business, I don't need lh-helper build anything else than chroot)
----
What may be more useful for readers of this mailing list is:
I use
lh config -m ubuntu -d lucid -p gnome
and there are some discrepancies between -p gnome (which is lh-helper's
idea of which packages make up gnome) and what is actually gnome in
lucid. Prior the failure related in this thread I had do to that:
diff -Naur gnome.list /usr/share/live-helper/lists/gnome
--- gnome.list 2010-06-29 18:29:37.000000000 +0200
+++ /usr/share/live-helper/lists/gnome 2010-06-29 16:43:05.000000000
+0200
@@ -6,7 +6,7 @@
#if DISTRIBUTION lenny
gdm-themes
#endif
-gnome-desktop-environment system-config-printer-gnome
+gnome-desktop-environment system-config-printer gnome-screensaver
gnome-themes-extras
( gnome-screensaver is only a problem for me who hate all screensavers !)
I had also to remove gnome-spell from my own packages list.
Conclusion: after removing gnome-spell and grub, replacing the name
system-config-printer by system-config-printer-gnome all worked fine.
Here is the .stage directory in reverse time order:
-rw-r--r-- 1 root root 0 2010-06-29 18:57 bootstrap_cache.restore
-rw-r--r-- 1 root root 0 2010-06-29 18:57 bootstrap
-rw-r--r-- 1 root root 0 2010-06-29 18:57 bootstrap_cache.save
-rw-r--r-- 1 root root 0 2010-06-29 19:00 chroot_local-packageslists
-rw-r--r-- 1 root root 0 2010-06-29 19:00 chroot_packages
-rw-r--r-- 1 root root 0 2010-06-29 19:00 chroot_local-packages
-rw-r--r-- 1 root root 0 2010-06-30 22:02 chroot_install-packages
-rw-r--r-- 1 root root 0 2010-06-30 22:45 chroot_localization
-rw-r--r-- 1 root root 0 2010-06-30 22:45 chroot_local-includes
-rw-r--r-- 1 root root 0 2010-06-30 22:46 chroot_local-hooks
-rw-r--r-- 1 root root 0 2010-06-30 22:47 chroot_hacks
-rw-r--r-- 1 root root 0 2010-06-30 22:47 chroot_symlinks
I liked very much the ability to restart the long lh build process where
it was previously stopped.
I now have a wonderful live ubuntu/lucid which all packages I recommend
to my students ( and use myself as a portable OS ).
Ph.L.
Reply to: