I'm trying to install a LAMP stack on Linux Mint 16 Mate x64 but always get an error when I run this command:
我试图在Linux Mint 16 Mate x64上安装一个LAMP堆栈,但是当我运行这个命令时总是会出错:
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
I'm using the default source repositories. I managed to install apache2
, php5
and mysql
but whenever I install the three packages it returns:
我使用的是默认的源存储库。我成功地安装了apache2、php5和mysql,但每当我安装这三个包时,它都会返回:
Package libapache2-mod-auth-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source软件包libapache2-mod- authmysql是不可用的,但是被另一个包引用。这可能意味着该包丢失、已被废弃或只能从另一个源获得
E: Package 'libapache2-mod-auth-mysql' has no installation candidate
E:软件包“libapache2-mod- te -mysql”没有安装候选
Because of this I can't use the friendly URL feature.
因此,我不能使用友好的URL特性。
3 个解决方案
#2
16
According to this thread the libapache2-mod-auth-mysql
package is no longer maintained, and not needed:
根据这个线程,libapache2-mod-auth-mysql包不再被维护,并且不需要:
I get the impression that many people have ended up here because they want to install a LAMP stack, since some instructions somewhere state that this package should be installed to get a LAMP stack. This is incorrect. This package is only required for Apache authentication against MySQL (as opposed to doing it at the web app end, which is far more common). It appears to me that there are cargo culted instructions floating around the Internet.
我得到的印象是,许多人到这里来是因为他们想要安装一个灯栈,因为某些地方的指示说明应该安装这个包以获得一个灯栈。这是不正确的。这个包只需要Apache认证来对付MySQL(而不是在web应用程序端执行,这是很常见的)。在我看来,互联网上到处都是货运指令。
——Robie Basak
I just installed a LAMP stack without that package, and it works fine.
我只是安装了一个没有那个包的灯罩,它工作得很好。
sudo apt-get install php5-mysql phpmyadmin
#3
0
I also just installed the package without libapache2-mod-auth-mysql.
我还安装了没有libapache2-mod-auth-mysql的包。
Seems to work just fine.
看起来还行。
sudo apt-get install mysql-server php5-mysql phpmyadmin
#1
#2
16
According to this thread the libapache2-mod-auth-mysql
package is no longer maintained, and not needed:
根据这个线程,libapache2-mod-auth-mysql包不再被维护,并且不需要:
I get the impression that many people have ended up here because they want to install a LAMP stack, since some instructions somewhere state that this package should be installed to get a LAMP stack. This is incorrect. This package is only required for Apache authentication against MySQL (as opposed to doing it at the web app end, which is far more common). It appears to me that there are cargo culted instructions floating around the Internet.
我得到的印象是,许多人到这里来是因为他们想要安装一个灯栈,因为某些地方的指示说明应该安装这个包以获得一个灯栈。这是不正确的。这个包只需要Apache认证来对付MySQL(而不是在web应用程序端执行,这是很常见的)。在我看来,互联网上到处都是货运指令。
——Robie Basak
I just installed a LAMP stack without that package, and it works fine.
我只是安装了一个没有那个包的灯罩,它工作得很好。
sudo apt-get install php5-mysql phpmyadmin
#3
0
I also just installed the package without libapache2-mod-auth-mysql.
我还安装了没有libapache2-mod-auth-mysql的包。
Seems to work just fine.
看起来还行。
sudo apt-get install mysql-server php5-mysql phpmyadmin