Announcement

Collapse
No announcement yet.

grub-pc error after update

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

    grub-pc error after update

    This is what error i'm getting after update today...

    Setting up grub-pc (2.02~beta2-36ubuntu3.10) ...
    /var/lib/dpkg/info/grub-pc.postinst: line 703: syntax error near unexpected token `fi'
    dpkg: error processing package 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)

    I ran...
    sudo dpkg --configure -a

    but got this error...

    Setting up grub-pc (2.02~beta2-36ubuntu3.10) ...
    /var/lib/dpkg/info/grub-pc.postinst: line 703: syntax error near unexpected token `fi'
    dpkg: error processing package grub-pc (--configure):
    subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
    grub-pc

    how can i correct this?
    Last edited by eddieg538; May 19, 2017, 09:02 PM.
    Alienware 17 R2
    ​ 8 × Intel® Core™ i7-4720HQ CPU @ 2.60GHz
    ​ with Kubuntu 23.10
    Nvidia Graphics
    16 Ram
    Close Windows and open the world!!

    #2
    https://journalxtra.com/linux/fixing...essing-errors/

    Or

    https://unix.stackexchange.com/quest...lure-with-grub
    Last edited by GreyGeek; May 19, 2017, 11:11 PM.
    "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


      #3
      - Open in a text editor and with root privileges the file "/var/lib/dpkg/info/grub-pc.postinst";
      - Go to line 699 and manually add the missing ";" in the conditional expression before "then", like this:

      (line 699)> if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10; then
      --------------------------------------------------------------------------------------------------^^------
      - Save and close;
      - Now re-run in a terminal "sudo dpkg --configure grub-pc" and all should be fine.
      Last edited by bugmeinto; May 20, 2017, 09:29 AM.

      Comment


        #4
        Should I leave the semicolon after 3.10; or replace it with '';" like this:

        (line 699)> if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10; ";" then

        or

        (line 699)> if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10";" then
        Alienware 17 R2
        ​ 8 × Intel® Core™ i7-4720HQ CPU @ 2.60GHz
        ​ with Kubuntu 23.10
        Nvidia Graphics
        16 Ram
        Close Windows and open the world!!

        Comment


          #5
          No. You're line 699 is already correct. What does line 703 look like?
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            All line 703 has is fi

            However, there was an update today that seemed to fix the error. Thank you all.
            Alienware 17 R2
            ​ 8 × Intel® Core™ i7-4720HQ CPU @ 2.60GHz
            ​ with Kubuntu 23.10
            Nvidia Graphics
            16 Ram
            Close Windows and open the world!!

            Comment

            Working...
            X