首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装Apache。缺少不会安装的依赖项

无法安装Apache。缺少不会安装的依赖项
EN

Ask Ubuntu用户
提问于 2015-11-13 18:53:46
回答 2查看 1.2K关注 0票数 0

我正试图在我的新服务器上安装灯。问题是我一直在犯错误。以下是它的内容:

代码语言:javascript
复制
root@178658:~# apt-get install lamp-server^
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mysql-server-core-5.5' for task 'lamp-server'
Note, selecting 'mysql-server-5.5' for task 'lamp-server'
Note, selecting 'mysql-client-core-5.5' for task 'lamp-server'
Note, selecting 'apache2-mpm-prefork' for task 'lamp-server'
Note, selecting 'libapache2-mod-php5' for task 'lamp-server'
Note, selecting 'php5-mysql' for task 'lamp-server'
Note, selecting 'php5-common' for task 'lamp-server'
Note, selecting 'php5-readline' for task 'lamp-server'
Note, selecting 'mysql-client-5.5' for task 'lamp-server'
Note, selecting 'mysql-common' for task 'lamp-server'
Note, selecting 'php5-cli' for task 'lamp-server'
Note, selecting 'libmysqlclient18' for task 'lamp-server'
Note, selecting 'apache2-data' for task 'lamp-server'
Note, selecting 'apache2' for task 'lamp-server'
Note, selecting 'mysql-server' for task 'lamp-server'
Note, selecting 'apache2-bin' for task 'lamp-server'
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:
 apache2-bin : Depends: libapr1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1-dbd-sqlite3 but it is not installable or
                        libaprutil1-dbd-mysql but it is not installable or
                        libaprutil1-dbd-odbc but it is not installable or
                        libaprutil1-dbd-pgsql but it is not installable or
                        libaprutil1-dbd-freetds but it is not installable
               Depends: libaprutil1-ldap but it is not installable
 mysql-client-5.5 : Depends: libdbd-mysql-perl (>= 1.2202) but it is not installable
                    Depends: libdbi-perl but it is not installable
                    Depends: libterm-readkey-perl but it is not installable
 mysql-server-5.5 : Depends: libdbi-perl but it is not installable
                    Recommends: libhtml-template-perl but it is not installable
 mysql-server-core-5.5 : Depends: libaio1 (>= 0.3.93) but it is not installable
 php5-common : Depends: php5-json but it is not installable
E: Unable to correct problems, you have held broken packages.'

有人知道怎么解决这个问题吗。我已经尝试到grep寻找破碎的包,但是,它没有显示任何东西。这是一个完全的库存安装。

谢谢。

EN

回答 2

Ask Ubuntu用户

发布于 2015-11-13 18:59:58

你试过单独安装吗?像这样: sudo apt-get install apache2 php5 php5- mysql -server,然后sudo apt-get安装phpmyadmin sudo apt-get更新。

票数 0
EN

Ask Ubuntu用户

发布于 2015-11-13 22:13:38

它可能是您的sources.list文件。

在终端中运行此命令,这将删除sources.list

代码语言:javascript
复制
sudo rm /etc/apt/sources.list

然后运行以下命令:

代码语言:javascript
复制
sudo software-properties-gtk

选择以下所有框:

然后单击“关闭”。然后这个窗口会弹出,点击重新加载。

然后尝试安装lamp-server

代码语言:javascript
复制
sudo apt-get install lamp-server^
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/697705

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档