Peppermint10 Ten i686Kernel: 5.4.0-67-generic. BootProblems (Monitor off?), Grub: Unterminated quoted string. OS upgradeFails. Need solution.Tq

EddieLim78

New Member
Credits
205
System:
OS: Peppermint 10 Ten i686
Kernel: 5.4.0-67-generic

**Problems:
1) I just *want to upgrade* my Peppermint10....but...errors..
(Already for days as at todate 31/Mac/2021 04:00am Malaysia)
2) *grub-pc* (purge or reinstallation) failed...with errors...
3) There is *NO DIRECTORY* /etc/default/grub? So, cannot uploads it...
4) Command *sudo dpkg --configure -a* doesnt works...?
5) Command *sudo apt-get dist-upgrade* failed..?**

[email protected] /etc/default/grub.d $ LC_ALL=C sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-5.4.0-71-generic (5.4.0-71.79~18.04.1) ...
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
Processing triggers for linux-image-5.4.0-71-generic (5.4.0-71.79~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-71-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-71-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-71-generic (--configure):
installed linux-image-5.4.0-71-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-70-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-70-generic (--configure):
installed linux-image-5.4.0-70-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-71-genericE: Sub-process /usr/bin/dpkg returned an error code (1)

[email protected] /etc/default $ ls
acpid crda kerneloops preload
acpi-support cron keyboard rsync
alsa dbus locale rsyslog
amd64-microcode grub motd-news speech-dispatcher
anacron grub.d networkd-dispatcher timeshift.json
avahi-daemon hddtemp nfs-common ufw
bsdmainutils im-config nss useradd
cacerts intel-microcode ntp
console-setup irqbalance openvpn
[email protected] /etc/default $ LC_ALL=C cd grub
***bash: cd: grub: Not a directory***
[email protected] /etc/default $ cd grub.d
[email protected] /etc/default/grub.d $ ls
***50_peppermint.cfg***

***So, i ***cannot upload directory*** "/etc/default/grub" to u ...***

[email protected] /var/lib/dpkg $ LC_ALL=C sudo update-grub
***Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string***

[email protected] /var/lib/dpkg $ ***LC_ALL=C sudo apt-get purge grub-pc***
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-gfxpayload-lists* grub-pc*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 625 kB disk space will be freed.
Do you want to continue? [Y/n] y
***dpkg: error: failed to open package info file '/var/lib/dpkg/available' for reading: No such file or directory
E: Sub-process dpkg --set-selections returned an error code (2)
E: Couldn't record the approved state changes as dpkg selection states***

[email protected] /var/lib/dpkg $ ***LC_ALL=C sudo apt-get install grub-pc***
Reading package lists... Done
Building dependency tree
Reading state information... Done
grub-pc is already the newest version (2.02-2ubuntu8.23).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-5.4.0-71-generic (5.4.0-71.79~18.04.1) ...
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
Processing triggers for linux-image-5.4.0-71-generic (5.4.0-71.79~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-71-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-71-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
***/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-71-generic (--configure):
installed linux-image-5.4.0-71-generic package post-installation script subprocess returned error exit status 1***
Processing triggers for linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-70-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-70-generic (--configure):
installed linux-image-5.4.0-70-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-71-generic
linux-image-5.4.0-70-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

[email protected] ~ $ ***LC_ALL=C sudo apt-get upgrade***
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
Processing triggers for linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-70-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
***Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string***
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-70-generic (--configure):
installed linux-image-5.4.0-70-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-70-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

[email protected] /boot/grub $ sudo LC_ALL=C dpkg --configure -a
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
Processing triggers for linux-image-5.4.0-70-generic (5.4.0-70.78~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-70-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 40: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.4.0-70-generic (--configure):
installed linux-image-5.4.0-70-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-70-generic

Any helps are very much appreciated.
 
Last edited:


KGIII

Super Moderator
Staff member
Gold Supporter
Credits
19,769
Hmm... I'll start with saying that I have no idea what's causing this. I'm also not all that familiar with Peppermint.

Can you share the contents of /etc/default/grub?

If the test is too long, you can use the spoiler tags. You can also post it on https://paste.linuxtips.gq and link to it.
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
15,812

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
15,812
(is a plain text file)
That is what we need.

For the benefit of The Viewers, Eddie's output is in my Spoiler below, just click to open, click to close

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

#Only 4 GB RAM or less: increase zswap
GRUB_CMDLINE_LINUX="zswap.max_pool_percent=40"
#
#
GRUB_CMDLINE_LINUX="resume=UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6

The problem is with the bottom line, which currently reads

GRUB_CMDLINE_LINUX="resume=UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6

That should have a close quotes " on the end of it.

So

GRUB_CMDLINE_LINUX="resume=UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6"

I'll be back in a few minutes and tell you how to edit it.

Wizard
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
15,812
OK, in Peppermint, the default graphical text editor is xed, that will be quickest for us.

1. Open Terminal and type in and enter

Code:
sudo xed /etc/default/grub
The Xed window will open and show you the text.

2. Go to the end of the last line and type in a " so that it reads as follows

Code:
GRUB_CMDLINE_LINUX="resume=UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6"
Save changes and exit the file.

3. In Terminal, type and enter

Code:
sudo update-grub
When that is complete, reboot and try to run your updates again.

Let us know how you go.

Wizard
 

EddieLim78

New Member
Credits
205
OK, in Peppermint, the default graphical text editor is xed, that will be quickest for us.

1. Open Terminal and type in and enter

Code:
sudo xed /etc/default/grub
The Xed window will open and show you the text.

2. Go to the end of the last line and type in a " so that it reads as follows

Code:
GRUB_CMDLINE_LINUX="resume=UUID=b9087aef-1d3d-4224-8370-b2b7de9cf5e6"
Save changes and exit the file.

3. In Terminal, type and enter

Code:
sudo update-grub
When that is complete, reboot and try to run your updates again.

Let us know how you go.

Wizard
it worked sir Wizard, tq..
Linux.org & u people r the best..
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
15,812
That's good to hear, Eddie.
:)

And thanks to David @KGIII for his preliminary input.

As a follow up may I suggest you close that Thread over at Stack Exchange, even let them know how it was solved?

And feel free to slip over to Member Introductions , and tell us a little of the Eddie Lim story, meet more people and perhaps make friends.

Enjoy your Linux.

Wizard
 

EddieLim78

New Member
Credits
205
That's good to hear, Eddie.
:)

And thanks to David @KGIII for his preliminary input.

As a follow up may I suggest you close that Thread over at Stack Exchange, even let them know how it was solved?

And feel free to slip over to Member Introductions , and tell us a little of the Eddie Lim story, meet more people and perhaps make friends.

Enjoy your Linux.

Wizard
Linux are Indeed really unbeatable...in terms of speed & stability, etc..

An innovation from & by god, & strongly backed by u people out there..& across the globe..

We as starter are really amazed..
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top