0

最近我尝试使用快速手册在我的 linux 上安装 oracle(我以前从未使用过 yum):

http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html

在命令之后:

sudo yum install oracle-rdbms-server-11gR2-preinstall

我收到错误:失败:ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4 .30-3.el6 初始化脚本.x86_64 0:9.03.38-1.0.1.el6_4.2

Complete!

出了点问题,因为像这样的命令: ps, top 正在崩溃

login@Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in        file libproc-3.2.8.so with link time reference

login@Ass-K55VJ:/etc/yum/repos.d$ top 
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:

sudo yum remove oracle-rdbms-server-11gR2-preinstall

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:

2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]

If you cannot solve this problem yourself, please go to the yum faq at:     http://wiki.linux.duke.edu/YumFaq

所以似乎 yum install 在我的系统新库中但没有正确链接它?我不知道此刻该做什么,因为它在我的 ubuntu 上看起来像是世界末日......

4

1 回答 1

1

这是否意味着您在 ubuntu 上并尝试使用 yum 安装 rpm 包?您使用的手册是针对Oracle Linux 6的,您为什么要在 ubuntu 上尝试呢?

rpm软件包与使用软件包的基于 debian 的系统(如 ubuntu)不兼容deb。所以你可能已经把你的系统搞砸了,用不兼容的库覆盖了重要的系统库。

如果 apt-get 仍在工作,那么您可以尝试重新安装 ( apt-get --reinstall install) 与您链接到的安装手册中提到的等效库 - rpm 和 deb 包的命名并不总是相同的。dpkg -l应该可以帮助您查看正确安装的库。我将从 C 库 (libc) 等开始。

但是,如果 apt-get 也被搞砸了,那么您需要从 ubuntu 镜像手动下载软件包并使用dpkg.

于 2013-09-15T22:06:21.450 回答