Linux 软件包 libapache2-mod-auth-mysql 不可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20458641/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Package libapache2-mod-auth-mysql is not available
提问by moderadorkl25
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 sourceE: Package 'libapache2-mod-auth-mysql' has no installation candidate
包 libapache2-mod-auth-mysql 不可用,但被另一个包引用。
这可能意味着软件包丢失、已过时或只能从其他来源获得E: 包“libapache2-mod-auth-mysql”没有安装候选
Because of this I can't use the friendly URL feature.
因此,我无法使用友好的 URL 功能。
回答by Daniel A.A. Pelsmaeker
According to this threadthe 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.
我的印象是,很多人之所以来到这里是因为他们想要安装 LAMP 堆栈,因为某处的某些说明指出应该安装此软件包以获得 LAMP 堆栈。这是不正确的。这个包只需要用于针对 MySQL 的 Apache 身份验证(而不是在 Web 应用程序端进行,后者更为常见)。在我看来,互联网上到处都是关于货物崇拜的说明。
I just installed a LAMP stack without that package, and it works fine.
我刚刚安装了一个没有那个包的 LAMP 堆栈,它工作正常。
sudo apt-get install php5-mysql phpmyadmin
回答by Nickel3ack
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