每当我安装/移除或其他使用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他们都不起作用。还试图使用删除它,但也会发生同样的错误。
我该怎么做才能摆脱它?
编辑:运行sudo apt安装-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)发布于 2014-06-10 19:26:52
通过编辑这个文件修正了它:
/var/lib/dpkg/info/gdk-pixbuf-psd.postinst我注释了第23行(在错误中表示),然后运行
sudo apt-get install -f成功。之后,我使用删除了包
https://askubuntu.com/questions/481526
复制相似问题