subprocess installed post-installation script returned error exit status 一

subprocess installed post-installation script returned error exit status 1

 

如果 apt-get 出現 “subprocess installed post-installation script returned error exit status 1″ 的錯誤

dpkg: error processing util-linux (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

進到 /var/lib/dpkg/info 目錄

將卡住的套件檔案刪掉即可

apt-get autoclean
apt-get autoremove
apt-get update
apt-get upgrade