处理 gdk-pixbuf-psd 时遇到错误

处理 gdk-pixbuf-psd 时遇到错误

每当我使用 dpkg 安装/删除或执行其他任何操作时,都会出现此错误...

Errors were encountered while processing:  gdk-pixbuf-psd E: Sub-process /usr/bin/dpkg returned an error code (1)

我试过了:

sudo dpkg -r logmein-client 
sudo apt-get install -f

这些都不起作用。还尝试使用 Synaptics 包管理器将其删除,但发生了相同的错误。

我该怎么做才能摆脱它?

编辑:运行 sudo apt-get install -f 的完整日志

Reading package lists... Done Building dependency tree        Reading
state information... Done 0 upgraded, 0 newly installed, 0 to remove
and 12 not upgraded. 1 not fully installed or removed. After this
operation, 0 B of additional disk space will be used. Setting up
gdk-pixbuf-psd (20081217) ...
/var/lib/dpkg/info/gdk-pixbuf-psd.postinst: 23:
/var/lib/dpkg/info/gdk-pixbuf-psd.postinst: cannot create
/usr/lib/gtk-2.0/2.10.0/loader-files.d/gdk-pixbuf-psd.loaders:
Directory nonexistent /var/lib/dpkg/info/gdk-pixbuf-psd.postinst: 23:
/var/lib/dpkg/info/gdk-pixbuf-psd.postinst: gdk-pixbuf-query-loaders:
not found dpkg: error processing package gdk-pixbuf-psd (--configure):
subprocess installed post-installation script returned error exit
status 127 Errors were encountered while processing:  gdk-pixbuf-psd
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

通过编辑此文件修复了此问题:

/var/lib/dpkg/info/gdk-pixbuf-psd.postinst

我注释了第 23 行(错误中指出),然后运行

sudo apt-get install -f

成功了。之后,我使用包管理器删除了包

相关内容