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 个解决方案
#1
3
This is a confirmed bug. See this
這是一個被證實的錯誤。看到這個
#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