I am facing an issue so strange in Xubuntu 18.04... I ran the following command after sudo apt update :
sudo apt upgrade
But it leads to an error :
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-image-5.0.0-36-generic : Depends: linux-modules-5.0.0-36-generic but it is not going to be installed
E: Broken packages
I assume that I must install linux-modules-5.0.0-36-generic, but I am not sure and I would do bad things... I am just a beginner in Linux environment.
Some details :
uname -a
>>Linux mistapopo-Aspire-A515-52G 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
When I run the following commands
sudo apt update
sudo apt dist-upgrade
I get the following log :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libllvm8
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/8 426 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up linux-image-unsigned-5.3.1-050301-generic (5.3.1-050301.201909210632) ...
Setting up linux-image-5.3.0-28-generic (5.3.0-28.30~18.04.1) ...
Setting up linux-image-5.3.0-26-generic (5.3.0-26.28~18.04.1) ...
Setting up linux-image-unsigned-5.3.1-050301-lowlatency (5.3.1-050301.201909210632) ...
Processing triggers for linux-image-unsigned-5.3.1-050301-generic (5.3.1-050301.201909210632) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.1-050301-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.1-050301-lowlatency
Found initrd image: /boot/initrd.img-5.3.1-050301-lowlatency
Found linux image: /boot/vmlinuz-5.3.1-050301-generic
Found initrd image: /boot/initrd.img-5.3.1-050301-generic
Found linux image: /boot/vmlinuz-5.3.0-28-generic
Found initrd image: /boot/initrd.img-5.3.0-28-generic
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-36-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
/usr/sbin/grub-mkconfig: 295: /usr/sbin/grub-mkconfig: /usr/bin/grub-script-check: not found
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-unsigned-5.3.1-050301-generic (--configure):
installed linux-image-unsigned-5.3.1-050301-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.3.0-28-generic (5.3.0-28.30~18.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-28-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.1-050301-lowlatency
Found initrd image: /boot/initrd.img-5.3.1-050301-lowlatency
Found linux image: /boot/vmlinuz-5.3.1-050301-generic
Found initrd image: /boot/initrd.img-5.3.1-050301-generic
Found linux image: /boot/vmlinuz-5.3.0-28-generic
Found initrd image: /boot/initrd.img-5.3.0-28-generic
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-36-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
/usr/sbin/grub-mkconfig: 295: /usr/sbin/grub-mkconfig: /usr/bin/grub-script-check: not found
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.3.0-28-generic (--configure):
installed linux-image-5.3.0-28-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.3.0-26-generic (5.3.0-26.28~18.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-26-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.1-050301-lowlatency
Found initrd image: /boot/initrd.img-5.3.1-050301-lowlatency
Found linux image: /boot/vmlinuz-5.3.1-050301-generic
Found initrd image: /boot/initrd.img-5.3.1-050301-generic
Found linux image: /boot/vmlinuz-5.3.0-28-generic
Found initrd image: /boot/initrd.img-5.3.0-28-generic
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-36-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
/usr/sbin/grub-mkconfig: 295: /usr/sbin/grub-mkconfig: /usr/bin/grub-script-check: not found
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.3.0-26-generic (--configure):
installed linux-image-5.3.0-26-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-unsigned-5.3.1-050301-lowlatency (5.3.1-050301.201909210632) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.1-050301-lowlatency
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.1-050301-lowlatency
Found initrd image: /boot/initrd.img-5.3.1-050301-lowlatency
Found linux image: /boot/vmlinuz-5.3.1-050301-generic
Found initrd image: /boot/initrd.img-5.3.1-050301-generic
Found linux image: /boot/vmlinuz-5.3.0-28-generic
Found initrd image: /boot/initrd.img-5.3.0-28-generic
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-36-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
/usr/sbin/grub-mkconfig: 295: /usr/sbin/grub-mkconfig: /usr/bin/grub-script-check: not found
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-unsigned-5.3.1-050301-lowlatency (--configure):
installed linux-image-unsigned-5.3.1-050301-lowlatency package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-image-unsigned-5.3.1-050301-generic
linux-image-5.3.0-28-generic
linux-image-5.3.0-26-generic
linux-image-unsigned-5.3.1-050301-lowlatency
E: Sub-process /usr/bin/dpkg returned an error code (1)