You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



[ BUG ] Possible bug in Grub in latest Install Updates

Author (Read 12727 times)

0 Members and 1 Guest are viewing this topic.

Possible bug in Grub in latest Install Updates
« on: May 20, 2017, 09:59:05 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Looks to me like there could be a bug in the latest version of Grub.

IMPORTANT: If you are planning to do updates, DON'T. Not until there is more word on this.

Those that have, may see a message similar to the following in their log:

Code: [Select]
Setting up grub-common (2.02~beta2-36ubuntu3.10) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub2-common (2.02~beta2-36ubuntu3.10) ...
Setting up grub-pc-bin (2.02~beta2-36ubuntu3.10) ...
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

Ubuntu is bound to catch this so please wait for further instructions and don't not update yet if you haven't already.

Stay tuned :)
Last Edit: May 20, 2017, 11:25:26 AM by Jerry
 


Re: Possible bug in Grub in latest Install Updates
« Reply #1 on: May 20, 2017, 10:11:58 AM »
 

BritBloke

  • New to Forums
  • *
  • 1
    Posts
  • Country: nl
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.4 32bit

  • MEMORY: 4Gb
Got the same error message : --
Code: [Select]
=====================
E: grub-pc: subprocess installed post-installation script returned error exit status 2

Selecting previously unselected package libsignon-glib1:i386.
(Reading database ... 216243 files and directories currently installed.)
Preparing to unpack .../libsignon-glib1_1.13+16.04.20151209.1-0ubuntu1_i386.deb ...
Unpacking libsignon-glib1:i386 (1.13+16.04.20151209.1-0ubuntu1) ...
Selecting previously unselected package libaccounts-glib0:i386.
Preparing to unpack .../libaccounts-glib0_1.21+16.04.20160222-0ubuntu1_i386.deb ...
Unpacking libaccounts-glib0:i386 (1.21+16.04.20160222-0ubuntu1) ...
Selecting previously unselected package libexiv2-14:i386.
Preparing to unpack .../libexiv2-14_0.25-2.1ubuntu16.04.1_i386.deb ...
Unpacking libexiv2-14:i386 (0.25-2.1ubuntu16.04.1) ...
Selecting previously unselected package libgexiv2-2:i386.
Preparing to unpack .../libgexiv2-2_0.10.3-2_i386.deb ...
Unpacking libgexiv2-2:i386 (0.10.3-2) ...
Selecting previously unselected package shotwell-common.
Preparing to unpack .../shotwell-common_0.22.0+git20160108.r1.f2fb1f7-0ubuntu1_all.deb ...
Unpacking shotwell-common (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Selecting previously unselected package shotwell.
Preparing to unpack .../shotwell_0.22.0+git20160108.r1.f2fb1f7-0ubuntu1_i386.deb ...
Unpacking shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libglib2.0-0:i386 (2.48.2-0ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
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
Setting up libsignon-glib1:i386 (1.13+16.04.20151209.1-0ubuntu1) ...
Setting up libaccounts-glib0:i386 (1.21+16.04.20160222-0ubuntu1) ...
Setting up libexiv2-14:i386 (0.25-2.1ubuntu16.04.1) ...
Setting up libgexiv2-2:i386 (0.10.3-2) ...
Setting up shotwell-common (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Setting up shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
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
Last Edit: May 21, 2017, 12:40:39 AM by Jerry
 

Re: Possible bug in Grub in latest Install Updates
« Reply #2 on: May 20, 2017, 10:16:17 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Follow the thread here if you're interested - https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1692215
 

Re: Possible bug in Grub in latest Install Updates
« Reply #3 on: May 20, 2017, 10:46:45 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Those brave enough to fix this themselves can do the following to fix:

Code: [Select]
sudo leafpad /var/lib/dpkg/info/grub-pc.postinst
change line 699 from:

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

to:

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

notice the added semicolon after ubuntu3.10

Then run:

Code: [Select]
sudo dpkg --configure grub-pc
Please confirm this fix works.
Last Edit: May 21, 2017, 12:41:03 AM by Jerry
 

Re: Possible bug in Grub in latest Install Updates
« Reply #4 on: May 20, 2017, 11:04:00 AM »
 

Ottawagrant

  • Forum Regular
  • ***
  • 182
    Posts
  • Country: ca
  • Reputation: 28
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: Intel Duo Core 2 E8400 @ 3.00GHz

  • MEMORY: 12Gb

  • VIDEO CARD: Mesa DRI Intel Q45/Q43
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.
 

Re: Possible bug in Grub in latest Install Updates
« Reply #5 on: May 20, 2017, 11:19:34 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
So you've encountered the exact same updates error as above have you?

Sent from my Mobile phone using Tapatalk

 

Re: Possible bug in Grub in latest Install Updates
« Reply #6 on: May 20, 2017, 11:48:58 AM »
 

Ottawagrant

  • Forum Regular
  • ***
  • 182
    Posts
  • Country: ca
  • Reputation: 28
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: Intel Duo Core 2 E8400 @ 3.00GHz

  • MEMORY: 12Gb

  • VIDEO CARD: Mesa DRI Intel Q45/Q43
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.
 

Re: Possible bug in Grub in latest Install Updates
« Reply #7 on: May 20, 2017, 12:09:08 PM »
 

elelme

  • Occasional Poster
  • **
  • 86
    Posts
  • Country: us
  • Reputation: 9

  • Linux Lite: 4.6 64bit

  • CPU: i3

  • MEMORY: 4Gb

  • VIDEO CARD: Intel
I thought, being a novice, that I broke the distro, finally...
THANKS for the alert. Had just about decided that LL was just
another disappointment..Whew! So glad to know it was not Linux Lite and not me, either. 
Last Edit: May 20, 2017, 03:26:24 PM by elelme
 

Re: Possible bug in Grub in latest Install Updates
« Reply #8 on: May 20, 2017, 12:55:54 PM »
 

jonno O

  • New to Forums
  • *
  • 5
    Posts
  • Country: my
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.4 32bit

  • CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-52

  • MEMORY: 1Gb

  • VIDEO CARD: AMD ATI RS482M [Mobility Radeon Xpress 200]
updated before i saw your message :-[ came out with error as you mentioned.
 

Re: Possible bug in Grub in latest Install Updates
« Reply #9 on: May 20, 2017, 03:06:27 PM »
 

bluzeo

  • Linux Magazine writer
  • PayPal Supporter
  • Forum Regular
  • *****
  • 218
    Posts
  • Country: us
  • Reputation: 45
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: Amd 8 core

  • MEMORY: 16Gb

  • VIDEO CARD: GT 210
So if I updated the source to install something this be an bad idea?? For now!?


God not dead! He roaring like an Lion.
hey guys im Bluzeo and Linux Lite user that got his own open source company!
 

Re: Possible bug in Grub in latest Install Updates
« Reply #10 on: May 20, 2017, 05:44:03 PM »
 

supergamer

  • Forum Regular
  • ***
  • 119
    Posts
  • Country: us
  • Reputation: 24
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: AMD Phenom 565

  • MEMORY: 12Gb

  • VIDEO CARD: 550 ti
I just checked a vm install and updated. I can report no issues so there was already a pushed out update to fix this on grub-common.
Code: [Select]
2.02~beta2-36ubuntu3.11This is what is showed now.
 

Re: Possible bug in Grub in latest Install Updates
« Reply #11 on: May 20, 2017, 11:09:42 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Bug has been patched by Ubuntu and is currently being distributed to global repos. USA looks to have got it first.
 

Re: Possible bug in Grub in latest Install Updates
« Reply #12 on: May 20, 2017, 11:16:46 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Run this check first:

Code: [Select]
sudo apt-get update
Code: [Select]
apt policy grub-pc
If it does not report in the Candidate line:

Code: [Select]
grub-pc:
  Candidate: 2.02~beta2-36ubuntu3.11

The updated packages are not available in your Countries repos yet.

Run the above commands once a day until you show the above version.

Buggy version:

2.02~beta2-36ubuntu3.10

Fixed, updated version:

2.02~beta2-36ubuntu3.11
Last Edit: May 21, 2017, 01:41:21 PM by Jerry
 

Re: Possible bug in Grub in latest Install Updates
« Reply #13 on: May 21, 2017, 09:07:30 AM »
 

Artim

  • Always Learning
  • PayPal Supporter
  • I come here a lot
  • *****
  • 334
    Posts
  • Country: us
  • Reputation: 45
  • I must be weird to love school
    • Confessions of a Technophobe

  • Linux Lite: 4.4 64bit

  • CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz

  • MEMORY: 3Gb

  • VIDEO CARD: Mobile GM965/GL960 Integrated Graphics Controller
It seems weird that there is beta software in a beginner's distro (not just for beginners, of course).  Newcomers to Linux should not be unwitting beta testers! 

I'm glad upstream caught it and replaced the buggy version, but even the replacement is beta.  I have learned to be very selective with updates.

 

Re: Possible bug in Grub in latest Install Updates
« Reply #14 on: May 21, 2017, 09:35:09 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
It's extremely rare in Linux Lite. So much so that this is the first time it's ever happened from an Ubuntu repository in our OS. Not bad for a distribution that's been around since 2012.

Sent from my Mobile phone using Tapatalk

 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.