bash syntax error in the postinst script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Description: Ubuntu 16.04.2 LTS
Release: 16.04
grub-efi-amd64:
Installed: 2.02~beta2-
Candidate: 2.02~beta2-
Version table:
*** 2.02~beta2-
500 http://
100 /var/lib/
2.
500 http://
2.
500 http://
Line 699 of the following post-installation script
/var/lib/
reads thus, after the latest update.
if dpkg --compare-versions "$2" lt-nl 2.02~beta2-
Notice the missing semicolon before the then clause of the if statement.
It should really be
if dpkg --compare-versions "$2" lt-nl 2.02~beta2-
Fortunately, I noticed the issue from the dist-upgrade output, and fixed it before rebooting the machine as requested by Software Updater, or there is no telling where I could have been stuck.
After patching it, one needs to rerun
sudo apt -y dist-upgrade
so the postinst script is actually correctly run.
This is a major bug for an LTS release.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: grub-efi-amd64 2.02~beta2-
ProcVersionSign
Uname: Linux 4.4.0-79-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Sat May 20 12:20:02 2017
InstallationDate: Installed on 2016-05-23 (361 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
JournalErrors:
Error: command ['journalctl', '-b', '--priority=
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
The attachment "This file has just a single semicolon more than the original shipped with the latest update." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]