Hello
I have a problem deploying an Ubuntu 20.04 on my servers. This is indeed the Ubuntu amd64 which provides the official maas image repo.
This tells me that it cannot install “grub-pc” and “grub-gfxpayload-lists”
Failed to open terminal.debconf: whiptail output the above errors, giving up!
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub-gfxpayload-lists (--configure):
dependency problems - leaving unconfigured
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...
Running in chroot, ignoring request: daemon-reload
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for linux-image-5.4.0-26-generic (5.4.0-26.30) ...
Errors were encountered while processing:
grub-pc
grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.009
Running command ['mount', '--make-private', '/tmp/tmp5010kuc4/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp5010kuc4/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp5010kuc4/target/run'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp5010kuc4/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp5010kuc4/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp5010kuc4/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp5010kuc4/target/dev'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp5010kuc4/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-kernel: FAIL: installing kernel
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
File "/curtin/curtin/commands/main.py", line 202, in main
ret = args.func(args)
File "/curtin/curtin/commands/curthooks.py", line 1918, in curthooks
builtin_curthooks(cfg, target, state)
File "/curtin/curtin/commands/curthooks.py", line 1752, in builtin_curthooks
install_kernel(cfg, target)
File "/curtin/curtin/commands/curthooks.py", line 385, in install_kernel
install(kernel_package)
File "/curtin/curtin/commands/curthooks.py", line 362, in install
distro.install_packages([pkg], target=target, env=env)
File "/curtin/curtin/distro.py", line 526, in install_packages
return install_cmd('install', args=pkglist, opts=opts, target=target,
File "/curtin/curtin/distro.py", line 308, in run_apt_command
cmd_rv = apt_install(mode, args, opts=opts, env=env, target=target,
File "/curtin/curtin/distro.py", line 359, in apt_install
cmd_rv = inchroot.subp(cmd + inst_opts + packages, env=env)
File "/curtin/curtin/util.py", line 792, in subp
return subp(*args, **kwargs)
File "/curtin/curtin/util.py", line 280, in subp
return _subp(*args, **kwargs)
File "/curtin/curtin/util.py", line 144, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmp5010kuc4/target', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'linux-generic']
Exit code: 100
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmp5010kuc4/target', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'linux-generic']
Exit code: 100
Reason: -
Stdout: ''
Stderr: ''
Stderr: ''
Thank you in advance for your assistance.
BR