Showing posts with label kernel. Show all posts
Showing posts with label kernel. Show all posts

Friday, September 8, 2017

Ubuntu Graphics Session Fix after botched Kernel Upgrade

Ubuntu Graphics Session Fix after botched Kernel Upgrade


Overview
This post is about restoring graphics to your Linux Desktop session if you install some kernel updates that dont go so well. Particularly, ones that fail with your graphics drivers.

Quick Steps
If you get error message (when trying to upgrade kernel packages or kernel drivers): "Skipping (driver build) at this time because kernel-source is missing." Try the following steps:

Note: `uname -r` is a commandline option which will auto-substitute your kernel version and architecture into the install command. If installing via a GUI, just use the info output from running the console command `uname -r`.
sudo apt-get install linux-source-`uname -r` linux-headers-`uname -r`
If this does not automatically cause your nvidia drivers to compile, cause a manual install with:
sudo apt-get install nvidia-current
If that still doesnt work, try uninstalling and reinstalling nvidia-current.


Background
Today I noticed there were some kernel updates in Ubuntu, but they had been kept back. So I decided to manually install them, since they did not appear to be causing any package conflicts. I do updates from command line with apt-get (because Im awesome that way *wink*). While installing the held-back packages, being kernel updates, it tried to accommodate my Nvidia graphics drivers.

Apparently, this failed. I noticed the error on the console, and immediately downgraded my kernel back to the previous versions. But alas, it did no good. I rebooted and was confronted with a text-only machine. Now, Im fine with this, since I spend a lot of time on console. (Screen, vim, ssh, and elinks are usually all I need for most rescue operations. Sometimes rtorrent, wget, and curl are handy too.)

After trying to get the packages to jive well together, I gave up trying to juggle the kernel packages and instead focused on the Nvidia drivers. I tried installing the nvidia-current package provided by the Ubuntu repositories. (I was running a later version from a PPA.). This failed, but triggered the same error.

"Skipping (driver build) at this time because kernel-source is missing." Now, Ive seen this error before. So I quickly installed the linux-source-`uname -r` package. This did not quite do the trick, and I have been around long enough to know that the source-packages often require the header packages as well. So I install linux-headers-`uname -r` package.

Once installed that, I didnt even have to do anything. The system automatically compiled the missing nvidia drivers and installed them for me. A quick reboot later, and now I am blogging about this simple solution.

download file now

Read more »

Friday, August 25, 2017

Ubuntu 12 04 LTS Receives new Kernel Update

Ubuntu 12 04 LTS Receives new Kernel Update



Ubuntu-12.04 LTS- Receives new Kernel Update




Keeping your computer software uptodate is the single most important task for protecting your system. Ubuntu can alert you to pending updates, and also be configured to apply updates automatically. Security updates for Ubuntu are announced via Ubuntu Security Notices (USNs).



Now how to update Ubuntu-12.04 Desktop edition.


By default, users are notified daily for security updates and weekly for non-security updates. How Ubuntu alerts you as well as configuring your system to install updates automatically can be setup within Update Manager. You can access Update Manager anytime by pressing Alt+F2, entering update-manager and pressing Enter. Its settings can be adjusted by pressing the Settings button.

Once Update Manager is open, you can review and select pending updates as well as check for new updates. Simply press the Install Updates button to upgrade the selected packages to the updated version.You can also update through terminal by giving this command.

$ sudo apt-get update
$ sudo apt-get upgrade OR sudo apt-get dist-upgrade



How to update & upgrade Ubuntu-12.04 server edition.


If the update-notifier-common package is installed, Ubuntu will alert you about pending updates via the message of the day (motd) upon console or remote login.
After logging in, you can check for and apply new updates with:

$ sudo apt-get update
$ sudo apt-get dist-upgrade

When performing an update, first review what apt is going to do, then confirm that you want to apply the updates (this is particularly true when running the development release).



download file now

Read more »

Thursday, August 24, 2017

Ubuntu 11 04 Upgrade Linux Kernel to 2 6 39 0

Ubuntu 11 04 Upgrade Linux Kernel to 2 6 39 0



Its been quite some time since Ubuntu released its 11.04 OS, even long before its stable release Natty Narwhals Alpha release had gone through some intense debates regarding its unity interface.
Despite the fact that Ubuntu is the most stable and user-friendly OS in the Linux family, its latest release of Natty Narwhal has left many Ubuntuans skeptical about upgrading from Ubuntu 10.10 , due to the fear of new unity interface and some known bugs.

I recently had some issues with Natty too, while using Gimp and Blender the screen just froze on me for no reason, it was very weird and was nothing like the Ubuntu Ive known form its 8.04 release.

When I spent some time on Natty Narwhals release notes  I found that it has a lot of known issues, one line under Graphics and display says:
On certain systems, a bad interaction between Unity, the GL driver and the kernel may cause the system to hang. (740126)

This is a frequent screen frozen issue, and it�s believed to have something to do with the kernel. In Ubuntu 11.04, the default Linux kernel version is 2.6.38-8. Considering the release notes bugs and the suggestions I received from users on launchpad.net I upgraded my Ubuntu kernel to 2.6.39-0, and that seems to have done the trick, all my applications now are stable and never freeze or hang.

If you consider upgrading your kernel to 2.6.39-0, here�s how you could do it.

Run these following commands in the terminal(Ctrl+Alt+T)

1.) Add the kernel ppa and update your system:

sudo add-apt-repository ppa:kernel-ppa/ppa

sudo apt-get update
 

  

2.) Check available kernels with the command:

apt-cache showpkg linux-headers




  kernel 2.6.39.0 should be in list.
 

3.) Run the command to install kernel 2.6.39.0:

sudo apt-get install linux-headers-2.6.39-0 linux-headers-2.6.39-0-generic linux-image-2.6.39-0-generic --fix-missing




And finally restart your computer, goto system monitor and check your systems kernel version.



------------------------------------------------------------------------------------------------------------------------------------------------------
Note: If you are doing this on virtual-box, after system restart you will be thrown back into Ubuntu Classic interface.To restore your system back into Unity interface you will have to reinstall guest additions and kill the gnome-settings-daemon, here are some commands that will help you do this.

(Only for Users upgrading on Virtual-box)
 

sudo apt-get update

sudo apt-get install virtualbox-ose-guest-utils

killall -9 gnome-settings-daemon && gnome-settings-daemon

and restart your guest OS.

download file now

Read more »

Sunday, August 20, 2017

Ubuntu 12 04 Install the 3 8 kernel

Ubuntu 12 04 Install the 3 8 kernel


Update

This tutorial is deprecated ever since Ubuntu 14.04 came out. Readers should upgrade to the Trusty Tahr kernel instead, or deploy a new 14.04 server.



To update to 14.04s kernel, run the following commands.

sudo apt-get install linux-image-generic-lts-trusty linux-headers-generic-lts-trusty
sudo reboot
You may want to use the "revert" section below to remove the older kernel(s).


Many services, such as Amazon Web Services, will deploy Ubuntu 12.04 with the paravirtual 3.2 (Xen) based kernel rather than use the 3.8 generic kernel. This is because paravirtual images perform better than generic ones on a hypervisor. I only mention Xen because AFAIK, paravirtualization is Xen specific (i.e. you wont find it on a KVM based provider). However, you meay need to install the 3.8 kernel in order to run things like Docker or BTRFS. Luckily, this is very easy to do:

    Install the kernel
    sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring
    Reboot
    sudo reboot
With Amazon Web Services, your EC2 instance will still be listed as "paravirtual" although it is now actually not if the original AMI you deployed from was a paravirtual instance.

Reverting

If you ever want to undo this and go back to the 3.2 kernel, just run the following commands:

sudo apt-get purge linux-image-3.8.*
sudo update-grub
sudo reboot

References

  • Xen Project- Paravirtualization
  • Stack Overflow - lxc-attach failed to enter the namespace - EC2 Instances
  • LinuxG.net - How To Install Kernel 3.5 / Kernel 3.8 On Ubuntu 12.04

download file now

Read more »

Thursday, August 10, 2017

Ubuntu 16 04 2 Has Released and upgrade for get Latest Kernel Support

Ubuntu 16 04 2 Has Released and upgrade for get Latest Kernel Support



The Ubuntu team is pleased to announce the release of Ubuntu 16.04.2 LTS for its Desktop, Server and Cloud products, as well as other flavours of Ubuntu with long-term support. Like previous LTS series, 16.04.2 includes hardware enablement stacks for use on newer hardware

Welcome to the Xenial Xerus edition of the Ubuntu Linux operating system, an open-source and free GNU/Linux distribution derived from the award-winning Debian GNU/Linux project.

Distributed as 64-bit/32-bit Live ISO images for the Desktop Edition

Ubuntu 16.04 LTS is currently distributed as two Live ISO images for the Desktop Edition, suitable for deployment on 64-bit (amd64) or 32-bit (i386) hardware architectures, and five ISOs for the Server Edition, which is also available for s390x, PowerPC 64-bit Little Endian (PPC64el), and PowerPC (PPC) architectures.

The Ubuntu team is pleased to announce the release of Ubuntu 16.04.2 LTS
(Long-Term Support) for its Desktop, Server, and Cloud products, as well
as other flavours of Ubuntu with long-term support.

Like previous LTS series, 16.04.2 includes hardware enablement stacks
for use on newer hardware.  This support is offered on all architectures
except for 32-bit powerpc, and is installed by default when using one of
the desktop images.  Ubuntu Server defaults to installing the GA kernel,
however you may select the HWE kernel from the installer bootloader.

As usual, this point release includes many updates, and updated
installation media has been provided so that fewer updates will need to
be downloaded after installation.  These include security updates and
corrections for other high-impact bugs, with a focus on maintaining
stability and compatibility with Ubuntu 16.04 LTS.

Kubuntu 16.04.2 LTS, Xubuntu 16.04.2 LTS, Mythbuntu 16.04.2 LTS,
Ubuntu GNOME 16.04.2 LTS, Lubuntu 16.04.2 LTS, Ubuntu Kylin 16.04.2 LTS,
Ubuntu MATE 16.04.2 LTS and Ubuntu Studio 16.04.2 LTS are also now
available. More details can be found in their individual release notes:


updated images for Kubuntu, Xubuntu, Mythbuntu, Ubuntu GNOME, Lubuntu, Ubuntu Kylin, Ubuntu MATE and Ubuntu Studio are also provided.

Download links:
ubuntu-16.04.2-desktop-amd64.iso (1,482MB, SHA256, signature, torrent, pkglist)
kubuntu-16.04.2-desktop-amd64.iso (1,498MB, SHA256, signature, torrent, pkglist)
xubuntu-16.04.2-desktop-amd64.iso (1,239MB, SHA256, signature, torrent, pkglist)
mythbuntu-16.04.2-desktop-amd64.iso (1,389MB, SHA256, signature, torrent, pkglist)
ubuntu-gnome-16.04.2-desktop-amd64.iso (1,260MB, SHA256, signature, torrent, pkglist)
lubuntu-16.04.2-desktop-amd64.iso (880MB, SHA256, signature, torrent, pkglist)
ubuntukylin-16.04.2-desktop-amd64.iso (1,466MB, SHA256, signature, torrent, pkglist)
ubuntu-mate-16.04.2-desktop-amd64.iso (1,618MB, SHA256, signature, torrent, pkglist)
ubuntustudio-16.04.2-desktop-amd64.iso (2,691MB, SHA256, signature, torrent, pkglist).

Follow this page for upgrade from Ubuntu 16.04.1

download file now

Read more »