Pure-ftpd-mysql dpkg 问题

Pure-ftpd-mysql dpkg 问题

我遇到了 pure-ftpd-mysql 问题。每次我尝试删除 pure-ftpd-mysql 时都会遇到同样的问题:

root@vps438255:/var/lib/dpkg/info# apt-get remove --purge pure-ftpd-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  pure-ftpd-mysql*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 559 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 112166 files and directories currently installed.)
Removing pure-ftpd-mysql (1.0.43-3) ...
/var/lib/dpkg/info/pure-ftpd-mysql.prerm: 18: /var/lib/dpkg/info/pure-ftpd-mysql.prerm: update-inetd: not found
dpkg: error processing package pure-ftpd-mysql (--remove):
 subprocess installed pre-removal script returned error exit status 127
/var/lib/dpkg/info/pure-ftpd-mysql.postinst: 34: /var/lib/dpkg/info/pure-ftpd-mysql.postinst: update-inetd: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 pure-ftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试使用命令来清除缓存

apt-get clean

apt-get autoclean

但这仍然不起作用。

当我尝试输入:

apt-get update && upgrade或者apt-get autoremove

root@vps438255:/var/lib/dpkg/info# apt-get autoremove 正在读取软件包列表... 完成 正在构建依赖关系树
正在读取状态信息... 完成 您可能需要运行“apt --fix-broken install”来更正这些问题。 以下软件包具有未满足的依赖关系: pure-ftpd-mysql :依赖:pure-ftpd-common(= 1.0.43-3),但尚未安装 E:未满足的依赖关系。 尝试不使用任何软件包执行“apt --fix-broken install”(或指定解决方案)。 您在 /var/mail/root 中有新邮件

我尝试在互联网上搜索一些东西来解决我的问题,但是没有任何效果。

已解决:只需安装update-inetd并运行apt --fix-broken install

答案1

删除pure-ftpd-mysql失败,因为删除前脚本尝试运行update-inetd未安装的:

/var/lib/dpkg/info/pure-ftpd-mysql.prerm: 18: /var/lib/dpkg/info/pure-ftpd-mysql.prerm: update-inetd: not found

安装update-inetd显然解决了这个问题。

答案2

安装 update-inetd {apt-get install -y update-inetd} 解决了我的问题 {处理时遇到错误:pure-ftpd-mysql E:子进程 /usr/bin/dpkg 返回错误代码 (1)}。

相关内容