我在运行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时,我得到了一个错误,但我认为它并不重要,所以我一直忽略它。以下是错误:
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.我做错了什么?
发布于 2017-04-16 02:17:11
我让阿帕奇工作了。我不完全确定怎么做,但我认为这与运行更新发行版有关。在此之后,我能够运行与之前推荐的命令相同的命令,这一次,它们起作用了。
发布于 2017-04-13 15:15:44
这可能与旧的配置文件有冲突。试着:
sudo apt-get purge apache2
sudo apt-get install apache2https://unix.stackexchange.com/questions/358806
复制相似问题