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
                
                                    
                                  in Linux             
            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
            Tagged:
            
        
0