[Bug 536867] Re: grub-pc cannot be installed or uninstalled

Launchpad Bug Tracker 536867 at bugs.launchpad.net
Mon Feb 8 04:17:34 UTC 2016


[Expired for grub2 (Ubuntu) because there has been no activity for 60
days.]

** Changed in: grub2 (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/536867

Title:
  grub-pc cannot be installed or uninstalled

Status in grub2 package in Ubuntu:
  Expired

Bug description:
  Binary package hint: grub2

  My system is a 64 bit version of 9.10.  I have my boot drive with two
  physical disks in a raid 1 using mdadm.  I upgraded from 9.04, so
  grub-pc was not part of the upgrade.  However, my grub menu stopped
  working (didn't listen to ESC at boot up) so I tried to install grub2
  (grub-pc).

  The apt-get installation of grub-pc failed, but first uninstalled
  grub.  I needed to boot from a live CD and use its version of grub
  (grub-pc refused to write to a RAID array) to get my system booting
  again.  Although my system boots now, I can now no longer install
  either grub or grub-pc.

  I'm posting the apt-get messages I get when trying to fix my system
  below.  I would be happy with any solution that leaves me with a
  functioning version of grub or grub-pc.

  Thanks!

  Patrick

  pgill at megalodon:~$ sudo apt-get install grub
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Suggested packages:
    grub-doc
  The following packages will be REMOVED:
    grub-pc
  The following NEW packages will be installed:
    grub
  0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  1 not fully installed or removed.
  Need to get 0B/903kB of archives.
  After this operation, 188kB of additional disk space will be used.
  Do you want to continue [Y/n]? Y
  Preconfiguring packages ...
  (Reading database ... 319988 files and directories currently installed.)
  Removing grub-pc ...
  dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
  dpkg: error processing grub-pc (--remove):
   subprocess installed pre-removal script returned error exit status 2
  dpkg (subprocess): unable to execute installed post-installation script: Exec format error
  dpkg: error while cleaning up:
   subprocess installed post-installation script returned error exit status 2
  Errors were encountered while processing:
   grub-pc
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  pgill at megalodon:~$ sudo apt-get install grub-pc
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  grub-pc is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 0B of additional disk space will be used.
  Setting up grub-pc (1.97~beta4-1ubuntu4.1) ...
  dpkg (subprocess): unable to execute installed post-installation script: Exec format error
  dpkg: error processing grub-pc (--configure):
   subprocess installed post-installation script returned error exit status 2
  Errors were encountered while processing:
   grub-pc
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  pgill at megalodon:~$ 

  
  pgill at megalodon:~$ apt-cache policy dpkg
  dpkg:
    Installed: 1.15.4ubuntu2
    Candidate: 1.15.4ubuntu2
    Version table:
   *** 1.15.4ubuntu2 0
          500 http://us.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status
  pgill at megalodon:~$ apt-cache policy grub
  grub:
    Installed: (none)
    Candidate: 0.97-29ubuntu59
    Version table:
       0.97-29ubuntu59 0
          500 http://us.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status
  pgill at megalodon:~$ apt-cache policy grub-pc
  grub-pc:
    Installed: 1.97~beta4-1ubuntu4.1
    Candidate: 1.97~beta4-1ubuntu4.1
    Version table:
   *** 1.97~beta4-1ubuntu4.1 0
          500 http://us.archive.ubuntu.com karmic-updates/main Packages
          500 http://security.ubuntu.com karmic-security/main Packages
          100 /var/lib/dpkg/status
       1.97~beta4-1ubuntu3 0
          500 http://us.archive.ubuntu.com karmic/main Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/536867/+subscriptions



More information about the foundations-bugs mailing list