sudo apt-get install -y liblog4cxx10-dev 失败

sudo apt-get install -y liblog4cxx10-dev 失败

当我尝试安装 liblog4cxx10-dev 包时,它报告如下错误:

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:
 liblog4cxx10-dev : Depends: libaprutil1-dev but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

我的系统是 Ubuntu 12.04 LTS 64 位。我谷歌了一下,检查了

apt-cache policy libblog4cxx10-dev

**结果是:

 liblog4cxx10-dev:
  Installed: (none)
  Candidate: 0.10.0-1.2ubuntu2
  Version table:
     0.10.0-1.2ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

如果我使用 apt-get install 来安装 libaprutil1-dev,则会出现以下错误:以下软件包具有未满足的依赖关系:

libaprutil1-dev : Depends: libsqlite3-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有人能帮我解决这个问题吗?例如,我应该使用哪些工具或检查哪个文件?

提前致谢!**

答案1

首先运行apt-get autoremove以删除损坏的软件包并apt-get update刷新。最后,尝试使用原来的 apt-get。

相关内容