Commit 7c2df610 authored by Guido Gunther's avatar Guido Gunther
Browse files Provide additional diagnostics when package installation failed

Print information from apt's dependency resolver. This helped to debug
the libsensors4 -> libsensors5 transition breaking our self built mesa
and thus preventing the image build to succeed.
parent 62e255be
......@@ -180,7 +180,10 @@ function setup_locale()
function install_pkgs()
chroot "${basedir}" apt-get -y update
chroot "${basedir}" apt-get -y install ${packages}
if ! chroot "${basedir}" apt -y install ${packages}; then
echo "Package installation failed, this might help to diagnose the problem:"
chroot "${basedir}" apt -y -o Debug::pkgProblemResolver=yes install -y --simulate ${packages}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment