web-dev-qa-db-ja.com

アップグレードに失敗しました...ちょっと、いくつかのパッケージをインストールできません

サーバーをアップグレードしようとすると(do-release-upgrade -d、10.04から12.04に移行する際に現在必要なように、スクリプトがフリーズしたため、強制的にキャンセルしました。半分の10.04、半分の12.04のシステムが残っていましたが、ほとんどの場合、aptitude upgrade --full-resolver

現在、問題なく起動し、ほとんどのアプリケーションは正しくインストールされていますが、インストールできないパッケージがいくつかあります。私はもう試した apt-get install -fapt-get purgedpkg-reconfigure -a、そして私は何もすることができない。

root@NCLI-SERVER:~# apt-get install -f
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
16 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up fontconfig-config (2.8.0-3ubuntu9) ...
rmdir: failed to remove `/var/lib/defoma/fontconfig.d/': Directory not empty
dpkg: error processing fontconfig-config (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libfontconfig1:
 libfontconfig1 depends on fontconfig-config (= 2.8.0-3ubuntu9); however:
  Package fontconfig-config is not configured yet.
dpkg: error processing libfontconfig1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgd2-xpm:
 libgd2-xpm depends on libfontconfig1 (>= 2.8.0); however:
  Package libfontconfig1 is not configured yet.
dpkg: error processing libgd2-xpm (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgphoto2-2:
 libgphoto2-2 depends on libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-xpm is not configured yet.
dpkg: error processing libgphoto2-2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsane:
 libsane depends on libgphoto2-2 (>= 2.4.10.1); however:
  Package libgphoto2-2 is not configured yet.
dpkg: error processing libsane (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of colord:
 colord depends on libsane (>= 1.0.11-3); however:
  Package libsane is not configured yet.
dpkg: error processing colord (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpoppler19:
 libpoppler19 depends on libfontconfig1 (>= 2.8.0); however:
  Package libfontconfig1 is not configured yet.
dpkg: error processing libpoppler19 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgs9:
 libgs9 depends on libfontconfig1 (>= 2.8.0); however:
  Package libfontconfig1 is not configured yet.
dpkg: error processing libgs9 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cups-filters:
 cups-filters depends on libfontconfig1 (>= 2.8.0); however:
  Package libfontconfig1 is not configured yet.
 cups-filters depends on libpoppler19; however:
  Package libpoppler19 is not configured yet.
dpkg: error processing cups-filters (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcairo2:
 libcairo2 depends on libfontconfig1 (>= 2.8.0); however:
  Package libfontconfig1 is not configured yet.
dpkg: error processing libcairo2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of poppler-utils:
 poppler-utils depends on libcairo2 (>= 1.10.0); however:
  Package libcairo2 is not configured yet.
 poppler-utils depends on libpoppler19; however:
  Package libpoppler19 is not configured yet.
dpkg: error processing poppler-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cups:
 cups depends on poppler-utils (>= 0.12); however:
  Package poppler-utils is not configured yet.
 cups depends on cups-filters; however:
  Package cups-filters is not configured yet.
dpkg: error processing cups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-gutenprint:
 printer-driver-gutenprint depends on cups (>= 1.3.0); however:
  Package cups is not configured yet.
dpkg: error processing printer-driver-gutenprint (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ghostscript:
 ghostscript depends on libgs9 (= 9.05~dfsg-0ubuntu4); however:
  Package libgs9 is not configured yet.
dpkg: error processing ghostscript (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gs-cjk-resource:
 gs-cjk-resource depends on ghostscript (>= 8.70~dfsg-2.1); however:
  Package ghostscript is not configured yet.
dpkg: error processing gs-cjk-resource (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ghostscript-cups:
 ghostscript-cups depends on ghostscript (>= 8.64~dfsg-8); however:
  Package ghostscript is not configured yet.
dpkg: error processing ghostscript-cups (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 fontconfig-config
 libfontconfig1
 libgd2-xpm
 libgphoto2-2
 libsane
 colord
 libpoppler19
 libgs9
 cups-filters
 libcairo2
 poppler-utils
 cups
 printer-driver-gutenprint
 ghostscript
 gs-cjk-resource
 ghostscript-cups
E: Sub-process /usr/bin/dpkg returned an error code (1)
3
NCLI

ログの最初から:

rmdir: failed to remove `/var/lib/defoma/fontconfig.d/': Directory not empty

更新によってすべてのディレクトリが削除された後、このディレクトリ内のすべてのファイルを削除してみてください。したがって、害はないようです。

rm /var/lib/defoma/fontconfig.d/*
3
Javier Rivera