前几天更新ubuntu的时候,突然失败,仔细一看,是卸载老版本的gzip时候出了问题。错误信息:

install-info: No dir file specified; try --help for more information.

试了多个常用的手动卸载方法都没法搞定,于是求助google,很快找到答案。是GNU版的install-info代替了debian版的install-info造成的问题,覆盖回来就OK了。

不过作者分析问题的方法很值得学习,原文在blogspot上,所以全文转载之。

First, the problem.

I was trying to do sudo apt-get upgrade when it stopped on me giving this error

Setting up findutils (4.4.0-3) ...

install-info: No dir file specified; try --help for more information.

dpkg: error processing findutils (--configure):

subprocess post-installation script returned error exit status 1

Errors were encountered while processing:

findutils

W: No priority (or zero) specified for pin

E: Sub-process /usr/bin/dpkg returned an error code (1)

Well, I tried googling it up, without considerable success. Finally, I found this on Debian Bug report logs.

Apparently, there are packages named install-info. One, a GNU version, another, a Debian provided package.

The-Matrix% whereis install-info

install-info: /usr/sbin/install-info /usr/local/bin/install-info /usr/share/man/man8/install-info.8.gz

The-Matrix% /usr/sbin/install-info --version

Debian install-info version 1.14.25.

Copyright (C) 1994,1995 Ian Jackson.

This is free software; see the GNU General Public Licence version 2 or

later for copying conditions. There is NO warranty.

The-Matrix% /usr/local/bin/install-info --version

install-info (GNU texinfo) 4.13

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

And they have problems. The idea of replacing the Debian's version with the GNU's has been forwarded, but I'm not sure of the progress. For all I care, the problem hasn't been solved.

As the link provided says, "It is not Debian's fault if someone has GNU's install-info in

$PATH before /usr/sbin/install-info - don't mess with the packaging system,

you'll just get in trouble."

Now, the solution.

Get the /usr/sbin into the $PATH variable before /usr/local/bin, or essentially, do something that would get dpkg to find the Debian's version of install-info. I did the latter, leaving $PATH as it was. Just renamed the GNU's version of install-info

The-Matrix% sudo mv /usr/local/bin/install-info /usr/local/bin/install-info-gnuAnd it works. ;)

linux无法删除软件,Linux某些软件无法卸载问题相关推荐

  1. linux 安装删除命令,Linux如何使用命令行卸载安装包

    导读 严格地说,Linux是内核.Linux发行版由Linux内核.安装脚本.shell.编译器.桌面和其他组件组成.因此,卸载包或软件的Linux命令取决于Linux发行版的名称和类型.本文说明如何 ...

  2. linux 命令删除命令,Linux 命令之删除命令

    在Linux下删除文件用rm命令,具体用法如下: rm [选项] 文件 选项说明: -f -force 忽略不存在的文件,强制删除,无任何提示 -i --interactive 进行交互式地删除 -r ...

  3. linux如何删除日志,linux 删除日志

    https://jingyan.baidu.com/album/c1a3101e73129ade656deb9d.html?picindex=2 里面的 ls -s 可以看到目录 https://zh ...

  4. linux文件删除机制,Linux 文件删除机制

    Linux 是通过 link 的数量来控制文件删除,只有当一个文件不存在任何 link 的时候,这个文件才会被删除.每个文件都有 2 个 link 计数器-- i_count 和 i_nlink.i_ ...

  5. linux vim 删除 h,Linux VIM 的使用快捷键之删除, 复制, 粘贴

    Linux VIM 的使用快捷键之删除, 复制, 粘贴 注: 以下删除, 复制和粘贴均是在非编辑模式下的操作 (esc) 一, 删除 x 小写的 x 表示向后删除一个字符, 也就是删除光标所在字符 n ...

  6. linux c 删除文件,linux c remove 删除文件或目录函数

    linux c remove 删除文件或目录函数 头文件:#include remove()函数用于删除指定的文件,其原型如下: int remove(char * filename); [参数]fi ...

  7. linux lvm删除分区,Linux LVM中的PV物理卷(硬盘或分区)删除方法

    LVM的全称为Logical Volume Manager,它是Linux环境下对磁盘分区进行管理的一种机制,LVM是建立在硬盘和分区之上的一个逻辑层,来提高磁盘分区管理的灵活性.那么该如何对PV物理 ...

  8. Linux系统删除Firefox,Linux系统如何卸载安装火狐浏览器

    无论是Windows系统还是Linux系统,浏览器出现故障有也是会有发生的事情,那么,在Linux系统下,如何卸载重新安装浏览器呢?我们以火狐浏览器为例,来说明如何在Linux系统下卸载重装火狐浏览器 ...

  9. linux rm 删除文件,linux rm命令删除文件详解

    linux rm命令删除文件详解 linux中rm命令可以删除一个目录中的一个或多个文件或目录,也可以将某个目录及其下属的所有文件及其子目录均删除掉.对于链接文件,只是删除整个链接文件,而原有文件保持 ...

  10. linux vsftpd删除用户,Linux/CentOS添加/删除FTP用户并设置权限

    在linux中添加ftp用户,并设置相应的权限,操作步骤如下: 1.环境:ftp为vsftp.被设置用户名为test.被限制路径为/alidata/www/test 2.建用户:在root用户下: u ...

最新文章

  1. Nature综述:进化病毒毒力的系统发育基因组学
  2. cortex m3 gcc项目_广东省住建厅党组书记赵坤到公司陆丰市污水PPP项目实地调研...
  3. spring-boot(二)
  4. Canvas绘制星球轨迹移动
  5. 520 钻石争霸赛 7-8浪漫侧影(二叉树的遍历)
  6. 某8位微型计算机地址码为18位,2015广东海洋大学计算机组成原理试题
  7. tcpreplay,tcprewrite的使用
  8. 主数据文件损坏(或丢失)情况下,如何备份尾部事务日志.
  9. mysql安装教程【安装版】
  10. cpu压测 windows_小白求问怎么用AIDA64进行CPU压力测试
  11. 虚拟机ip地址怎么设置
  12. UML(thinking in uml 学习)--参与者和业务工人和涉众
  13. 年终总结,怎么写领导才满意?
  14. PCIe Receiver内部恢复时钟与本地时钟
  15. 科研绘图之R语言生存分析KM曲线累计风险表放在图片内部
  16. 证券交易api 查询证券编码及基本上市信息
  17. Linux如何解决root用户Operation not permitted
  18. dive into openstack ovn (by quqi99)
  19. php 扩展开发,PHP扩展开发,做一个属于自己的PHP扩展吧
  20. centos7中安装pip

热门文章

  1. python--数据结构--二叉排序树
  2. c3p0plugin mysql,四十八、5.12 多数据源支持
  3. 按图搜索1688商品接口(item_search_img-按图搜索1688商品(拍立淘接口)代码对接教程
  4. Arcpy批量导出shp文件属性表——使用arcpy.da.SearchCursor函数
  5. 学计算机投影仪定义,一种计算机教学用投影仪射头的制作方法
  6. 环保设施运行在线监控
  7. python 调用接口
  8. 无为才能够无不为-曾仕强
  9. norflash 分析
  10. 大数问题:大数加法 与 大数乘法 最简单大数乘法