Could not write to /etc/yum.conf

webstyler

Well-Known Member
Nov 20, 2003
443
0
166
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator

mayurkurle

Registered
Mar 1, 2013
3
0
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
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
76
308
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.