如何解决dpkg: error processing install-info

2025-10-20 18:54:08

1、将info文件夹更名

命令如下:

root@wangguan-ubuntu:~# mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/

2、再新建一个新的info文件夹 

命令如下:

root@wangguan-ubuntu:~# mkdir /var/lib/dpkg/info/

3、apt-get update

命令如下:

root@wangguan-ubuntu:~# apt-get update

信息如下:

忽略 http://dl.google.com stable InRelease

命中 http://dl.google.com stable Release.gpg                                 

命中 http://dl.google.com stable Release                                     

命中 http://dl.google.com stable/main amd64 Packages                         

命中 http://dl.google.com stable/main i386 Packages                          

忽略 http://cn.archive.ubuntu.com saucy InRelease                            

忽略 http://cn.archive.ubuntu.com saucy-updates InRelease                    

忽略 http://cn.archive.ubuntu.com saucy-backports InRelease      

...

忽略 http://security.ubuntu.com saucy-security/universe Translation-zh_CN

忽略 http://security.ubuntu.com saucy-security/universe Translation-zh

正在读取软件包列表... 完成

4、重新安装 

命令如下:

root@wangguan-ubuntu:~# apt-get -f install

信息如下:

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 296 个软件包未被升级。

有 1 个软件包没有被完全安装或卸载。

解压缩后会消耗掉 0 B 的额外空间。

正在设置 install-info (5.1.dfsg.1-4ubuntu1) ...

5、执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下 

命令如下:

root@wangguan-ubuntu:~# mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/

6、把自己新建的info文件夹删掉 

命令如下:

root@wangguan-ubuntu:~# rm -rf /var/lib/dpkg/info

7、把info_old文件夹重新改回info 

命令如下:

root@wangguan-ubuntu:~# mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/

8、至此 apt-get 重新安装完毕。

再一次安装 traceroute

命令如下:

root@wangguan-ubuntu:~# apt-get install inetutils-traceroute traceroute

信息如下:

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

下列【新】软件包将被安装:

  inetutils-traceroute traceroute

升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 296 个软件包未被升级。

需要下载 0 B/87.1 kB 的软件包。

解压缩后会消耗掉 434 kB 的额外空间。

Selecting previously unselected package traceroute.

(正在读取数据库 ... 系统当前共安装有 187398 个文件和目录。)

正在解压缩 traceroute (从 .../traceroute_1%3a2.0.19-3_amd64.deb) ...

Selecting previously unselected package inetutils-traceroute.

正在解压缩 inetutils-traceroute (从 .../inetutils-traceroute_2%3a1.9.1.306-0a482-1_amd64.deb) ...

正在处理用于 man-db 的触发器...

正在设置 traceroute (1:2.0.19-3) ...

update-alternatives: using /usr/bin/traceroute.db to provide /usr/bin/traceroute (traceroute) in 自动模式

update-alternatives: using /usr/bin/lft.db to provide /usr/bin/lft (lft) in 自动模式

update-alternatives: using /usr/bin/traceproto.db to provide /usr/bin/traceproto (traceproto) in 自动模式

update-alternatives: using /usr/sbin/tcptraceroute.db to provide /usr/sbin/tcptraceroute (tcptraceroute) in 自动模式

正在设置 inetutils-traceroute (2:1.9.1.306-0a482-1) ...

root@wangguan-ubuntu:~# 

9、试一下 traceroute

root@wangguan-ubuntu:~# traceroute 192.168.5.13

traceroute to 192.168.5.13 (192.168.5.13), 30 hops max, 60 byte packets

 1  wangguan-ubuntu.local (192.168.5.101)  2997.264 ms !H  2997.184 ms !H  2997.163 ms !H

安装成功,搞定!

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢