首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能卸载铁皮,也不能安装任何其他软件包

我不能卸载铁皮,也不能安装任何其他软件包
EN

Ask Ubuntu用户
提问于 2011-11-06 15:37:35
回答 2查看 2.9K关注 0票数 2

我安装了铁皮(又名BumbleBee)。它无法使它工作,但现在我不能卸载软件包,这是阻止我安装或删除任何其他东西。我有什么办法解决这个问题吗?

代码语言:javascript
复制
$ 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)
EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2011-11-06 15:42:17

我通过以下操作修正了这个问题:

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

评论了以下几行:

代码语言:javascript
复制
if [ `cat /etc/group |grep ironhide |wc -l` > 0 ]; then
        groupdel ironhide
fi

然后,我成功地运行了:

代码语言:javascript
复制
$ sudo apt-get remove ironhide
票数 5
EN

Ask Ubuntu用户

发布于 2012-01-14 17:08:40

只需添加这样的组:

代码语言:javascript
复制
sudo addgroup ironhide

然后再尝试移除铁皮。

代码语言:javascript
复制
sudo apt-get --purge remove ironhide

现在我将在这里添加一个如何正确安装大黄蜂的方法:让gnome开发nvidia optimus笔记本电脑

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/76070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档