web-dev-qa-db-ja.com

dpkg --configure -aは何をしますか?

タイトルで説明されていますが、ターミナルにパッケージをインストールするときにボックスを使用しなければならないのに、インストールが失敗するのはなぜですか。これはなぜですか。 Sudo apt」はできませんか?

6

manpage から:

--configure package...|-a|--pending
          Reconfigure an unpacked package. If -a  or  --pending  is  given
          instead  of  package, all unpacked but unconfigured packages are
          configured.

          Configuring consists of the following steps:

          1. Unpack the conffiles, and at the same time back  up  the  old
          conffiles, so that they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package.
3
Mitch

aptaptitudesynapticなどは、同じツールdpkgのフロントエンドです。 dpkgは非常に低レベルであり、aptは特にスマートではありません。したがって、パッケージ構成が中断された場合、aptは、それを修正するために下位レベルに下降するよう指示します。 aptは、問題の原因となったパッケージを認識しない場合があり(ローカルパッケージを手動でインストールする場合があり、1つではなく100パッケージである場合があります)、シンプルに保つため、ツールを使用するように指示しますそれはそれらを認識しています。 Mitchは、このコマンドが実行することを既に投稿しています。

2
muru