前几天更新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. 在读研、竞赛和实习中追求平衡
  2. python与excel结合-Python与Excel 不得不说的事情
  3. python简单代码画图-Python竟能画这么漂亮的花,帅呆了(代码分享)
  4. 排序算法:归并排序、快速排序
  5. window 查找 java 进程中占用cpu比较高的线程
  6. DGL教程【四】使用GNN进行链路预测
  7. Golang 处理 Json(二):解码
  8. 【数据结构与算法】【算法思想】贪心算法
  9. c++获得cpu厂商_【C++】WMI获取系统硬件信息(CPU/DISK/NetWork etc)
  10. LeetCode-13.罗马数字转整数
  11. BZOJ 1725: [Usaco2006 Nov]Corn Fields牧场的安排
  12. Xcode在 release 模式下断点调试
  13. SSD固态硬盘知识简介
  14. 平面设计素材的优秀网站有哪些?好用的都放在这里啦!
  15. via浏览器下载路径_via浏览器
  16. unity 调整画布大小_使用画布,拖放和File API调整图像大小
  17. linux按目录名查找目录_如何在Linux中查找目录?
  18. DY(抖音)、KS(快手)、西瓜、知乎等批量去水印小程序版本可视化版本
  19. MacOS Monterey 12.4 (21F79) OC 0.8.0 / Cl 5146 / PE 三分区原版黑苹果镜像
  20. android camera 全屏,Android Camera做全屏预览之最简单方法.doc

热门文章

  1. 在虚拟机上安装mysql
  2. CT图像分割dicom文件与nii.gz文件预处理----窗宽(window width)和窗位(window level)的设置
  3. 阿里云 CDN 问题排查
  4. js 去掉字符串最后一个逗号
  5. MySQL 修改数据表sql语句
  6. python-基础语法
  7. jQuery添加css样式/动画效果
  8. 安科瑞电气火灾监控系统对分散在建筑内的探测器进行遥测、遥调、遥控、遥信,方便实现监控与管理。
  9. 数据库与身份认证:MySQL的基本使用
  10. 声学参数-基频-Librosa标准: 基频的文字定义和用librosa提取wav文件基频