ローカルホストにアクセスできません。 Apacheの状態を確認中にエラーが発生しました。

ローカルホストにアクセスできません。 Apacheの状態を確認中にエラーが発生しました。

私はLinux Mint Mayaを実行しています。http://localhost/ブラウザに接続すると、「接続できません」というメッセージが表示されます。私は成功せずにApacheを削除して再インストールしてみました。sudo service apache2 statusターミナルに入るとこんな感じ/etc/init.d/apache2: 51: .: Can't open /etc/apache2/envvars

内容はこれです/etc/apt/sources.list

deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
# deb http://archive.getdeb.net/ubuntu precise-getdeb games

Update Managerを実行すると、エラーが発生しますが重要ではないと考えて無視してきました。エラーは次のとおりです。

There is no public key available for the following key IDs:
1397BC53640DB551Failed to fetch http://ppa.launchpad.net/heyarje/libav-       11/ubuntu/dists/precise/main/source/Sources  404  Not Found
Failed to fetch http://ppa.launchpad.net/heyarje/libav-11/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
Some index files failed to download. They have been ignored, or old ones used instead.

私は何が間違っていましたか?

ベストアンサー1

以前の構成ファイルと競合する可能性があります。努力する:

sudo apt-get purge apache2
sudo apt-get install apache2

おすすめ記事