无法更新或删除 ruby​​-net-telnet

无法更新或删除 ruby​​-net-telnet

运行 Ubuntu 16.04。所有其他软件包更新正常,但尝试更新或删除 ruby​​-net-telnet 会返回错误

Preparing to unpack .../ruby-net-telnet_0.1.1-2_all.deb ...
Unpacking ruby-net-telnet (0.1.1-2) over (0.1.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/ruby-net-telnet_0.1.1-2_all.deb (--unpack):
 unable to install (supposed) new info file '/var/lib/dpkg/tmp.ci/md5sums': Is a directory
Selecting previously unselected package libruby2.5:amd64.
Preparing to unpack .../libruby2.5_2.5.1-1bbox1~xenial4_amd64.deb ...
Unpacking libruby2.5:amd64 (2.5.1-1bbox1~xenial4) ...
Selecting previously unselected package ruby2.5.
Preparing to unpack .../ruby2.5_2.5.1-1bbox1~xenial4_amd64.deb ...
Unpacking ruby2.5 (2.5.1-1bbox1~xenial4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/ruby-net-telnet_0.1.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试过不同论坛提供的多种解决方案,包括:

sudo apt-get update 
sudo apt-get clean 
sudo apt-get autoremove  
sudo apt-get update && sudo apt-get upgrade  
sudo dpkg --configure -a  
sudo apt-get install -f

这个帖子这正好符合我的问题

我尝试创建/var/lib/dpkg/tmp.ci/目录和一个空的 md5sums 文件,但没有效果。

ruby-net-telnet 项目页面显示最新更新如下:

2016-03-01 - Christian Hofstaedtler ruby​​-net-telnet (0.1.1-2) 不稳定;紧急程度=中等

  • 团队上传。
  • 设置 Multi-Arch: foreign 以允许 ruby​​ 本身的交叉安装
  • 将标准版本更新至 3.9.7(无其他更改)

任何想法都值得赞赏。

相关内容