Seems like the installation of linux-generic is broken on Xenial for power8.
Here is the output from my deployment attempt:
http://paste.ubuntu.com/15114002/
Part of the snippet to take note of is:
[ 282.307158] cloud-init[2106]: dpkg: dependency problems prevent configuration of linux-generic:
[ 282.308158] cloud-init[2106]: linux-generic depends on linux-image-generic (= 4.4.0.6.7); however:
[ 282.308912] cloud-init[2106]: Package linux-image-generic is not configured yet.
[ 282.309771] cloud-init[2106]: dpkg: error processing package linux-generic (--configure):
[ 282.310402] cloud-init[2106]: dependency problems - leaving unconfigured
[ 282.310966] cloud-init[2106]: Setting up os-prober (1.70ubuntu1) ...
[ 282.311855] cloud-init[2106]: No apport report written because MaxReports is reached already
[ 282.312641] cloud-init[2106]: Processing triggers for libc-bin (2.21-0ubuntu5) ...
[ 282.346156] cloud-init[2106]: Errors were encountered while processing:
[ 282.346598] cloud-init[2106]: linux-image-4.4.0-6-generic
[ 282.347133] cloud-init[2106]: linux-image-extra-4.4.0-6-generic
[ 282.347478] cloud-init[2106]: linux-image-generic
[ 282.347782] cloud-init[2106]: linux-generic
[ 282.459050] cloud-init[2106]: E: Sub-process /usr/bin/dpkg returned an error code (1)
[ 282.461165] cloud-init[2106]: Running command ['udevadm', 'settle'] with allowed return codes [0] (shell=False, capture=False)
[ 282.464502] cloud-init[2106]: Running command ['umount', '/tmp/tmp5bz7nsa9/target/sys'] with allowed return codes [0] (shell=False, capture=False)
[ 282.494731] cloud-init[2106]: Running command ['umount', '/tmp/tmp5bz7nsa9/target/proc'] with allowed return codes [0] (shell=False, capture=False)
[ 282.518596] cloud-init[2106]: Running command ['umount', '/tmp/tmp5bz7nsa9/target/dev'] with allowed return codes [0] (shell=False, capture=False)
[ 282.632074] cloud-init[2106]: Traceback (most recent call last):
[ 282.633018] cloud-init[2106]: File "/curtin/curtin/commands/main.py", line 209, in main
[ 282.633454] cloud-init[2106]: ret = args.func(args)
[ 282.634546] cloud-init[2106]: File "/curtin/curtin/commands/curthooks.py", line 697, in curthooks
[ 282.635067] cloud-init[2106]: install_kernel(cfg, target)
[ 282.636264] cloud-init[2106]: File "/curtin/curtin/commands/curthooks.py", line 196, in install_kernel
[ 282.637087] cloud-init[2106]: util.install_packages([package], target=target)
[ 282.638078] cloud-init[2106]: File "/curtin/curtin/util.py", line 640, in install_packages
[ 282.639326] cloud-init[2106]: aptopts=aptopts, target=target, env=env, allow_daemons=allow_daemons)
[ 282.640328] cloud-init[2106]: File "/curtin/curtin/util.py", line 622, in run_apt_command
[ 282.640890] cloud-init[2106]: return inchroot(cmd, env=env)
[ 282.641759] cloud-init[2106]: File "/curtin/curtin/util.py", line 384, in __call__
[ 282.642438] cloud-init[2106]: return subp(chroot + args, **kwargs)
[ 282.643258] cloud-init[2106]: File "/curtin/curtin/util.py", line 140, in subp
[ 282.643864] cloud-init[2106]: return _subp(*args, **kwargs)
[ 282.644695] cloud-init[2106]: File "/curtin/curtin/util.py", line 90, in _subp
[ 282.645073] cloud-init[2106]: cmd=args)
[ 282.646140] cloud-init[2106]: curtin.util.ProcessExecutionError: Unexpected error while running command.
[ 282.649507] cloud-init[2106]: Command: ['chroot', '/tmp/tmp5bz7nsa9/target', 'eatmydata', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'linux-generic']
[ 282.649928] cloud-init[2106]: Exit code: 100
[ 282.650284] cloud-init[2106]: Reason: -
[ 282.650667] cloud-init[2106]: Stdout: ''
[ 282.651026] cloud-init[2106]: Stderr: ''
[ 282.651404] cloud-init[2106]: Unexpected error while running command.
[ 282.654463] cloud-init[2106]: Command: ['chroot', '/tmp/tmp5bz7nsa9/target', 'eatmydata', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'linux-generic']
[ 282.654880] cloud-init[2106]: Exit code: 100
[ 282.655254] cloud-init[2106]: Reason: -
[ 282.655544] cloud-init[2106]: Stdout: ''
[ 282.655824] cloud-init[2106]: Stderr: ''
[ 282.657415] cloud-init[2106]: builtin command failed
[ 282.730928] cloud-init[2106]: builtin took 168.222 seconds
[ 282.731204] cloud-init[2106]: stage_curthooks took 168.222 seconds
[ 282.833087] cloud-init[2106]: Installation failed with exception: Unexpected error while running command.
[ 282.833344] cloud-init[2106]: Command: ['curtin', 'curthooks']
[ 282.833572] cloud-init[2106]: Exit code: 3
[ 282.833802] cloud-init[2106]: Reason: -
[ 282.834027] cloud-init[2106]: Stdout: b'renaming /tmp/tmp5bz7nsa9/target/etc/overlayroot.local.conf to /tmp/tmp5bz7nsa9/target/etc/overlayroot.local.conf.old\nRunning command [\'mount\', \'--bind\', \'/dev\', \'/tmp/tmp5bz7nsa9/target/dev\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'mount\', \'--bind\', \'/proc\', \'/tmp/tmp5bz7nsa9/target/proc\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'mount\', \'--bind\', \'/sys\', \'/tmp/tmp5bz7nsa9/target/sys\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'lsb_release\', \'--codename\', \'--short\'] with allowed return codes [0] (shell=False, capture=True)\nRunning command [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'apt-get\', \'--quiet\', \'--option=Acquire::Languages=none\', \'--option=Dir::Etc::sourcelist=/tmp/tmp_4clzkon/sources.list\', \'--option=Dir::Etc::sourceparts=/tmp/tmp_4clzkon/sources.list.d\', \'update\'] with allowed return codes [0] (shell=False, capture=False)\nGet:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease [95.8 kB]\nHit:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease\nHit:3 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease\nGet:4 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el Packages [1420 kB]\nGet:5 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el Packages [7056 kB]\nGet:6 http://ports.ubuntu.com/ubuntu-ports xenial/multiverse ppc64el Packages [120 kB]\nFetched 8691 kB in 2s (3077 kB/s)\nReading package lists...\nRunning command [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'apt-cache\', \'search\', \'linux-generic\'] with allowed return codes [0] (shell=False, capture=True)\nRunning command [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'dpkg-query\', \'--show\', \'--showformat\', \'${db:Status-Abbrev}\', \'linux-generic\'] with allowed return codes [0] (shell=False, capture=True)\nRunning command [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'eatmydata\', \'apt-get\', \'--quiet\',
[ 282.834743] cloud-init[2106]: \'--assume-yes\', \'--option=Dpkg::options::=--force-unsafe-io\', \'--option=Dpkg::Options::=--force-confold\', \'install\', \'linux-generic\'] with allowed return codes [0] (shell=False, capture=False)\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n crda grub-common grub-ieee1275 grub-ieee1275-bin grub2-common iw\n libfreetype6 linux-firmware linux-headers-4.4.0-6\n linux-headers-4.4.0-6-generic linux-headers-generic\n linux-image-4.4.0-6-generic linux-image-extra-4.4.0-6-generic\n linux-image-generic os-prober wireless-regdb\nSuggested packages:\n multiboot-doc xorriso desktop-base fdutils linux-doc-4.4.0\n | linux-source-4.4.0 linux-tools\nThe following NEW packages will be installed:\n crda grub-common grub-ieee1275 grub-ieee1275-bin grub2-common iw\n libfreetype6 linux-firmware linux-generic linux-headers-4.4.0-6\n linux-headers-4.4.0-6-generic linux-headers-generic\n linux-image-4.4.0-6-generic linux-image-extra-4.4.0-6-generic\n linux-image-generic os-prober wireless-regdb\n0 upgraded, 17 newly installed, 0 to remove and 82 not upgraded.\nNeed to get 105 MB of archives.\nAfter this operation, 478 MB of additional disk space will be used.\nGet:1 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-image-4.4.0-6-generic ppc64el 4.4.0-6.21 [18.3 MB]\nGet:2 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el libfreetype6 ppc64el 2.6.1-0.1ubuntu1 [331 kB]\nGet:3 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el grub-common ppc64el 2.02~beta2-36 [1549 kB]\nGet:4 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el grub2-common ppc64el 2.02~beta2-36 [506 kB]\nGet:5 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el grub-ieee1275-bin ppc64el 2.02~beta2-36 [535 kB]\nGet:6 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el grub-ieee1275 ppc64el 2.02~beta2-36 [65.1 kB]\nGet:7 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el wireless-regdb all 2015.07.20-1ubuntu1 [9058
[ 282.835386] cloud-init[2106]: B]\nGet:8 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el iw ppc64el 3.17-1 [61.4 kB]\nGet:9 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el crda ppc64el 3.13-1 [60.0 kB]\nGet:10 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-firmware all 1.156 [34.0 MB]\nGet:11 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-image-extra-4.4.0-6-generic ppc64el 4.4.0-6.21 [38.9 MB]\nGet:12 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-image-generic ppc64el 4.4.0.6.7 [2576 B]\nGet:13 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-headers-4.4.0-6 all 4.4.0-6.21 [9902 kB]\nGet:14 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-headers-4.4.0-6-generic ppc64el 4.4.0-6.21 [952 kB]\nGet:15 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-headers-generic ppc64el 4.4.0.6.7 [2566 B]\nGet:16 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el linux-generic ppc64el 4.4.0.6.7 [1784 B]\nGet:17 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el os-prober ppc64el 1.70ubuntu1 [14.5 kB]\nPreconfiguring packages ...\nFetched 105 MB in 2s (48.9 MB/s)\nE: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)\nSelecting previously unselected package linux-image-4.4.0-6-generic.\n(Reading database ... 26972 files and directories currently installed.)\nPreparing to unpack .../linux-image-4.4.0-6-generic_4.4.0-6.21_ppc64el.deb ...\nDone.\nUnpacking linux-image-4.4.0-6-generic (4.4.0-6.21) ...\nSelecting previously unselected package libfreetype6:ppc64el.\nPreparing to unpack .../libfreetype6_2.6.1-0.1ubuntu1_ppc64el.deb ...\nUnpacking libfreetype6:ppc64el (2.6.1-0.1ubuntu1) ...\nSelecting previously unselected package grub-common.\nPreparing to unpack .../grub-common_2.02~beta2-36_ppc64el.deb ...\nUnpacking grub-common (2.02~beta2-36) ...\nSelecting previously unselected package grub2-common.\nPreparing to unpack .../grub2-common_2.02~beta2-36_ppc64el.deb ...\nUnpacking grub2-common (2.02~beta2-36) ...
[ 282.836366] cloud-init[2106]: \nSelecting previously unselected package grub-ieee1275-bin.\nPreparing to unpack .../grub-ieee1275-bin_2.02~beta2-36_ppc64el.deb ...\nUnpacking grub-ieee1275-bin (2.02~beta2-36) ...\nSelecting previously unselected package grub-ieee1275.\nPreparing to unpack .../grub-ieee1275_2.02~beta2-36_ppc64el.deb ...\nUnpacking grub-ieee1275 (2.02~beta2-36) ...\nSelecting previously unselected package wireless-regdb.\nPreparing to unpack .../wireless-regdb_2015.07.20-1ubuntu1_all.deb ...\nUnpacking wireless-regdb (2015.07.20-1ubuntu1) ...\nSelecting previously unselected package iw.\nPreparing to unpack .../archives/iw_3.17-1_ppc64el.deb ...\nUnpacking iw (3.17-1) ...\nSelecting previously unselected package crda.\nPreparing to unpack .../crda_3.13-1_ppc64el.deb ...\nUnpacking crda (3.13-1) ...\nSelecting previously unselected package linux-firmware.\nPreparing to unpack .../linux-firmware_1.156_all.deb ...\nUnpacking linux-firmware (1.156) ...\nSelecting previously unselected package linux-image-extra-4.4.0-6-generic.\nPreparing to unpack .../linux-image-extra-4.4.0-6-generic_4.4.0-6.21_ppc64el.deb ...\nUnpacking linux-image-extra-4.4.0-6-generic (4.4.0-6.21) ...\nSelecting previously unselected package linux-image-generic.\nPreparing to unpack .../linux-image-generic_4.4.0.6.7_ppc64el.deb ...\nUnpacking linux-image-generic (4.4.0.6.7) ...\nSelecting previously unselected package linux-headers-4.4.0-6.\nPreparing to unpack .../linux-headers-4.4.0-6_4.4.0-6.21_all.deb ...\nUnpacking linux-headers-4.4.0-6 (4.4.0-6.21) ...\nSelecting previously unselected package linux-headers-4.4.0-6-generic.\nPreparing to unpack .../linux-headers-4.4.0-6-generic_4.4.0-6.21_ppc64el.deb ...\nUnpacking linux-headers-4.4.0-6-generic (4.4.0-6.21) ...\nSelecting previously unselected package linux-headers-generic.\nPreparing to unpack .../linux-headers-generic_4.4.0.6.7_ppc64el.deb ...\nUnpacking linux-headers-generic (4.4.0.6.7) ...\nSelecting previously unselected package linux-generic.\nPreparing to unpack .../linux-generic_4.4.0.6.7_ppc64el.d
[ 282.836883] cloud-init[2106]: eb ...\nUnpacking linux-generic (4.4.0.6.7) ...\nSelecting previously unselected package os-prober.\nPreparing to unpack .../os-prober_1.70ubuntu1_ppc64el.deb ...\nUnpacking os-prober (1.70ubuntu1) ...\nProcessing triggers for libc-bin (2.21-0ubuntu5) ...\nProcessing triggers for man-db (2.7.5-1) ...\nProcessing triggers for install-info (6.0.0.dfsg.1-4) ...\nSetting up linux-image-4.4.0-6-generic (4.4.0-6.21) ...\nRunning depmod.\nupdate-initramfs: deferring update (hook will be called later)\ncp: cannot stat \'/boot/initrd.img-4.4.0-6-generic\': No such file or directory\nFailed to copy /boot/initrd.img-4.4.0-6-generic to /boot/initrd.img at /var/lib/dpkg/info/linux-image-4.4.0-6-generic.postinst line 745.\ndpkg: error processing package linux-image-4.4.0-6-generic (--configure):\n subprocess installed post-installation script returned error exit status 2\nSetting up libfreetype6:ppc64el (2.6.1-0.1ubuntu1) ...\nSetting up grub-common (2.02~beta2-36) ...\nSetting up grub2-common (2.02~beta2-36) ...\nSetting up grub-ieee1275-bin (2.02~beta2-36) ...\nSetting up grub-ieee1275 (2.02~beta2-36) ...\n\nCreating config file /etc/default/grub with new version\nInstalling for powerpc-ieee1275 platform.\nInstallation finished. No error reported.\nSetting up wireless-regdb (2015.07.20-1ubuntu1) ...\nSetting up iw (3.17-1) ...\nSetting up crda (3.13-1) ...\nSetting up linux-firmware (1.156) ...\ndpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-6-generic:\n linux-image-extra-4.4.0-6-generic depends on linux-image-4.4.0-6-generic; however:\n Package linux-image-4.4.0-6-generic is not configured yet.\n\ndpkg: error processing package linux-image-extra-4.4.0-6-generic (--configure):\n dependency problems - leaving unconfigured\ndpkg: dependency problems prevent configuration of linux-image-generic:\n linux-image-generic depends on linux-image-4.4.0-6-generic; however:\n Package linux-image-4.4.0-6-generic is not configured yet.\n linux-image-generic depends on linux-image-extra-4.4.0-6-generic; howeve
[ 282.837362] cloud-init[2106]: r:\n Package linux-image-extra-4.4.0-6-generic is not configured yet.\n\nNo apport report written because the error message indicates its a followup error from a previous failure.dpkg: error processing package linux-image-generic (--configure):\n dependency problems - leaving unconfigured\n\nSetting up linux-headers-4.4.0-6 (4.4.0-6.21) ...\nNo apport report written because the error message indicates its a followup error from a previous failure.\nSetting up linux-headers-4.4.0-6-generic (4.4.0-6.21) ...\nSetting up linux-headers-generic (4.4.0.6.7) ...\ndpkg: dependency problems prevent configuration of linux-generic:\n linux-generic depends on linux-image-generic (= 4.4.0.6.7); however:\n Package linux-image-generic is not configured yet.\n\ndpkg: error processing package linux-generic (--configure):\n dependency problems - leaving unconfigured\nSetting up os-prober (1.70ubuntu1) ...\nNo apport report written because MaxReports is reached already\nProcessing triggers for libc-bin (2.21-0ubuntu5) ...\nErrors were encountered while processing:\n linux-image-4.4.0-6-generic\n linux-image-extra-4.4.0-6-generic\n linux-image-generic\n linux-generic\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nRunning command [\'udevadm\', \'settle\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'umount\', \'/tmp/tmp5bz7nsa9/target/sys\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'umount\', \'/tmp/tmp5bz7nsa9/target/proc\'] with allowed return codes [0] (shell=False, capture=False)\nRunning command [\'umount\', \'/tmp/tmp5bz7nsa9/target/dev\'] with allowed return codes [0] (shell=False, capture=False)\nTraceback (most recent call last):\n File "/curtin/curtin/commands/main.py", line 209, in main\n ret = args.func(args)\n File "/curtin/curtin/commands/curthooks.py", line 697, in curthooks\n install_kernel(cfg, target)\n File "/curtin/curtin/commands/curthooks.py", line 196, in install_kernel\n util.install_packages([package], target=target)
[ 282.837826] cloud-init[2106]: \n File "/curtin/curtin/util.py", line 640, in install_packages\n aptopts=aptopts, target=target, env=env, allow_daemons=allow_daemons)\n File "/curtin/curtin/util.py", line 622, in run_apt_command\n return inchroot(cmd, env=env)\n File "/curtin/curtin/util.py", line 384, in __call__\n return subp(chroot + args, **kwargs)\n File "/curtin/curtin/util.py", line 140, in subp\n return _subp(*args, **kwargs)\n File "/curtin/curtin/util.py", line 90, in _subp\n cmd=args)\ncurtin.util.ProcessExecutionError: Unexpected error while running command.\nCommand: [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'eatmydata\', \'apt-get\', \'--quiet\', \'--assume-yes\', \'--option=Dpkg::options::=--force-unsafe-io\', \'--option=Dpkg::Options::=--force-confold\', \'install\', \'linux-generic\']\nExit code: 100\nReason: -\nStdout: \'\'\nStderr: \'\'\nUnexpected error while running command.\nCommand: [\'chroot\', \'/tmp/tmp5bz7nsa9/target\', \'eatmydata\', \'apt-get\', \'--quiet\', \'--assume-yes\', \'--option=Dpkg::options::=--force-unsafe-io\', \'--option=Dpkg::Options::=--force-confold\', \'install\', \'linux-generic\']\nExit code: 100\nReason: -\nStdout: \'\'\nStderr: \'\'\n'
[ 282.838182] cloud-init[2106]: Stderr: ''
I have seen a similar problem on arm64 while installing Xenial using maas 1.8.3 with the following curtin debs:
http:// paste.ubuntu. com/15125844/
curtin-common 0.1.0~bzr351- 0ubuntu1 0ubuntu1
python-curtin 0.1.0~bzr351-
ii maas 1.8.3+bzr4053- 0ubuntu1~ trusty1 all MAAS server all-in-one metapackage 0ubuntu1~ trusty1 all MAAS command line API tool controller 1.8.3+bzr4053- 0ubuntu1~ trusty1 all MAAS server cluster controller 0ubuntu1~ trusty1 all MAAS server common files 0ubuntu1~ trusty1 all MAAS DHCP server 0ubuntu1~ trusty1 all MAAS DNS server 0ubuntu1~ trusty1 all MAAS Caching Proxy controller 1.8.3+bzr4053- 0ubuntu1~ trusty1 all MAAS server complete region controller controller- min 1.8.3+bzr4053- 0ubuntu1~ trusty1 all MAAS Server minimum region controller 0ubuntu1~ trusty1 all MAAS server Django web framework 0ubuntu1~ trusty1 all MAAS python API client maas-provisioni ngserver 1.8.3+bzr4053- 0ubuntu1~ trusty1 all MAAS server provisioning libraries
ii maas-cli 1.8.3+bzr4053-
ii maas-cluster-
ii maas-common 1.8.3+bzr4053-
ii maas-dhcp 1.8.3+bzr4053-
ii maas-dns 1.8.3+bzr4053-
ii maas-proxy 1.8.3+bzr4053-
ii maas-region-
ii maas-region-
ii python-django-maas 1.8.3+bzr4053-
ii python-maas-client 1.8.3+bzr4053-
ii python-