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

你可能感兴趣的:(apt-get)