apt-get アップグレードが中断されました。この問題に関する追加情報をどのように取得できますか?

apt-get アップグレードが中断されました。この問題に関する追加情報をどのように取得できますか?

数週間以上経ってこの作業をしても、このようなメッセージが出ましたが、数ヶ月間アプリを使用していなかったsudo apt-get upgradeため気づかなかったのです。exercism

Illegal option -d
Usage: install [<option>...] [<path>]
Install exercism client to <path>. Default:

しかし、今はpostgresql-9.6をインストールするように頼んで非常に迷惑です。

ここで実行すると、sudo apt-get upgrade私のログが表示されます。これはinstall、コマンドを実行すると他のコマンドを無視するのと同じです。まあ、それは私の理解です。

Setting up postgresql-common (182.pgdg14.04+1) ... 
Illegal option -d Usage: install [<option>...] [<path>]
Install exercism client to <path>. Default:
  * determined interactively if possible   
  * /usr/local/bin if run as root   
  * /usr/local/bin if it is writable   
  * /home/code/bin otherwise 
Options:   
  -v <version>           Install client version <version>.      Default: v2.4.0   
  -o <operating system> Install client for <operating system>. Default: linux   
  -a <architecture>      Install client for <architecture>.     Default: 64bit 

dpkg: error processing package postgresql-common (--configure):  subprocess installed post-installation script returned error exit status 64 dpkg: dependency problems prevent configuration of postgresql-9.6:  postgresql-9.6 depends on postgresql-common (>= 171~); however:   Package postgresql-common is not configured yet.


dpkg: error processing package postgresql-9.6 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql:  postgresql depends on postgresql-9.6; however:   Package postgresql-9.6 is not configured yet.

apt-get updateによって呼び出されたコマンドが問題を引き起こし、それに応じてシステムのどの動作が中断されたかを確認する方法。これが私の家です。

残念ながら、私はこのプログラムをインストールしていないexercismため、システムから安全に削除するcheckinstallことはできません。dpkg -r exercism残念ですが普段にもこんな方ですが..

この時点でどのコマンドが失敗したかをapt-getに伝える方法はありますか? 「違法オプション-d」としか表示されていませんが...問題を見つけるのに十分ではありません。

ベストアンサー1

ログには次のように明確に記載されていますinstall

Illegal option -d
Usage: install [<option>...] [<path>]

私はこのinstall行動が奇妙だと思います。

どの実行ファイルが実際に呼び出されたかを確認するために、シェルから次のように要求しました。

which install

/usr/bin/installそう呼ぶわけではないことが判明したが/usr/local/bin/install…。

/usr/local/bin/install名前をに変更し、/usr/local/bin/install_exercismすべてがうまくいった。

which install

今は一般的に次のことを指します。/usr/bin/install

Postgresqlはエラーメッセージなしでうまくインストールされました。

おすすめ記事