Announcement

Collapse
No announcement yet.

Kernel-Images and Updates

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kernel-Images and Updates

    Hello!

    On my laptop I installed Feisty. In autumn I switched to Gutsy, via the update function of Adept.

    Because I had some problems with the kernel 2.6.22-14.46 (Gutsy) I still boot the old Feisty kernel 2.6.20-16.32.

    Now there is another Update due (for some weeks already) to kernel 2.6.22-14.47
    • Will this update remove the old but running feisty kernel 2.6.20... and leave me with two 2.6.22... ?
    • How can I protect the 2.6.20, to not be automatically removed?
    • Where can I download a deb of the old 2.6.20 kernel for emergency recovery?
    • In worst case, if I have to boot from the Feisty-Live-CD: Can you help me with the apt-get command? I assume:
      apt-get install kernel-2.6.20...deb
      will work on the Live-CD's RAM-Disk ... how to specify my harddrive as target?


    Any help appreciated
    private_lock

    #2
    Re: Kernel-Images and Updates

    In your GRUB boot menu, /boot/grub/menu.lst, between the *** Begin Automagic and *** End Automagic lines, there is a section specifying how many kernels should be put into the menu.lst. You want it to say
    # howmany=all

    That should do the trick and keep all kernels visible to you upon booting your PC.
    Caution: I have no experience updating versions (say from Fiesty to Gutsy)! -- I always do fresh installs.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Kernel-Images and Updates

      Checking:

      - you are using linux-image-2.6.20-16
      - you don't want kernel upgrades
      - you want to download backup kernel


      Will this update remove the old but running feisty kernel 2.6.20... and leave me with two 2.6.22... ?
      I don't think so. Here it just adds new kernel as default start kernel. Look at
      HOWTO: Removing unnecessary entries from the grub menu list
      (a.k.a removing old kernel packages and rewriting new menu.lst)
      http://kubuntuforums.net/forums/inde...opic=3082556.0

      How can I protect the 2.6.20, to not be automatically removed?
      Simply - don't update kernels.
      Hmm - maybe Synaptic Package Manager can help you. There is option to lock packages:
      To Lock a Package to the Current Version
      To lock a package to the current version follow these steps:
      Select the package that you want to lock in the package list.
      Choose Package → Lock Version.
      The Synaptic Package Manager will reload the package information. You should now see, that the menu item Package → Lock Version is checked. Furthermore all actions in the menu Package are disabled now.
      To unlock the package uncheck Package → Lock Version.
      Where can I download a deb of the old 2.6.20 kernel for emergency recovery?
      Ubuntu packages
      http://packages.ubuntu.com/
      =>
      Search package directories
      Keyword: linux-image
      Distribution:feisty
      =>
      Package Search Results

      You have searched for packages that names contain linux-image in distribution feisty, all sections, and all architectures.

      Found 47 matching packages, displaying packages 1 to 47.
      =>
      If you are using generic:
      Package: linux-image-2.6.20-16-generic (2.6.20-16.33) [security]
      Linux kernel image for version 2.6.20 on x86/x86_64

      This package contains the Linux kernel image for version 2.6.20 on x86/x86_64.

      Also includes the corresponding System.map file, the modules built by the packager, and scripts that try to ensure that the system is not left in an unbootable state after an update.

      Supports Generic processors.

      Geared toward desktop systems.

      You likely do not want to install this package directly. Instead, install the linux-generic meta-package, which will ensure that upgrades work correctly, and that supporting packages are also installed.
      => Download linux-image-2.6.20-16-generic

      In worst case, if I have to boot from the Feisty-Live-CD: Can you help me with the apt-get command? I assume:
      apt-get install kernel-2.6.20...deb
      will work on the Live-CD's RAM-Disk ... how to specify my harddrive as target?
      APT HOWTO
      http://www.debian.org/doc/manuals/ap.../index.en.html
      or
      Code:
      man apt-get
      To get package (in the live CD session):
      Code:
      sudo apt-get update
      sudo apt-get -d install linux-image-2.6.20-16
      -d, --download-only
      Download only; package files are only retrieved, not unpacked or installed.
      linux-image is at /var/cache/apt/archives. Copy it in safe place.


      Installing package:
      Code:
      sudo dpkg - i package.deb
      man dpkg:
      dpkg(1) dpkg suite dpkg(1)

      NAME
      dpkg - package manager for Debian

      SYNOPSIS
      dpkg [options] action

      WARNING
      This manual is intended for users wishing to understand dpkg’s command
      line options and package states in more detail than that provided by
      dpkg --help.

      It should not be used by package maintainers wishing to understand how
      dpkg will install their packages. The descriptions of what dpkg does
      when installing and removing packages are particularly inadequate.

      DESCRIPTION
      dpkg is a tool to install, build, remove and manage Debian packages.
      The primary and more user-friendly front-end for dpkg is dselect(1).
      dpkg itself is controlled entirely via command line parameters, which
      consist of exactly one action and zero or more options. The action-
      parameter tells dpkg what to do and options control the behavior of the..


      ACTIONS
      dpkg -i | --install package_file...

      About /var/cache/apt/archives

      HOWTO: Cleaning local package archives
      http://kubuntuforums.net/forums/inde...opic=3082399.0


      Link:
      The dangers of automatic updates
      http://www.linux.com/feature/119162
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Kernel-Images and Updates

        @Qqmike

        The howmany=all is already set and I remember the older feisty kernel 2.6.20-15... being erased to allow for the newer gutsy 2.6.22... Actually in /boot I see only two pairs of files one 2.6.20-16 and one 2.6.22. So the 15 is definitely gone from my harddrive. There must be a hidden secret location where the package management knows to retain two distinct kernels. I'd like to write a three in there for the moment ;-)

        @Rog131

        Wow ... I got to work through all this. Hopefully on Saturday, but not right now. I'll report back on my progress.

        Thanks to both of you!
        private_lock

        Comment


          #5
          Re: Kernel-Images and Updates

          Pinning version

          3.10 How to keep specific versions of packages installed (complex)
          http://www.debian.org/doc/manuals/ap....en.html#s-pin

          Note
          Not so complex.

          Example.
          I'm using dolphin 0.82 and i don't want to upgrade to the 0.92.

          Now:
          Code:
           sudo apt-get -s upgrade
          -s, --simulate, --just-print, --dry-run, --recon, --no-act
          No action; perform a simulation of events that would occur but do
          not actually change the system.
          =>
          There are three upgradeable packages:
          amarok amarok-xine dolphin
          Inst amarok-xine [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports) []
          Inst amarok [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Inst dolphin [0.8.2-1] (0.9.2-0ubuntu2 Ubuntu:7.10/gutsy)
          Conf amarok (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Conf amarok-xine (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Conf dolphin (0.9.2-0ubuntu2 Ubuntu:7.10/gutsy)
          But if i:
          Alt + F2 : kdesudo kate /etc/apt/preferences
          and put there:
          Package: dolphin
          Pin: version 0.8.2*
          Pin-Priority: 1001
          After this
          Code:
          sudo apt-get update
          and
          Code:
          sudo apt-get -s upgrade
          There are two upgradeable packages:
          amarok amarok-xine
          Inst amarok-xine [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports) []
          Inst amarok [2:1.4.7-0ubuntu3] (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Conf amarok (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Conf amarok-xine (2:1.4.8-0ubuntu1~gutsy1 Ubuntu:7.10/gutsy-backports)
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Kernel-Images and Updates

            @Rog131

            Thank you very much! This is absolutely brilliant. I spent some time reading, downloaded the old kernel for backup. Finally I did the update. The new kernel just modified the other 22 kernel and left the version 20 untouched. The new one still isn't running, but I'm confident now, to survive any further kernel-upgrades. As long as the new one isn't running, I can always recover to the backup now.

            Great and thanks a lot. You definitely saved me a lot of time to research all this information myself.
            private_lock

            Comment


              #7
              Re: Kernel-Images and Updates

              Thanks Rog! I've added that little tidbit of info to my repository of "Good to know stuff." And just how much more of this stuff do you have tucked away in the igloo of yours!!
              Using Kubuntu Linux since March 23, 2007
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Kernel-Images and Updates

                thanks a lot! worked perfectly with Kubuntu 9.10 with KPackageKit.

                Comment

                Working...
                X