简体   繁体   English

Ubuntu 12.04-确认未满足的依赖关系

[英]Ubuntu 12.04 - confirm unmet dependencies

I want to install Oracle XE 10g AND Shorewall on Ubuntu 12.04 我想在Ubuntu 12.04上安装Oracle XE 10g和Shorewall

Problem: Oracle XE 10g needs "bc:i386" and Shorewall needs "bc" (both are dependencies....) 问题:Oracle XE 10g需要“ bc:i386”,Shorewall需要“ bc”(都是依赖项...。​​)

I think it is not possible to have both bcs...... As Oracle XE 10g only needs "bc:386" for configure (and not for running the database after configure) - the idea is following: 我认为不可能同时拥有两个bcs……因为Oracle XE 10g仅需要“ bc:386”来进行配置(而不是在配置后用于运行数据库),其想法如下:

  1. install Oracle XE 10g with "bc:386" 使用“ bc:386”安装Oracle XE 10g
  2. deinstall "bc:i386" (database still runs - bc:i386 was only needed for configure) with command: "dpkg -r --force-depends bc:i386" 使用以下命令卸载“ bc:i386”(数据库仍在运行-仅配置需要bc:i386),命令为:“ dpkg -r --force-depends bc:i386”
  3. install shorewall (and "bc") and everyone is happy. 安装Shorewall(和“ bc”),每个人都很高兴。

problem: when I want to use apt-get after "dpkg -r --force-depends bc:i386" it is complaining about unmet dependencies. 问题:当我想在“ dpkg -r --force-depends bc:i386”之后使用apt-get时,它抱怨未满足的依赖关系。

apt-get install shorewall
Reading package lists... Done
Building dependency tree 
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 oracle-xe-universal:i386 : Depends: bc:i386 but it is not going to be installed
 shorewall : Depends: bc but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

How can I solve this problem? 我怎么解决这个问题? And please remember - I want to use Oracle XE 10g AND shorewall - so please no answers like "use mysql instead of oracle" and so on ;-) 而且请记住-我想使用Oracle XE 10g和Shorewall-所以请不要回答“使用mysql代替oracle”之类的答案;-)

thank you! 谢谢!

A similar problem seemed to be handled in this post 这篇文章似乎处理类似的问题

My first advice is as in that post: install the amd64 variant bc and ignore the bc:i386 package. 我的第一个建议就是在那篇文章中:安装amd64变体bc并忽略bc:i386软件包。

Also it is not clear to me if you tried the suggested solution apt-get -f -install and if so what happened. 同样,对我来说还不清楚是否尝试了建议的解决方案apt-get -f -install ,如果发生了什么。

In general it is no good great help to mix up dpkg and apt-get for manipulating the package database except you know exactly what you do. 通常,将dpkgapt-get混合使用来处理软件包数据库并没有什么大的帮助,除非您确切地知道自己在做什么。

Another variant you could try is to specify oracle and shorewall in one apt-get install call and go through all the resolver suggestions. 您可以尝试的另一种变体是在一个apt-get install调用中指定oracle和Shorewall并查看所有解析程序建议。 (Take care: this can be a time consuming hard way to go, especially with the option --full-resolver enabled) (请注意:这可能是一个耗时的艰难方法,尤其是启用了--full-resolver选项时)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM