grub-pc 2.04-1ubuntu29 fails to install on groovy 20.10 due to pkg deps conflict

Bug #1894140 reported by Sean Feole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
High
Unassigned
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Series: Groovy
Arch: AMD64

When attempting to deploy Groovy AMD64 images via MAAS, the deployment is failing due to curtin attempting to install grub-pc (2.04-1ubuntu29 ) which fails to install due to a depends issue noted below.

This has essentially broken all maas deployments at least on Groovy AMD64 at this time.

        Setting up linux-generic (5.8.0.16.18) ...
        Setting up grub-pc (2.04-1ubuntu29) ...

        Creating config file /etc/default/grub with new version
        dpkg: error processing package grub-pc (--configure):
         installed grub-pc package post-installation script subprocess returned error exit status 1
        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.18-1ubuntu1) ...
        Processing triggers for install-info (6.7.0.dfsg.2-5) ...
        No apport report written because the error message indicates its a followup error from a previous failure.
        Processing triggers for libc-bin (2.31-0ubuntu10) ...
        Processing triggers for systemd (246.2-1ubuntu1) ...
        Running in chroot, ignoring command 'daemon-reload'
        Processing triggers for man-db (2.9.3-2) ...
        Processing triggers for linux-image-5.8.0-16-generic (5.8.0-16.17) ...
        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.050
        Running command ['umount', '/tmp/tmpu39p2api/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpu39p2api/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpu39p2api/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpu39p2api/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 1770, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1613, in builtin_curthooks
            install_kernel(cfg, target)
          File "/curtin/curtin/commands/curthooks.py", line 371, in install_kernel
            distro.install_packages([kernel_package], target=target)
          File "/curtin/curtin/distro.py", line 405, in install_packages
            return install_cmd('install', args=pkglist, opts=opts, target=target,
          File "/curtin/curtin/distro.py", line 292, in run_apt_command
            return inchroot.subp(cmd, env=env)
          File "/curtin/curtin/util.py", line 708, in subp
            return subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 275, in subp
            return _subp(*args, **kwargs)
          File "/curtin/curtin/util.py", line 139, in _subp
            raise ProcessExecutionError(stdout=out, stderr=err,
        curtin.util.ProcessExecutionError: Unexpected error while running command.
        Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpu39p2api/target', 'eatmydata', '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/tmpu39p2api/target', 'eatmydata', '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: ''

Revision history for this message
Sean Feole (sfeole) wrote :

So after looking around a bit it would appear there is another version of grub2 that has been uploaded to the builders. (Version 2.04-1ubuntu30)

https://launchpad.net/ubuntu/+source/grub2/2.04-1ubuntu30

Appears to have 2 fixes:

  * postinst.in: do not attempt to call grub-install upon fresh install of
    grub-pc because it it a job of installers to do that after fresh
    install.
  * grub-multi-install: fix non-interactive failures for grub-efi like it
    was fixed in postinst for grub-pc.

Not sure if this problem would be addressed in here, however the amd64 deb has failed to build and I have notified the appropriate xnoxx

Changed in ubuntu-kernel-tests:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Sean Feole (sfeole)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Deployment now works on all different arches.
Thanks.

Changed in ubuntu-kernel-tests:
status: Triaged → Fix Released
Changed in grub2 (Ubuntu):
status: New → Invalid
Changed in ubuntu-kernel-tests:
assignee: Sean Feole (sfeole) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.