Skip to main content

(Cannot open file /etc/redhat-release)

Comments

8 comments

  • VIRTBIZ CHRIS
    What happens when you issue this at command line: cat /etc/redhat-release
    0
  • keat63
    Does the file exist? I opened mine and it only contains CentOS Linux release 7.9.2009 (Core)
    0
  • cPRex Jurassic Moderator
    Hey there! Checking the file itself as mentioned above is a good idea. The output from "uname -s -r" may also help us get you pointed in the right direction.
    0
  • Ernesto Dionisio
    # uname -s -r Linux 3.10.0-514.21.2.e17.x86_64 as per cat /etc/redhat-release it says No such file or directory
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. It might be best to speak to your hosting provider or datacenter as there may be issues with the operating system itself at a lower level than the cPanel or WHMCS software. Can you work with them to get that resolved?
    0
  • Ernesto Dionisio
    ok if I migrate this to somewhere does it solve the issue? i mean to another server?
    0
  • gnusys
    Please run yum -y install centos-release
    That should fix your issue
    0
  • cPRex Jurassic Moderator
    @Ernesto Dionisio - I don't believe migrating is a good solution to this issue, unless you confirm with your host there is additional damage to the operating system that can't be fixed. Checking the centos-release package as @gnusys mentioned is a good step, and may get you moving in the right direction. You could also try a more general "yum update" to see if there are other packages missing or updates available for the machine.
    0

Please sign in to leave a comment.