One of the nice things about #! LINUX is that it assumes that you are smart enough to keep your system up to date by periodically checking to see if there are any updates available. Ubuntu preferred to generate a window with a blinking icon, roughly as annoying as someone jumping up and down and waving their hands near your face just out of the corner of your vision while you're trying to compose a letter. It was all the more annoying because I prefer to do my upgrades from terminal, because I can have an easier time handling kernel upgrades in that fashion. This behavior is the norm from Microsoft because Microsoft assumes by default you are all idiot computer owners. If, however, you are using LINUX, it can be safely assumed that you are not an idiot. Of course this is what brings me to this post today.
Before I get into this, however, if you are new to LINUX or new to Debian based distributions, you should open a terminal window and type in the following two commands daily, or at the very least once a week, in order to keep your system up to date and secure:
|
sudo apt-get update
sudo apt-get upgrade
|
The first command will make sure your sources are all up to date with their lists of available software, and the second will automatically download and install new versions of your current sources. This command will not, however, install new kernels and you will typically see a message stating that certain updates have been "held back". If you do not have any manually installed packages (meaning without the use of dpkg, aptitude, or Synaptic Package Manager which are built-in software package management utilities) you can type the following command to upgrade your kernel:
|
sudo apt-get dist-upgrade
|
Two packages in #! that I install manually are AMD Catalyst to provide full 3D rendering support, and VMWare Player (which I have been using to create #! tutorial videos without having to modify my main system). The downside to doing this is that these programs make changes directly to the kernel, consequently whenever the kernel gets updated, problems can occur. Most notably they will occur when you try to upgrade other packages that impact these programs in some way, because aptitude or Synaptic Package Manager will fail to complete the upgrade. Trying to remove the packages that have failed in order to reinstall them is not a good workaround. Also, the following command will typically not work in this situation (but can be helpful if something did not install completely or correctly under normal circumstances):
Consequently the best method is to do a manual uninstall of each program before upgrading your kernel. This is why it is beneficial that "apt-get update" does not automatically upgrade your kernel (the above explanation has been filed under the category of "things that nobody ever bothered to explain to me but which would have been helpful knowledge to have", hence this post).
Unfortunately each program you install in LINUX manually is bound to have a unique uninstall method, and in some cases different uninstall methods depending on the version of the software you are using. It will require some research and potentially some trial and error to figure out the correct command. However, again, terminal will be your friend as you resolve these issues and you'll feel better knowing that you are much more knowledgeable about your computer than you used to be.
For example, the command to manually uninstall AMD Catalyst 12.1 is currently:
|
sudo sh /usr/share/ati/fglrx-uninstall.sh
|
Please note that if you have created .deb packages or installed Catalyst from a respository this command will not work.
Likewise, the current command to remove VMware Player is:
|
sudo vmware-installer -u vmware-player
|
When prompted it is likely safer to not delete your settings, unless you do not intend to reinstall VMware Player.
Once the software has been manually removed it is now safe to upgrade your linux kernal using the "apt-get dist-upgrade" command listed above. After restarting your system, you can then safely proceed with reinstalling the software that has been manually removed. Depending on the kernel update, it may be necessary to obtain a newer version of the software. If a newer version of the software has not yet been released, you may wish to revert back to the previous kernel in the meantime in order to keep using your current version (which should still be available as a boot choice in your Grub startup menu).
Once you have working software again, it should be safe to uninstall the old kernel if you wish to remove it from your grub menu.
VMware Player Update: I'm using VMware Player 4.0.2 and just upgraded #! to the LINUX 3.2 kernel, which resulted in VMware Player attempting to update the new kernel and then failing to start with a "module updater unable to start services" error message. If you run into this issue yourself, you will need to apply this patch after reinstalling VMware Player 4.0.2 before you can run it (link to patch file found at VMware Community Forums). Download the patch to your home folder, then open a new terminal window and type the following commands:
|
tar -xvzf vmware802fixlinux320.tar.gz
sudo ./patch-modules_3.2.0.sh
|
You should now be able to run VMware Player 4.0.2 on the LINUX 3.2 kernel.