Ubuntu Installation :: How To Prevent Removal Of Older Kernel Versions On Update
Jul 28, 2010
I need to prevent that the latest kernel update removes the only kernel that still works in my computer. how can i do this? Currently I have 3 linux kernels versions:
But only the oldest works. With the new update there is a new kernel version (2.6.32-24) that possibly will not boot (like previous 2.6.32-* kernels) and also I expect that, as in previous updates, the oldest kernel will become inaccessible, thus rendering my ubuntu unbootable.
PS: unsolved threads on the underlaying problem: Can't boot default kernel after upgrading from 9.xx to 10.04 lucid Upgrade to 10.04 freezes on the Ubuntu screen
I'm sorry if this is recurring subject, but I have searched the forum for such a subject and can't find one.I'm using Xubuntu 8.10, I'd like to update my programs to the latest releases, but the available updates in 8.10 versions are not the newest ones. I can't upgrade to a newer version of Ubuntu due to some known issues with older Intel drivers.
Is it possible to have the latest updates of packages while I still using 8.10 version?
I installed Ubuntu Server 8.10, 9.04, 10.04, until I discovered that the packages of these versions to upgrade and install graphics settings are not available, then install the current version is 11.04 and there I found that repositories responded and set me right. Then the repositories of previous versions are not available? When I install the current version on all packages that I need to back packs and save it for if I need it later.
How do I get the packages and put together a repository itself if others were dashed this is still operating, and maintenance would be needed?
The server runs# uname -r2.6.18-128.4.1.el5However, today I executed yum update kernel*due to security advisory. I was just about to reboot the system when I realized that it runs VMWare Server Instance that will most likely fail to restart after kernel upgrade (I had a hard time fixing it after previous kernel update). Now I want to keep 2.6.18-128.4.1.el5 after reboot.I see that new kernel is scheduled for booting:
When yum updates the kernel it keeps the last 3 versions; the older kernels are deleted. Is there a way to keep more than 3 versions?
I presently have one working version and two which are not compatible with my machine. One more bad version and my system will be toast. (I would like to keep the "bad" versions for testing.)
I checked my kernel version (uname -r) and see I'm on "2.6.34.8-0.2-default", and I noticed that they just released 2.6.39. I'm assuming (perhaps incorrectly) that there's been at least versions 2.6.35/6/7/8 released in there. Why isn't my openSUSE 11.3 using anything more recent than .34? How does this updating work? Is 11.4 on a more recent one?
how can i run old software versions in lucid. For example I have to run Postgresql 8.3 on lucid but if I do apt-get then I get Postgresql 8.4, which is not what I want.
So I've been trying to install 11.04 on my laptop for a couple days. I tried the USB install a countless amount of times, and I tried upgrading from 10.04 to 10.10 to 11.04, but it never worked. I finally installing it from Windows by the wubi installer, and now it works perfectly.
What I want to do now is remove 10.04, as well as GRUB. GRUB first comes up, and I select my Windows partition. Then I choose Ubuntu to load, and then another GRUB comes up. how do I remove 10.04, as well as make loading Ubuntu more simple?
I started an upgrade from Ubuntu 8.04 to 10.04 and it stopped with the message: Ubuntu desktop is listed to be removed but is on the removal blacklist. Then it restored back to 8.04. I don't know how to resolve this - it would be alright to remove the old Ubuntu desktop.
There are bugs in a program that the newer version is supposed to have fixed but the Ubuntu Repositories only have an older version.
1) Is there a place I can check to see if there is an update planned for the Ubuntu Repositories soon?
2) If I download and install the newer version from the source's website, will this break getting future updates from the Ubuntu Repositories using apt-get or aptitude or synaptic?
i wanna install older versions of fedora(10 or 11), and after looking everywhere, i found that if you search the available mirrors through the download page. This allows you to select mirrors with the version you want. I didnt know if that was the way to get older versions or if there is another way.
When I turn on my computer, because of frequent updates it will display several versions of Ubuntu 10.10 that I can choose from. I wonder if it is possible to delete some of the older versions and how. I think having several versions of Ubuntu uses up a lot of space in the hard drive.
My company offers Linux preloads in RHEL, Fedora and Ubuntu. I have Fedora 13 installed on my laptop. I want to install it on a desktop but the 2.6.33 kernel hangs the desktop when the Fedora 13 or Ubuntu Lucid DVD boots. I have the Ubuntu Jaunty preload on the desktop but would prefer Fedora. The preload includes a few apps for my job that aren't included with Ubuntu. Is it possible to select an older kernel to boot to and/or use that during the install? I think it is the SCSI controller causing this. I have the same model machine at home configured the same way except the onboard SCSI is disabled, I am using SATA drives in it.
Is there any legal way to install an older version of linux-kernel (say 2.6.35) on 11.04? By legal I mean - no source-compiling and third-party repo adding.
Here's how to always have only the latest kernel version in your grub: Code: sudo gedit /etc/grub.d/10_linux
Find these lines: Code: list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done`
And change it with this: Code: for ver in /boot/vmlinu[xz]-* ; do list="$ver" done
Notice two differences. 1. There's no ` before "for" and after "done" keywords. 2. There's no list= before "for"
If you want to change the name of entry, scroll down to the end of the file and find last two occurrences of: Code: linux_entry ${OS} stands for Ubuntu and ${version} stands for your kernel version. I changed this into: Code: linux_entry "${OS} 9.10 Karmic Koala"
You can use your own imagination. If you want to have specific name for your Windows entry, in /boot/grub/grub.cfg copy everything between: Code: ### BEGIN /etc/grub.d/30_os-prober ### and Code: ### END /etc/grub.d/30_os-prober ### paste it in /etc/grub.d/40_custom
Change the text between double quotes right after menu entry. (For example, my 40_custom looks like this now: Code: #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the menu entries you want to add after this comment. Be careful not to change the 'exec tail' line above. menuentry "Windows 7" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set bcdc24dddc249424 chainloader +1 } ) and make 30_os-prober not executable: Code: sudo chmod -x 30_os-prober
If you want to remove recovery mode entry, just uncomment this line in /etc/default/grub: Code: #GRUB_DISABLE_LINUX_RECOVERY="true" PS Don't forget to run Code: sudo update-grub After you finish editing everything! And check in /boot/grub/grub.cfg if everything is ok!
I have looked for existing threads on this issue, but found no matches, so I am starting a new one.I first installed Ubuntu 9.04 on my laptop from a bought CD last year. When I later installed the kernel updtates with the Update Manager, I noticed the the list of versions growing when I booted up. Then something horrible happened. After installing maybe the third or fourth kernel update, I couldn't boot into Ubuntu, it failed every time. After that I left Ubuntu broken on my laptop for a while.I have now reinstalled from the CD again However, I am now very wary when it comes to installing even the important security updates, never mind the recommended ones! I prefer to keep it simple, because I don't want to do any more reinstalls for a while. So far I have just one kernel headers update on the boot list, and I am trying to figure out how to remove the previous one. I do not see the point in having a growing list of them again.
As a follow-on to something Telemachos said in another post:
Quote:
Originally Posted by Telemachos
You can see what kernels you have installed - to check if you have a virtual kernel and to clean up - by running this command:
Code:
If you've been installing kernel-headers along with the kernels (say to build modules for graphics or wireless), you should remove those when you remove the corresponding kernel. The command to search for those is parallel:
Code:
I would have thought that removing a given kernel package would trigger the removal of the older kernel headers. Can someone confirm that is, or is not, the behavior? I ask this because it seemed to me that the older kernel header packages were indeed removed when I removed some older kernel packages.
For example, the linux kernels I have installed are:
Code:
Also, the linux-headers packages I have installed are:
Code:
So, when I get around to removing the linux-image-2.6.25-2-amd64 package like this:
Code:
I would expect apt-get to automatically also remove linux-headers-2.6.25-2-amd64 and linux-headers-2.6.25-2-common. Is that what will happen, or do I need to explicitly state all three packages on the apt-get remove command?
Is removing previous older kernels "vmlinuz", when updates do get a newer version an easy task, or do the more recent Linux like Ubuntu 9.10 do that automatically, and only keep a few older previous kernels ?
I just did an upgrade and it included the kernel. As time goes by, I will be stuck with a lot of kernels to choose from, and lower disk space. How do I remove an older kernel and everything it's related to it without breaking stuff?
Today, I used the Update Manager to do my first post-installation update of Ubuntu 9.10. I have a multi-boot setup (Ubuntu / WinXP), using GRUB2. Before the update, I had 5 options: Ubuntu, Linux 2.6.31-14-generic Ubuntu, Linux 2.6.31-14-generic (recovery mode) Memory test (memtest86+) Memory test (memtest86+, serial console 115200)
[Code]...
Is it valid that the -14- has remained in the list? Surely I can only boot -20- now? How should I get rid of this version since it is added by update-grub because of the existence of this file: /boot/vmlinuz-2.6.31-14-generic,Should I delete the file or just rename it? Or is there a better way?
With the updates received with Ubuntu 10.10 my grub splash screen has become very busy. Is there a proper way to clean off the older update options?My dual boot for Windows 7 has now been pushed off to a second screen.
Trying to install VMWare I get the following message:
Really after it VMWare anyway doesn't agree to install. Zypper says that no newer version of gcc is available. So I can't see how I can install VMWare.
I've recently downgraded kaffeine to 0.8.8 to get back the EPG which was working under hardy. Is there a simple way to prevent a package from updating when I update the rest of the system? I realise that this is not normally a good idea to keep packages back like this, but the upgrade to kaffeine caused the loss of a useful tool.
I dont know how to put this that somobody would understand my problem but here we go. I have problem like said in title.I am unable to upgrade my kernel. Sunaptics says that I have 2.6.35-28 installed. I tried to reinstall 2.6.35-28 via synaptics but it gives me error.
Thats what uname -a says:
pekka@pekka-laptop:~$ uname -a Linux pekka-laptop 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux
Tried to install 2.6.35-27 via terminal thats what I get:
Code: pekka@pekka-laptop:~$ sudo apt-get install linux-image-2.6.35-27 [sudo] password for pekka: Reading package lists... Done Building dependency tree code....
dpkg: error processing linux-image-2.6.35-25-generic (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: linux-image-2.6.35-25-generic E: Sub-process /usr/bin/dpkg returned an error code (1) pekka@pekka-laptop: