Saturday, May 4, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 3088  / 2 Years ago, tue, june 7, 2022, 8:38:57

I installed Ironhide (aka BumbleBee). It couldn't get it to work, but now I can't uninstall the package and it's preventing me from installing or removing anything else. Any ideas what I can do to fix this problem?



$ sudo apt-get remove -f ironhide
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
virtualgl acpi-call-dkms virtualgl-libs easybashgui
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
ironhide
0 upgraded, 0 newly installed, 1 to remove and 65 not upgraded.
1 not fully installed or removed.
After this operation, 1,901 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 297969 files and directories currently installed.)
Removing ironhide ...
groupdel: group 'ironhide' does not exist
dpkg: error processing ironhide (--remove):
subprocess installed post-removal script returned error exit status 6
Processing triggers for ureadahead ...
Errors were encountered while processing:
ironhide
E: Sub-process /usr/bin/dpkg returned an error code (1)

More From » package-management

 Answers
6

I've fixed this by doing the following:



Edited the file /var/lib/dpkg/info/ironhide.postrm



Commented out the lines:



if [ `cat /etc/group |grep ironhide |wc -l` > 0 ]; then
groupdel ironhide
fi


I was then able to successfully run:



$ sudo apt-get remove ironhide

[#42254] Thursday, June 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jectedrin

Total Points: 491
Total Questions: 105
Total Answers: 111

Location: Netherlands
Member since Mon, Jun 7, 2021
3 Years ago
;