我无法卸载Ironhide,或安装任何其他软件包

我安装了Ironhide(又名BumbleBee)。 它无法让它工作,但现在我无法卸载包,它阻止我安装或删除任何其他东西。 我有什么想法可以解决这个问题?

$ 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) 

我通过执行以下操作修复了此问题:

编辑了文件/var/lib/dpkg/info/ironhide.postrm

注释掉了以下内容:

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

然后我能够成功运行:

 $ sudo apt-get remove ironhide 

只需像这样添加组:

 sudo addgroup ironhide 

然后再次尝试去除铁皮

 sudo apt-get --purge remove ironhide 

我现在将在这里添加一个如何正确安装大黄蜂的方法: 让gnome-shell在nvidia optimus笔记本上运行