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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 01:35:01  来源:igfitidea点击:

Package libapache2-mod-auth-mysql is not available

phpmysqllinuxlinux-mint

提问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, php5and mysqlbut whenever I install the three packages it returns:

我正在使用默认的源存储库。我设法安装apache2php5mysql但每当我安装它返回的三个包:

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

E: 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 sublimelaconic

This is a confirmed bug. See this

这是一个已确认的错误。看到这个

回答by Daniel A.A. Pelsmaeker

According to this threadthe libapache2-mod-auth-mysqlpackage 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.

Robie Basak

我的印象是,很多人之所以来到这里是因为他们想要安装 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