「apt-get install ffmpeg」が失敗するのはなぜですか?

「apt-get install ffmpeg」が失敗するのはなぜですか?

apt-getインストールがどのように、なぜ失敗するのかわかりません。これには、サーバーからGoogle Appsアカウントにメールを送信するために使用する単純なsmtpであるssmtpが含まれています。何が間違っているのか、どう解決するのか理解できません。

私はDebianスクイーズを使用しています。

# apt-get install ffmpeg
...
Setting up libswscale0 (4:0.5.2-6) ...
Setting up ffmpeg (4:0.5.2-6) ...
Errors were encountered while processing:
 ssmtp
E: Sub-process /usr/bin/dpkg returned an error code (1)

# sudo apt-get install ffmpeg
sudo: unable to resolve host debian
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up ssmtp (2.64-4) ...
hostname: Name or service not known
dpkg: error processing ssmtp (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 ssmtp
E: Sub-process /usr/bin/dpkg returned an error code (1)

ベストアンサー1

インストール中にシステムのホスト名を「debian」に設定したようです。インストーラはそのエントリをエントリに追加する必要がありましたが、もはや/etc/hosts存在しないようです。

まだ「debian」という行が表示されていない場合は、次の項目を追加してください。

127.0.0.1    debian

変更を保存するには、テキストエディタを実行する必要がありますsudo

おすすめ記事