如何解决 Oracle DB 安装的 Yum 依赖关系

如何解决 Oracle DB 安装的 Yum 依赖关系

我有一个 Ubuntu 18 VM,并尝试在本地安装 Oracle XE 12c 数据库。我已经下载了相关的 .rpm 文件并尝试按照以下说明安装它:

yum -y localinstall oracle-database-se-18c-1.0.1.x86_64

但是,我收到以下依赖错误:

yum -y localinstall oracle-database-xe-18c-1.0-1.x86_64.rpm 
Setting up Local Package Process
Examining oracle-database-xe-18c-1.0-1.x86_64.rpm: oracle-database-xe-18c-1.0-1.x86_64
Marking oracle-database-xe-18c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-xe-18c.x86_64 0:1.0-1 will be installed
--> Processing Dependency: file for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: net-tools for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: oracle-database-preinstall-18c for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Processing Dependency: /bin/sh for package: oracle-database-xe-18c-1.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: oracle-database-xe-18c-1.0-1.x86_64 (/oracle-database-xe-18c-1.0-1.x86_64)
           Requires: file
Error: Package: oracle-database-xe-18c-1.0-1.x86_64 (/oracle-database-xe-18c-1.0-1.x86_64)
           Requires: net-tools
Error: Package: oracle-database-xe-18c-1.0-1.x86_64 (/oracle-database-xe-18c-1.0-1.x86_64)
           Requires: oracle-database-preinstall-18c
Error: Package: oracle-database-xe-18c-1.0-1.x86_64 (/oracle-database-xe-18c-1.0-1.x86_64)
           Requires: /bin/sh
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我确实有shfileapt-get install net-tools)。

我在 Debian 9 VM 中遇到了同样的错误。看来是什么问题呢。

相关内容