[SOLVED] kubuntu 20.04 does not allow to update or install new packages
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
^ Delete that, try again.
And once again, the section of code I highlighted for you mentions 2 more locations, none of which you addressed so far.
Also give us the output of 'sudo os-prober'.
And make sure none of it is cyrillic. While I can read it, I probably won't understand much.
Unless you adress ALL requests this is the last time I'm posting here.
~>export LC_ALL=C
~>sudo apt remove linux-image-5.11.0-44-generic
[sudo] password for rakitsa:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-modules-5.13.0-30-generic : Depends: linux-image-5.13.0-30-generic but it is not going to be installed or
linux-image-unsigned-5.13.0-30-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
~>sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Suggested packages:
linux-doc | linux-hwe-5.13-source-5.13.0 linux-hwe-5.13-tools linux-headers-5.13.0-30-generic
linux-modules-extra-5.13.0-30-generic
The following packages will be REMOVED:
linux-image-5.13.0-30-generic
The following NEW packages will be installed:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
0 upgraded, 2 newly installed, 1 to remove and 93 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.6 MB of archives.
After this operation, 97.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: linux-image-5.13.0-30-generic: dependency problems, but removing anyway as you requested:
linux-modules-5.13.0-30-generic depends on linux-image-5.13.0-30-generic | linux-image-unsigned-5.13.0-30-generic; however:
Package linux-image-5.13.0-30-generic is to be removed.
Package linux-image-unsigned-5.13.0-30-generic is not installed.
(Reading database ... 756487 files and directories currently installed.)
Removing linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-30-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
using custom appearance settings
Found linux image: /boot/vmlinuz-5.13.0-39-generic
Found initrd image: /boot/initrd.img-5.13.0-39-generic
Found linux image: /boot/vmlinuz-5.13.0-37-generic
Found initrd image: /boot/initrd.img-5.13.0-37-generic
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-generic
Found linux image: /boot/vmlinuz-5.13.0-28-generic
Found initrd image: /boot/initrd.img-5.13.0-28-generic
Found linux image: /boot/vmlinuz-5.13.0-27-generic
Found initrd image: /boot/initrd.img-5.13.0-27-generic
Found linux image: /boot/vmlinuz-5.13.0-25-generic
Found initrd image: /boot/initrd.img-5.13.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 403
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/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.13.0-30-generic (--remove):
installed linux-image-5.13.0-30-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.13.0-30-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
~>sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-5.11.0-44-generic : Depends: linux-modules-5.11.0-44-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The other highlighted suggestion was to "to ensure that the following file (/etc/default/grub) has no errors" (I have no idea where the errors could be):
Code:
# 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="Ubuntu"
#GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="usbcore usbcore.autosuspend=-1.autosuspend=-1 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="1024x768x24"
# 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"
GRUB_SAVEDEFAULT="false"
export GRUB_COLOR_NORMAL="light-cyan/black"
export GRUB_COLOR_HIGHLIGHT="black/yellow"
export GRUB_MENU_PICTURE="/home/rakitsa/Pictures/osenj.jpg"
GRUB_FONT="/boot/grub/unicode.pf2"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.