質問: ローカルパッケージシステムを台無しにしたのですが、どうすれば修復できますか? ppaを最近削除した後、ローカルパッケージシステムが台無しになりました。 sudo apt-get -f installを実行して依存関係を修正するように求められます。問題が解決するまで数日待っていたため(新しいpacakageのリリースにより依存関係が変更される場合があります)、結局は起こりませんでした。だから私の質問は次のとおりです。システムを再インストールすることが唯一の方法ですか?note:これはアルファリリースに関する問題を処理する場所ではないことは承知していますが、私の意見では、問題への対処方法について一般的な答えをする価値があります。ps:特定の問題の端末出力$ sudo apt-get -f install reading package lists... done building dependency tree reading state information... done correcting dependencies... done the following package was automatically installed and is no longer required: libx264-118 use 'apt-get autoremove' to remove them. the following extra packages will be installed: libglib2.0-0 libglib2.0-bin libglib2.0-dev suggested packages: libglib2.0-doc the following packages will be upgraded: libglib2.0-0 libglib2.0-bin libglib2.0-dev 3 upgraded, 0 newly installed, 0 to remove and 150 not upgraded. 9 not fully installed or removed. need to get 0 b/3.062 kb of archives. after this operation, 130 kb disk space will be freed. do you want to continue [y/n]? y dpkg: error processing libglib2.0-0 (--configure): libglib2.0-0:amd64 2.31.14-0ubuntu1~build1 cannot be configured because libglib2.0-0:i386 is in a different version (2.31.14-0ubuntu1) dpkg: dependency problems prevent configuration of libglib2.0-bin: libglib2.0-bin depends on libglib2.0-0 (= 2.31.14-0ubuntu1~build1); however: package libglib2.0-0 is not configured yet. dpkg: error processing libglib2.0-bin (--configure): dependency problems - leaving unconfiguredno apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of libglib2.0-dev: libglib2.0-dev depends on libglib2.0-0 (= 2.31.14-0ubuntu1~build1); however: package libglib2.0-0 is not configured yet. libglib2.0-dev depends on libglib2.0-bin (= 2.31.14-0ubuntu1~build1); however: package libglib2.0-bin is not configured yet. dpkg: error processing libglib2.0-dev (--configure): dependency problems - leaving unconfigured dpkg: error processing libglib2.0-0:i386 (--configure): libglib2.0-0:i386 2.31.14-0ubuntu1 cannot be configured because libglib2.0-0:amd64 is in a different version (2.31.14-0ubuntu1~build1) dpkg: dependency problems prevent configuration of libgtk-3-0: libgtk-3-0 depends on libglib2.0-0 (>= 2.31.14); however: package libglib2.0-0 is not configured yet. dpkg: error processing libgtk-3-0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libgail-3-0: libgail-3-0 depends on libglib2.0-0 (>= 2.31.14); however: package libno apport report written because the error message indicates its a followup error from a previous failure. no apport report written because maxreports is reached already no apport report written because maxreports is reached already no apport report written because maxreports is reached already no apport report written because maxreports is reached already no apport report written because maxreports is reached already glib2.0-0 is not configured yet. libgail-3-0 depends on libgtk-3-0 (= 3.3.12-0ubuntu1~build1); however: package libgtk-3-0 is not configured yet. dpkg: error processing libgail-3-0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of gir1.2-gtk-3.0: gir1.2-gtk-3.0 depends on libgtk-3-0 (>= 3.3.12); however: package libgtk-3-0 is not configured yet. dpkg: error processing gir1.2-gtk-3.0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libgtk-3-bin: libgtk-3-bin depends on libgtk-3-0 (>= 3.3.12-0ubuntu1~build1); however: package libgtk-3-0 is not configured yet. dpkg: error processing libgtk-3-bin (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libgtk-3-dev: libgtk-3-dev depends on libgtk-3-0 (= 3.3.12-0ubuntu1~build1); however: package libgtk-3-0 is not configured yet. libgtk-3-dev depends on gir1.2-gtk-3.0 (= 3.3.12-0ubuntu1~build1); however: package gir1.2-gtk-3.0 is not configured yet. libgtk-3-dev depends on libglib2.0-dev (>= 2.31.14); however: package libglib2.0-dev is not configured yet. dpkg: error processing libgtk-3-dev (--configure): dependency problems - leaving unconfigured errors were encountered while processing: libglib2.0-0 libglib2.0-bin libglib2.0-dev libglib2.0-0:i386 libgtk-3-0 libgail-3-0 gir1.2-gtk-3.0 libgtk-3-bin libgtk-3-dev e: sub-process /usr/bin/dpkg returned an error code (1)
回答: sudo dpkg --configure --pendingは、完全にインストールされていないパッケージをクリーンアップする必要があります。インストールした後、または失敗した場合は、sudo apt-get purge <packages>を試してください