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

Re: lh build: How-to debug Sub-process /usr/bin/dpkg returned an error code (1)



More infos about this issue.

I restarted from scratch:

---------------------------------------------------------
lh clean && lh bootstrap --debug && lh chroot --debug
---------------------------------------------------------

and was stopped by the bug pointed out by Daniel B.

-----------------------------------------------------------
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing desktop-base (--configure):
--
dpkg: dependency problems prevent configuration of gnome-desktop-environment:
--
  Package desktop-base is not configured yet.
dpkg: error processing gnome-desktop-environment (--configure):
--
Errors were encountered while processing:
 desktop-base
 gnome-desktop-environment
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------------------------------------------------

My workaround was to manually finish dpkg's job

-------------------------------------------------------------
chroot chroot
# dpkg --configure -a
Paramétrage de desktop-base (5.0.5) ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Cannot find list of partitions!
done
update-initramfs: deferring update (trigger activated)

Paramétrage de gnome-desktop-environment (1:2.28+1ubuntu3) ...
Traitement des actions différées (« triggers ») pour « initramfs-tools »...
update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic
cryptsetup: WARNING: could not determine root device from /etc/fstab
--------------------------------------------------------------

I made sure that the job was actually finished by:

--------------------------------------------------------------
xargs --arg-file=/root/chroot_packages apt-get --yes install
--
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
-------------------------------------------------------------

and then restarted lh chroot

This way all work fine and lh chroot does end with RC=0

A little issue is that when restarting lh chroot the usual mounts of /dev/pts are not done again:
--------------------------------------------------------------
Can not write log, openpty() failed (/dev/pts not mounted?)
--------------------------------------------------------------

Ph.L.



Reply to: