Menu

#5309 Unable to install from .rpm on RHEL 8

1.930
closed-fixed
nobody
None
5
2019-09-22
2019-09-18
Phil Randal
No

After importing the signing key and enabling the webmin yum repo in RHEL 8 yum install webmin fails:

  Running scriptlet: webmin-1.930-1.noarch                                                                                                                                                                44/44
Unable to identify operating system
error: %prein(webmin-1.930-1.noarch) scriptlet failed, exit status 2

Error in PREIN scriptlet in rpm package webmin
error: webmin-1.930-1.noarch: install failed

cat /etc/redhat-release

Red Hat Enterprise Linux release 8.0 (Ootpa)

Note, there is no "Server" in the version string.

Fix - after the following in the webmin spec file

elsif (\`cat /etc/redhat-release 2>/dev/null\` =~ /Red.*Hat\\s+Enterprise\\s+Linux\\s+(Server|Client|Workstation|Everything)\\s+release\\s+(\\d+)/i) {
    print "oscheck='Redhat Enterprise Linux'\\n";
    }

insert

elsif (\`cat /etc/redhat-release 2>/dev/null\` =~ /Red.*Hat\\s+Enterprise\\s+Linux\\s+release\\s+(\\d+)/i) {
    print "oscheck='Redhat Enterprise Linux'\\n";
    }

Discussion

  • Phil Randal

    Phil Randal - 2019-09-18

    Workaround - edit /etc/redhat-release to read

    Red Hat Enterprise Linux Server release 8.0 (Ootpa)
    

    before installing webmin

     
  • Jamie Cameron

    Jamie Cameron - 2019-09-22
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2019-09-22

    Thanks, we'll fix the OS detection for RHEL 8 in the next Webmin release.

     

Log in to post a comment.