處理 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 Package Manager 刪除它,但發生了相同的錯誤。

我該怎麼做才能擺脫它?

編輯:運行 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

成功地。之後,我使用套件管理器刪除了該套件

相關內容