Announcement

Collapse
No announcement yet.

Grub-efi package is messed up again...

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grub-efi package is messed up again...

    I just woke up and noticed updates pending, so i perform them as usual.
    (sudo apt upgrade; sudo apt update)

    But the update of grub-efi-amd64-signed (1.142.3+2.04-1ubuntu26.1) gave errors:
    Code:
    > _ apt-get -f install 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up grub-efi-amd64-signed (1.142.3+2.04-1ubuntu26.1) ...
    [B]Trying to migrate /boot/efi into esp config[/B]
    dpkg: error processing package grub-efi-amd64-signed (--configure):
    installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    grub-efi-amd64-signed
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Code:
    >  _ dpkg --audit grub-efi-amd64-signed
    The following packages are only half configured, probably due to problems
    configuring them the first time. The configuration should be retried using
    dpkg --configure <package> or the configure menu option in dselect:
    grub-efi-amd64-signed GRand Unified Bootloader, version 2 (EFI-AMD64 version,
    Code:
    >  _ dpkg --configure grub-efi-amd64-signed
    Setting up grub-efi-amd64-signed (1.142.3+2.04-1ubuntu26.1) ...
    [B]Trying to migrate /boot/efi into esp config[/B]
    dpkg: error processing package grub-efi-amd64-signed (--configure):
    installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    grub-efi-amd64-signed
    No idea what to do next, and this time im really happy that i'm using Systemd-boot instead of grub...

    Changes list for: grub-efi-amd64-signed_1.142.3+2.04-1ubuntu26.1_amd64.deb
    Code:
    grub2-signed (1.142.3) focal; urgency=medium
    
    * Rebuild against grub2 2.04-1ubuntu26.1.
    
    -- Dimitri John Ledkov <xnox@ubuntu.com>  Tue, 21 Jul 2020 10:45:52 +0100
    
    </cut rest>
    I'm at moment trying to debug this mess by extracting the .deb.
    Code:
    > dpkg-deb --ctrl-tarfile /var/cache/apt/archives/grub-efi-amd64-signed_1.142.3+2.04-1ubuntu26.1_amd64.deb | tar --get --to-stdout ./postinst | xc
    #! /bin/sh
    set -e
    
    config_item ()
    {
    if [ -f /etc/default/grub ]; then
    	. /etc/default/grub || return
    	for x in /etc/default/grub.d/*.cfg; do
    	    if [ -e "$x" ]; then
    		. "$x"
    	    fi
    	done
    fi
    eval echo "\$$1"
    }
    
    case $1 in
    configure)
    	target=x86_64-efi
    	# Check /boot/grub to see if we previously installed to an ESP. We don't
    	# want to trigger the install code just by installing the package,
    	# normally the installer installs grub itself first.
    	if test -e /boot/grub/$target/core.efi; then
    	    /usr/share/grub/grub-check-signatures
    	    /usr/lib/grub/grub-multi-install --target=$target
    	fi
    
    	;;
    esac
    
    exit 0
    Code:
    > dpkg-query -S /usr/lib/grub/grub-multi-install
    grub-common: /usr/lib/grub/grub-multi-install
    I'm now at "/usr/lib/grub/grub-multi-install" L#252+ and will check that later have to go out for RL...
    Stuck at why this script bugs: (Anyone any idea how to fix this?)
    Code:
    >  _ /usr/lib/grub/grub-multi-install --target=x86_64-efi; echo $?
    [B]Trying to migrate /boot/efi into esp config[/B]
    1
    Maybe i better follow this post to get rid of grub...
    Oh crap, wtf does shim-signed depend on grub-efi-amd64-signed instead of the other way around !
    Code:
    > apt-cache depends shim-signed | xc
    shim-signed
    |Depends: debconf
    Depends: <debconf-2.0>
    cdebconf
    debconf
    Depends: shim
    [B]|Depends: grub-efi-amd64-signed[/B]
    Depends: <grub-efi-arm64-signed>
    Depends: grub2-common
    Depends: mokutil
    Depends: sbsigntool
    Recommends: secureboot-db
    Anyone any idea how to fix this also?
    Where do we file bug-reports in ubuntu packages?
    This crap makes me want to FLY away from *ubuntu to another distro, because now im unable to update ANY packages due to this bug... :mad:



    Aliases i used:
    • _=sudo
    • xc='xclip -selection clipboard'
    Last edited by ©TriMoon™; Jul 30, 2020, 07:03 AM. Reason: fidling with layout etc cause im bored and stuck with this bug
    Well thats all for now, 3M

    #2
    Even downgrading does not fix this WTH
    Code:
    > _ apt-get install grub-efi-amd64-signed[B]=1.142+2.04-1ubuntu26[/B] grub-efi-amd64-bin[B]=2.04-1ubuntu26[/B] grub-common[B]=2.04-1ubuntu26[/B] grub-pc[B]=2.04-1ubuntu26[/B] grub-pc-bin[B]=2.04-1ubuntu26[/B] grub2-common[B]=2.04-1ubuntu26[/B] | xc
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Suggested packages:
    multiboot-doc grub-emu xorriso desktop-base
    The following packages will be DOWNGRADED:
    grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-pc grub-pc-bin
    grub2-common
    0 upgraded, 0 newly installed, 6 downgraded, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Need to get 4705 kB of archives.
    After this operation, 20.5 kB disk space will be freed.
    Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 grub2-common amd64 2.04-1ubuntu26 [589 kB]
    Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 grub-pc amd64 2.04-1ubuntu26 [125 kB]
    Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 grub-pc-bin amd64 2.04-1ubuntu26 [969 kB]
    Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 grub-efi-amd64-signed amd64 1.142+2.04-1ubuntu26 [468 kB]
    Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 grub-efi-amd64-bin amd64 2.04-1ubuntu26 [702 kB]
    Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 grub-common amd64 2.04-1ubuntu26 [1853 kB]
    Preconfiguring packages ...
    Fetched 4705 kB in 2s (2486 kB/s)
    dpkg: warning: downgrading grub2-common from 2.04-1ubuntu26.1 to 2.04-1ubuntu26
    (Reading database ... 
    (Reading database ... 5%
    (Reading database ... 10%
    (Reading database ... 15%
    (Reading database ... 20%
    (Reading database ... 25%
    (Reading database ... 30%
    (Reading database ... 35%
    (Reading database ... 40%
    (Reading database ...
    
    45%
    (Reading database ... 50%
    (Reading database ... 55%
    (Reading database ... 60%
    (Reading database ... 65%
    (Reading database ... 70%
    (Reading database ... 75%
    (Reading database ... 80%
    (Reading database ... 85%
    (Reading database ... 90%
    (Reading database ...
    
    95%
    (Reading database ... 100%
    (Reading database ... 
    
    232870 files and directories currently installed.)
    Preparing to unpack .../0-grub2-common_2.04-1ubuntu26_amd64.deb ...
    Unpacking grub2-common (2.04-1ubuntu26) over (2.04-1ubuntu26.1) ...
    dpkg: warning: downgrading grub-pc from 2.04-1ubuntu26.1 to 2.04-1ubuntu26
    Preparing to unpack .../1-grub-pc_2.04-1ubuntu26_amd64.deb ...
    Unpacking grub-pc (2.04-1ubuntu26) over (2.04-1ubuntu26.1) ...
    dpkg: warning: downgrading grub-pc-bin from 2.04-1ubuntu26.1 to 2.04-1ubuntu26
    Preparing to unpack .../2-grub-pc-bin_2.04-1ubuntu26_amd64.deb ...
    Unpacking grub-pc-bin (2.04-1ubuntu26) over (2.04-1ubuntu26.1) ...
    dpkg: warning: downgrading grub-efi-amd64-signed from 1.142.3+2.04-1ubuntu26.1 to 1.142+2.04-1ubuntu26
    Preparing to unpack .../3-grub-efi-amd64-signed_1.142+2.04-1ubuntu26_amd64.deb ...
    Unpacking grub-efi-amd64-signed (1.142+2.04-1ubuntu26) over (1.142.3+2.04-1ubuntu26.1) ...
    dpkg: warning: downgrading grub-efi-amd64-bin from 2.04-1ubuntu26.1 to 2.04-1ubuntu26
    Preparing to unpack .../4-grub-efi-amd64-bin_2.04-1ubuntu26_amd64.deb ...
    Unpacking grub-efi-amd64-bin (2.04-1ubuntu26) over (2.04-1ubuntu26.1) ...
    dpkg: warning: downgrading grub-common from 2.04-1ubuntu26.1 to 2.04-1ubuntu26
    Preparing to unpack .../5-grub-common_2.04-1ubuntu26_amd64.deb ...
    Unpacking grub-common (2.04-1ubuntu26) over (2.04-1ubuntu26.1) ...
    Setting up grub-common (2.04-1ubuntu26) ...
    update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
    Setting up grub-efi-amd64-bin (2.04-1ubuntu26) ...
    Setting up grub2-common (2.04-1ubuntu26) ...
    Setting up grub-pc-bin (2.04-1ubuntu26) ...
    Setting up grub-pc (2.04-1ubuntu26) ...
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-5.4.0-42-generic
    Found initrd image: /boot/initrd.img-5.4.0-42-generic
    Found linux image: /boot/vmlinuz-5.4.0-40-generic
    Found initrd image: /boot/initrd.img-5.4.0-40-generic
    /dev/sdc: open failed: No medium found
    /dev/sdc: open failed: No medium found
    Adding boot menu entry for UEFI Firmware Settings
    done
    Setting up grub-efi-amd64-signed (1.142+2.04-1ubuntu26) ...
    [B]Trying to migrate /boot/efi into esp config[/B]
    dpkg: error processing package grub-efi-amd64-signed (--configure):
    installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
    Processing triggers for man-db (2.9.1-1) ...
    Processing triggers for install-info (6.7.0.dfsg.2-5) ...
    Processing triggers for systemd (245.4-4ubuntu3.2) ...
    Errors were encountered while processing:
    grub-efi-amd64-signed
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Last edited by ©TriMoon™; Jul 30, 2020, 07:48 AM.
    Well thats all for now, 3M

    Comment


      #3
      Clearly I have no fear because after reading this I ran the upgrade myself. I had no issues:

      Code:
      [FONT=monospace]Setting up grub-efi-amd64-signed (1.93.18+2.02-2ubuntu8.16) ...
      Installing for x86_64-efi platform.
      Installation finished. No error reported.
      
      [/FONT]
      Last edited by mr_raider; Jul 30, 2020, 08:55 AM.

      Comment


        #4
        Originally posted by ©TriMoon™ View Post
        Even downgrading does not fix this WTH ...
        But rolling back would fix it in a minute or less.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Created pre-update snapshots - less than a minute
          Ran update for 84 packages.

          Setting up grub-pc (2.04-1ubuntu26.1) ...
          Installing for i386-pc platform.
          Installation finished. No error reported.
          Sourcing file `/etc/default/grub'
          Sourcing file `/etc/default/grub.d/init-select.cfg'
          Generating grub configuration file ...
          Found linux image: /boot/vmlinuz-5.4.0-42-generic
          Found initrd image: /boot/initrd.img-5.4.0-42-generic
          Found linux image: /boot/vmlinuz-5.4.0-40-generic
          Found initrd image: /boot/initrd.img-5.4.0-40-generic
          Found memtest86+ image: /@/boot/memtest86+.elf
          Found memtest86+ image: /@/boot/memtest86+.bin
          done


          $ apt policy grub-efi-amd64-bin
          grub-efi-amd64-bin:
          Installed: (none)
          Candidate: 2.04-1ubuntu26.1
          Version table:
          2.04-1ubuntu26.1 500
          500 http://ca.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
          2.04-1ubuntu26 500
          500 http://ca.archive.ubuntu.com/ubuntu focal/main amd64 Packages
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            I'm thinking of switching distro to OpenSuse Thumbleweed and just grab the signed shim from ubuntu's package for SecureBoot using Systemd-boot later today hopefully...
            Will have to adjust my script to be more general before that which i already planned to do...
            But these two steps can take a while cause its a bussy day for me today in RL...
            Last edited by ©TriMoon™; Jul 30, 2020, 10:29 PM.
            Well thats all for now, 3M

            Comment


              #7
              OpenSUSE is an excellent distro! You'll like it!
              IF I were to leave Kubuntu that's the distro I'd move to.
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                I am wondering of the package's post-install scripts were corrupted upon extraction, perhaps clearing the package cache and forcing a new package download may help?
                I see another batch of updated grub packages, though the bug reports associated don't seem at all related to the issue here.

                Comment


                  #9
                  Reading the OPs recent posts, I strongly suspect he is chronic tinkerer. He may very well have had some user initiated modifications to his grub setup or efi folders

                  I've installed the grub update in three PC's using KDe neon, Ubuntu mate and mint Xfce.

                  All three went fine

                  Sent from my HD1905 using Tapatalk

                  Comment

                  Working...
                  X