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

Removing tftpd-hpa …
dpkg: error processing tftpd-hpa (–remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决办法:

  • 进入info目录

cd /var/lib/dpkg/info

  • 删除报错相关软件的文件

rm -f tftpd-hpa.* -v

  • 执行删除命令

apt-get -f install

发表评论

电子邮件地址不会被公开。 必填项已用*标注