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

我无法卸载 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)

答案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

答案2

只需像这样添加组:

sudo addgroup ironhide

然后再次尝试移除 ironhide

sudo apt-get --purge remove ironhide

我现在将在此添加如何正确安装大黄蜂的说明: 让 gnome-shell 在 nvidia optimus 笔记本上运行

相关内容