缺少 gir1.2-gdkpixbuf-2.0:amd64

缺少 gir1.2-gdkpixbuf-2.0:amd64

我收到此错误,并且无法删除安装或重新安装任何东西:

dpkg: warning: files list file for package 'libgnome-keyring-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gir1.2-gdkpixbuf-2.0:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'linux-headers-4.15.0-33': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

有没有什么解决办法?请帮忙。

答案1

您可以尝试删除包中有问题的列表文件:

sudo rm -f /var/lib/dpkg/info/linux-headers-4.15.0-33*

然后重新安装

sudo apt-get install --reinstall linux-headers-4.15.0-33
sudo apt-get install -f
sudo dpkg --configure -a

可以按照相同的方式重新安装另外两个软件包:

sudo apt-get install --reinstall libgnome-keyring-common gir1.2-gdkpixbuf-2.0:amd64

相关内容