EddieLim78
New Member
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.
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: