dpkg錯誤: subprocess installed post-removal script returned error exit status 2

想要卸載nvidia-installer-cleanup的時候,出現了這個錯誤

dpkg: error processing glx-diversions (--remove):
subprocess installed post-removal script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
glx-diversions
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

可以這樣解決:

mv /var/lib/dpkg/info /var/lib/dpkg/info.110821 && mkdir /var/lib/dpkg/info && aptitude install -f

一路Yes,直到結束,再次運行dpkg或者aptitude就不會有異常了

Chinese, Traditional

發表新回應