Raspberry树莓派RPi-Monitor安装 shared-mime-info Structure needs cleaning问题解决

在安装RPi-Monitor时候,更新源遇到了shared-mime-info Structure needs cleaning这个问题。具体报错如下:

Setting up shared-mime-info (1.8-1+deb9u1) ...
Failed to rename /usr/share/mime/application/pkix-cert.xml.new as /usr/share/mime/application/pkix-cert.xml: Structure needs cleaning
dpkg: error processing package shared-mime-info (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 shared-mime-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:~# shared-mime-infosudo apt-get remove shared-mime-info
-bash: shared-mime-infosudo: command not found

这个问题不解决,RPi-Monitor无法完成。解决方法如下:

cd /var/lib/dpkg/info
sudo rm shared-mime*
sudo apt-get install shared-mime-info

解决方法出处:https://askubuntu.com/questions/102480/sudo-apt-get-upgrade-fails-due-to-shared-mime-info-postinst-error

发表回复