The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Could not write to /etc/yum.conf

Discussion in 'General Discussion' started by webstyler, Mar 8, 2013.

  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    we are interesting to see 11:36 so change from release to current on server demo and run upcp, but get this error

    ***** FATAL: Could not write to /etc/yum.conf

    Any idea ?

    bye
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please check to ensure the following file exists and is writable:

    Code:
    # /etc/yum.conf
    Try checking to see if it's been configured with the immutable flag with a command such as:

    Code:
    # lsattr /etc/yum.conf
    If it has, you can use "chattr" to remove that attribute. EX:

    Code:
    # chattr -i /etc/yum.conf
    Thank you.
     
  3. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Hi Michael
    seems works
    thanks
     
  4. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Is going on all the servers that are upgrading to 11:36

    ??
     
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Only if the immutable bit is set in /etc/yum.conf, and usually it is not.
     
  6. mayurkurle

    mayurkurle Registered

    Joined:
    Mar 1, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello,

    i don't want to upgrade the kernel on my cpanel server
    i did exclude in yum.conf
    but whenever upcp run on server, it remove the kernel from exclude list.

    is any idea or any solution on it..
     
  7. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
  8. mayurkurle

    mayurkurle Registered

    Joined:
    Mar 1, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    i know that cpanel does not upgrade kernel, we need to do it manually.
    but it show available kernel list in upcp
    my question is, is there possible to exclude the kernel permanently on cpanel server
    while we are exclude the kernel in yum.conf, it changes the exclude list after upcp run on server and it removes the excluded kernel from the exclude list, like we have excluded other packages also that does not affect only excluded kernel get's removed from the list, why? we don't want to excluded kernel remove from the exclude list in yum.conf.
    also we don't want to see available kernel in upcp.

    help us, this is very critical sever
    software intel raid is configure on server
     
  9. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you
    Code:
    touch /var/cpanel/checkyum-keepkernel
    then your kernel exclusions should be preserved in yum.conf by cPanel & WHM.
     
  10. mayurkurle

    mayurkurle Registered

    Joined:
    Mar 1, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks a lot :)
     
Loading...

Share This Page