乘客安装 apache2-module 在 ubuntu 12.04 上失败 [英] passenger-install-apache2-module fails on ubuntu 12.04
问题描述
我已经为我的 rails 应用安装了 gem installpassenger
.现在我尝试 passenger-install-apache2-module
.
I've installed gem install passenger
for my rails app. Now I try passenger-install-apache2-module
.
我收到错误屏幕:
所需软件的安装说明
- 要安装 Apache 2 开发头文件:请以 root 身份运行 apt-get install apache2-prefork-dev.
- 要安装 Apache Portable Runtime (APR) 开发标头:请以 root 身份运行 apt-get install libapr1-dev.
- 要安装 Apache Portable Runtime Utility (APU) 开发标头:请以 root 身份运行 apt-get install libaprutil1-dev.
当我运行 sudo apt-get install apache2-prefork-dev
时,我得到
When I run sudo apt-get install apache2-prefork-dev
, I get
以下软件包具有未满足的依赖项: apache2-prefork-dev :取决于:apache2.2-common (= 2.2.22-1ubuntu1) 但 2.2.22-1ubuntu1.1 是待安装.
E:无法改正问题,你已经抱坏了包.
The following packages have unmet dependencies: apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1) but 2.2.22-1ubuntu1.1 is to be installed.
E: Unable to correct problems, you have held broken packages.
当我运行 sudo apt-get update
时,它没有解决任何问题.错误仍然存在.
When I run sudo apt-get update
, it doesn't solve anything. The error still exists.
推荐答案
尝试
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
然后重试安装 apache,以及所有的开发包.您可能必须先卸载 apache.
Then retry installing apache, plus all the dev packages. You may have to uninstall apache first.
这篇关于乘客安装 apache2-module 在 ubuntu 12.04 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!