在 ubuntu 12.10 中安装 xampp 1.8.1 时出错

在 ubuntu 12.10 中安装 xampp 1.8.1 时出错

sudo apt-get install xampp 完成上述步骤后,显示以下错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xampp:i386 : Depends: python-gtk2:i386 but it is not going to be installed
              Depends: python-glade2:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

我收到了同样的错误信息。

尝试一下这个链接:

http://daksh21ubuntu.blogspot.com/2012/01/how-to-install-xampp-in-ubuntu.html

我从这个链接下载了 1.8.1 版本:

http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz

对我来说非常完美。

祝你好运。

答案2

也许 ubuntu repo 没有附带 xampp,你可以从源代码下载 xampp 并安装 xampp

# wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-1.8.3-4-installer.run
# chmod 755 xampp-linux*
./xampp-linux*

相关内容