General > Security & Bug Fixes

Possible bug in Grub in latest Install Updates

<< < (12/13) > >>

Ottawagrant:
When I booted up my computer first thing this morning I updated the computer. Error. So I came here to see if anyone else had it. they did. After I modified grub-pc.postinst I was trapped into making a choice between 6 choices in terminal. I also found that while terminal was open I couldn't come to the forum & post a reply. I remember having a similar situation to this back in Linux Lite series 1. The choice I made at the time was "install the package maintainers version". Also doing a side-by-side comparison of the first 2 choices the first choice (package maintainer) was a newer version than the second choice. 50 - 50 choice I figured, so I went with choice number 1 - "install the package maintainers version". Entered it, it installed it, no error. Rebooted the computer & all seems well. Running update it tells me that my system is up to date. But as I mentioned you do have to actually go to /var/lib/dpkg/info & right-click grub-pc.postinst to change it. It won't open via terminal.

Jerry:
So you've encountered the exact same updates error as above have you?

Sent from my Mobile phone using Tapatalk

Ottawagrant:
Hi Jerry: When you try to run the command in terminal you get an error that it can't open it because it's a directory. But if you go to the file itself & right-click 'open as administrator', it'll open. I changed the line (#699), saved & then ran the sudo grub update in terminal. BUT! You then get a choice of:
-install the package maintainers version
-keep the local version installed
-show the differences between the versions
-show a side-by-side difference between the versions
-show a 3-way difference between available versions
-do a 3-way merge between available versions (experimental)
-start a new shell to examine the situation

Which do I select? I'm just going to keep the terminal window open until you, or someone else posts a reply & then I'll let you know what happened.

Jerry:
Those brave enough to fix this themselves can do the following to fix:


--- Code: ---sudo leafpad /var/lib/dpkg/info/grub-pc.postinst
--- End code ---

change line 699 from:


--- Code: ---        if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10 then

--- End code ---

to:


--- Code: ---        if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10; then

--- End code ---

notice the added semicolon after ubuntu3.10

Then run:


--- Code: ---sudo dpkg --configure grub-pc
--- End code ---

Please confirm this fix works.

Jerry:
Follow the thread here if you're interested - https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1692215

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version