Help - Search - Members - Calendar
Full Version: kernel
The Planet Forums > Control Panels > cPanel/WHM
Helder
From WHM "You are running an insecure kernel (2.4.18-14). You should upgrade to a newer version as soon as possible to avoid your system being compromised."

Can anyone help me upgrade kernel.
Lientje.com
I got the same problem
I tried it with up2date but the redhat network is flat.

Anyone have a sollution???????
Reddrake
To update kernel,
/usr/sbin/up2date --nox -f kernel

Must have your own account at rhn.
To get that type rhn_register
Follow the steps. icon_smile.gif

After everythings all done, reboot.
Helder
root@..... [/]# /usr/sbin/up2date --nox -f kernel

Fetching package list for channel: redhat-linux-i386-8.0...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-8.0...
########################################

Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.20-18.8.i686.rpm ########################## Done.
Preparing ########################################### [100%]

Installing...
1:kernel ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
grubby fatal error: unable to find a suitable template

What do i do now
foggy
ignore it. RS uses lilo, not grub.. its a common error iv noticed..

just check to make sure lilo.conf was updated with the new kernel

pico -w /etc/lilo.conf

then after you save that

lilo -v -v

check for any error... if its clean, then

shutdown -r now

to reboot.
Helder
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-14
label=linux
initrd=/boot/initrd-2.4.18-14.img
read-only
append="root=LABEL=/"


I dont think it is?
webbcite
QUOTE
Originally posted by Helder
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-18.7
       label=linux
       initrd=/boot/initrd-2.4.20-18.7.img
       read-only
       append="root=LABEL=/"


image=/boot/vmlinuz-2.4.18-14
       label=linux.old
       initrd=/boot/initrd-2.4.18-14.img
       read-only
       append="root=LABEL=/"

I dont think it is?


Just make the changes above in red and you should be good to go. Make sure you run lilo -v -v before rebooting. Any errors should be resolved before rebooting.
Helder
root@...... [~]# lilo -v -v
LILO version 21.4-4, Copyright © 1992-1998 Werner Almesberger
'lba32' extensions Copyright © 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.20-18.7
Fatal: open /boot/vmlinuz-2.4.20-18.7: No such file or directory
Removed temporary file /boot/map~

Whats wrong
swa7
To register, run "rhn_register".
root@server [~]# rhn_register
A socket error occured: host not found, attempt #1
Red Hat Network Registration © 2000-2001 Red Hat, Inc.





Traceback (innermost last):
File "/usr/sbin/rhn_register", line 231, in ?
main()
File "/usr/sbin/rhn_register", line 212, in main
tui.main()
File "/usr/share/rhn/register/tui.py", line 1042, in main
tui.run()
File "/usr/share/rhn/register/tui.py", line 986, in run
win = self.windows[index](self.screen, self)
File "/usr/share/rhn/register/tui.py", line 45, in __init__
tb = snack.Textbox(size[0]-10, size[1]-14, rhnreg.welcomeText(), 1)
File "/usr/share/rhn/register/rhnreg.py", line 448, in welcomeText
return doCall(s.registration.welcome_message)
File "/usr/share/rhn/register/rhnreg.py", line 196, in doCall
time.sleep(1)
IOError: [Errno 4] Interrupted system call


what's wrong icon_sad.gif
foggy
QUOTE
Originally posted by Helder
root@...... [~]# lilo -v -v
LILO version 21.4-4, Copyright © 1992-1998 Werner Almesberger
'lba32' extensions Copyright © 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.20-18.7
Fatal: open /boot/vmlinuz-2.4.20-18.7: No such file or directory
Removed temporary file /boot/map~

Whats wrong



your not using that kernel.. icon_wink.gif

replace the line in lilo.conf with this

image=/boot/vmlinuz-2.4.20-18.8
label=linux
initrd=/boot/initrd-2.4.20-18.8.img
read-only
append="root=LABEL=/"
webbcite
QUOTE
Originally posted by foggy
your not using that kernel.. icon_wink.gif

replace the line in lilo.conf with this

image=/boot/vmlinuz-2.4.20-18.[b]8

label=linux
initrd=/boot/initrd-2.4.20-18.8.img
read-only
append="root=LABEL=/" [/B]


doh! guess that would help lol!

Missed that you were running 8.0
Ali
root@global [~]# /usr/sbin/up2date --nox -f kernel
Migrating network settings from rhn_register

Fetching package list for channel: redhat-linux-i386-7.3...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-7.3...
########################################

Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.20-18.7.i686.rpm ########################## Done.
Preparing... ########################################### [100%]

Installing...
1:kernel ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty

This is what I got. & lilo.conf is;

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-27.7.x
label=linux.bak
initrd=/boot/initrd-2.4.18-27.7.x.img
read-only
root=/dev/hda3

image=/boot/vmlinuz-2.4.20-18.7
label=linux
root=/dev/hda3
read-only
initrd=/boot/initrd-2.4.20-18.7.img
Ali
I think I got it... everything was well and kernal has been updated.

Thanks!
NetSP
Thank you, this was very helpfull! icon_smile.gif But, the most recent stable kernel is 2.4.21, why up2date install 2.4.20-18.7?
webbcite
kernel-2.4.20-18.7 is the latest kernel released from Redhat as a package for Versions < 8.0.
jacknet
This is what I did in Shell. Now have not a clue what to do next. I have Red Hat 8.

When I goto my Server I get this message: You are running an insecure kernel (2.4.18-14). You should upgrade to a newer version as soon as possible to avoid your system being compromised.

I went to shell and typed this in:
root@server1 [~]# /usr/sbin/up2date --nox -f kernel

This is what was listed next

0. debug No
1. forceInstall Yes
2. isatty Yes
3. depslist []
4. retrieveOnly No
5. enableRollbacks No
6. pkgSkipList ['kernel*']
7. storageDir /var/spool/up2date
8. adminAddress ['root@localhost']
9. noBootLoader No
10. serverURL https://xmlrpc.rhn.redhat.com/XMLRPC
11. fileSkipList []
12. sslCACert /usr/share/rhn/RHNS-CA-CERT
13. noReplaceConfig Yes
14. useNoSSLForPackage No
15. systemIdPath /etc/sysconfig/rhn/systemid
16. enableProxyAuth No
17. retrieveSource No
18. versionOverride
19. headerFetchCount 10
20. networkRetries 5
21. enableProxy No
22. proxyPassword
23. noSSLServerURL http://xmlrpc.rhn.redhat.com/XMLRPC
24. keepAfterInstall No
25. proxyUser
26. removeSkipList ['kernel*']
27. useGPG Yes
28. gpgKeyRing /etc/sysconfig/rhn/up2date-keyring.gpg
29. httpProxy
30. headerCacheSize 40

Enter number of item to edit :


So what option do I choose next. I just want to make sure I have the latest Kernel.

Many thanks for any help I can get
foggy
choose option 26 remove kernel from the list then try again..


up2date kernel works just as well and automagickally updates lilo
jacknet
Thanks Matt!!!

I did what you said and then I had to register at RedHat and then found out I had to setup some more info on what needed to be updated at rhn.redhat.com and then did a reboot now I am getting this message on the server:

"Unable to fetch Web Host Manager news. The News server may be down or unreachable. "

So trying to see what I need to do to fix that.

Again thanks for your time


James
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.