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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2023, 06:50 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Rep: Reputation: 20
Can not remove grml-rescueboot


I tried to remove grml-rescueboot package and I get this error from synaptic and console...
Code:
Inspiron-660:~$ sudo apt remove grml-rescueboot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  grml-rescueboot
0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.
1 not fully installed or removed.
After this operation, 39.9 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 200301 files and directories currently installed.)
Removing grml-rescueboot (0.5.0) ...
Updating grub.cfg to make sure there are no non-existing entries being left.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-57-generic
Found initrd image: /boot/initrd.img-5.15.0-57-generic
Found linux image: /boot/vmlinuz-5.15.0-56-generic
Found initrd image: /boot/initrd.img-5.15.0-56-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Grml ISO image: /boot/grml/debian-live-11.6.0-amd64-gnome.iso
error: $.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 301
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.
dpkg: error processing package grml-rescueboot (--remove):
 installed grml-rescueboot package post-removal script subprocess returned error
 exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 grml-rescueboot
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried autoremove and clean and they also fail. Whats the reason and solution?
Thanks
 
Old 01-12-2023, 07:30 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

from the error message is looks like there is a syntax error at line 301 /etc/default/grub or perhaps one of the files under /etc/grub.d/. I suggest you check.

Evo2.
 
Old 01-12-2023, 08:39 PM   #3
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Original Poster
Rep: Reputation: 20
I had an error in my 40_custom file in a script I was working on. Never had any errors until I tried to remove grml. I deleted the script and all works again.
 
  


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
grub grml iso rescueboot saga continues prices1950 Bodhi 9 07-06-2020 11:36 PM
Can grml's isofrom option be used to boot from non-grml ISOs?? firewiz87 Linux - Distributions 1 08-31-2009 12:09 AM
LXer: Release Notes for grml 2009.05 - codename Lackdose-Allergie LXer Syndicated Linux News 0 06-02-2009 04:20 AM
What about Grml distro frenchn00b Linux - Distributions 1 01-14-2008 03:58 PM
GRML LiveCD - X Window Background Image jlgreer1 Linux - General 4 07-18-2006 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 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