OCI: mysql RPM Install Fails With Error “/sbin/service is needed by“ on DBCS Instance — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: mysql RPM Install Fails With Error “/sbin/service is needed by“ on DBCS Instance

Applies To:

Oracle Cloud Infrastructure - Version N/A and later

Oracle Linux x86-64 (DBCS)

Symptoms

Unable to install mysql package on DBCS Oracle Linux 8 instances and it reports the following error:

# rpm -Uvh --force /tmp/mysql-8.0.42_el7-8.0.42.x86_64_14.rpm
error: Failed dependencies:/sbin/service is needed by mysql-8.0.42_el7-8.0.42.x86_64

Cause

The mysql package has dependence to /sbin/service binary but the initscripts package which provides that binary is not installed or removed in the instance.

Solution

Install the initscripts package using dnf/yum, then repeat the mysql rpm installation

 # dnf install initscripts
 # rpm -ql initscripts | grep "/sbin/service"
 /usr/sbin/service

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!