LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-16-2022, 01:07 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

Is that all the effort you're going to put in?

Anyhow, which one is line 403 please? No way I'm going to start counting lines now.

Also read the rest of the error message I highlighted for you. There's more to look at.
 
Old 05-16-2022, 01:17 AM   #17
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
And a more useful file would be /etc/default/grub itself, I believe.

Also, does your system dual boot Windows 10, and if so is that working right?
 
Old 05-16-2022, 03:50 AM   #18
rakitsa
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
line 402 menuentry "Windows 10"{
line 403 }

Yes, I have Windows 10. But grub does non show up. When I need windows, I simply press F11 and choose different drive to boot from.
 
Old 05-16-2022, 11:18 PM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ 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.
 
Old 05-17-2022, 05:07 AM   #20
rakitsa
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
I deleted the lines you suggested and repeated
Code:
export LC_ALL=C
sudo apt remove linux-image-5.11.0-44-generic
sudo apt --fix-broken install
this is the output (which is the same as before):
Code:
~>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"
 
Old 09-05-2022, 11:10 AM   #21
rakitsa
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Finally, I simply re-installed Kubuntu. There is no other ways of solving this problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After a Kubuntu update, Kubuntu can’t reboot vmelkon Ubuntu 3 06-28-2020 11:35 AM
Does Kubuntu 20.04 rely (and use by default) on snap packages in the same way Ubuntu does? wh33t Linux - Software 5 06-20-2020 11:47 AM
[SOLVED] Does slackpkg install new packages during update? Sefid par Slackware 2 08-22-2015 06:14 AM
How can I update from Kubuntu 7.10 to Kubuntu 8.10 without loosing my files? sandey Linux - Newbie 2 11-27-2008 09:07 AM
Allow google.com but not allow google subdomains in dansguardian paul_mat Linux - Networking 4 07-17-2006 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration