标签归档:apt-get

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… 查看全文。。。