我已经为我的rails应用程序安装了宝石安装乘客.现在我试试乘客安装apache2模块.
我收到错误屏幕:
Installation instructions for required software
- To install Apache 2 development headers:
Please run apt-get install apache2-prefork-dev as root.- To install Apache Portable Runtime (APR) development headers:
Please run apt-get install libapr1-dev as root.- To install Apache Portable Runtime Utility (APU) development headers:
Please run apt-get install libaprutil1-dev as root.
当我运行sudo apt-get install apache2-prefork-dev时,我得到
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 -f install sudo apt-get clean all sudo apt-get autoremove sudo apt-get update sudo apt-get upgrade
然后重试安装apache,加上所有的dev包.您可能必须首先卸载apache.