Posted by & filed under Geek, Linux, Tutorials.

As you’ve probably found out upgrading your out dated install of Ubuntu is prooving to be quite an effort! You’ve probably googled a bit first to see the process involved and been hit with alot of people saying you cant update Jaunty to Lucid ~ Natty, or even you’ve just tried to update via the usual method and its not worked e.g:-

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade

So what i’ll do is walk you through how to update Ubuntu to Lucid and then the “fun” really starts. What you’ll find is when the update manager “apt” throws this message back in your face you’ll be stuck in a void of nothing and won’t be able to update without manually intervening.

Checking for a new ubuntu release
No new release found

I tried various other methods, and then I came across this method again of doing,

$ sudo apt-get dist-update

I thought I was onto a winner as the server started to update, only to find that when I did a lookup at the version my Ubuntu was using it reported that I was still using 9.04!

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=Jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

How annoying this is turning out to be! Right back to the drawing board.
After a good bit of googling, and a bit of intuitive I managed to get the OS to update… Well not to the latest version, but I thought If i go from Jaunty (9.04) to Karmic (9.10) then I could update to Lucid (10.04)+ Which has the LTS (Long Time Support) which in my eyes is needed for LAMP Servers!

This is how I got it to work…

You first of all need to change your /etc/apt/sources.list and inside of that file you need to comment everything out with #’s and add these lines to the very bottom

deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

Easiest way on ubuntu to edit said file would be to do:

$ sudo nano /etc/apt/sources.list

Once you’ve done that, and saved the file with CTRL + X then hit Y for allowed to Overwrite, and its just a case of running the apt update commands again like so:

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

Once thats all updated you should be running a most upto date version of Jaunty, after this you need to update to Karmic.
So to do this we need to tell apt-where to look for Karmic update, So its back into the sources to change the url from Jaunty to Karmic

Replace these lines that we added earlier:-
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

With these lines:-
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse

Then save and overwrite it again, and continue to update in the same way with the following commands:-

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

Now we and make sure its updated to Karmic 9.10

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=Karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

Note: I managed to get an issue with a package or to, and it would seem that this is a common issue, so if you come into contact with this “/var/cache/apt/archives/kdebase-runtime-data_4%3a4.4.5-0ubuntu1_all.deb” You might want to try this (At your own risk!)

$ sudo rm /var/cache/apt/archives/*
Then once you’ve done that, do the updates again (Sorry it gets boring with writing the update commands, but this is a tutorial so I’m keeping it super easy and simple).
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

If that still throws an error, you might want to try this.

$ sudo dpkg -i --force-all /var/cache/apt/archives/kdebase-runtime-data_4%3a4.4.5-0ubuntu1_all.deb
$ sudo apt-get -f install
$ sudo apt-get autoremove

This fixed my issue, so I then moved onto checking my version with the overused command:
$ cat /etc/lsb-release

So you should be currently running Karmic 9.10! Great! You’re half way through this update.

Next time to tell the server to update to 10.04, So again we need to edit our Sources

$ sudo nano /etc/apt/sources.list

Yet this time we’re not looking for an older version so the URL are differnt.

Change this:
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse

to this:
deb http://security.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse

Then its just a case of rise and repeat with the update commands

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

Once thats completed, check your version!
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04.3
DISTRIB_CODENAME=Lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

Thats you now running 10.04.3 and you now just need to repeat the exact same process for updating to Ubuntu 10.10 (Maverick) and then to Ubuntu 11.04 (Natty).
It’s a lengthy process but I’m sure you’ll all agree keeping these things updated often saves massive future headaches!

I hope that helps anyone who has been struggling updating their server install from a very out dated OS version.
Any issues or questions then please leave a comment below.

Thanks Dan.

Posted by & filed under Geek, Networking, Rants.

Last week I got invited to the new Google Plus (aka Google+) website, and I like many of you where thinking, Is Google Plus going to be a “hit” or “miss”? Now I like many of you use and love facebook, Yes its full of rubbish from time to time, but what website isn’t these days?

What I’ve found with facebook is that, I moved there because origianlly MySapce was “where it was at”, That soon lost its cool vibe when Facebook came along with its sleek looks normal user feel, without being run on the backend of the music scene and lack of adverts. Since then Facebook has grown and grown in size to what we know and see today, but the thing im finding now with facebook is people that I dont know adding me randomly, Im getting spam from other users who are getting “fraped” aka facebook raped, as its globally known as, and people requesting that I play farm ville because they need my help to make there farm better… Now im not sure if you to are in the same mindset as me but I couldn’t really care if Megan Fox added me, and if my nextdoor neigbour is posting a status of “I like man love, ok” or how good of a virtual farmer you are… All i origianlly signed up for with facebook was to see photos of me and my friends and organise the odd party or event!

So in my eyes Facebook has started to turn into Myspace, infact it hasn’t at all… its now worse! This is why Google+ has my vote, you’ll notice that the user interface of Google Plus looks a whole lot like Facebook, but better. The UI is cleaner, crisper and easier to navigate and currently it has zero adverts!

I’m in love with Google Plus maybe because I can follow other tech bloggers and journalists and some Google employees.

Lets just see how this lasts, and how long it is before facebook, or another site counter acts to this new Google Plus Service! I think they’re going to have a hard time matching something as clean and big as a good Google service like this! Its outright, brilliant!

Here’s a short video from the guys over at Google, and you’ll see exactly what I mean after watching this.

Posted by & filed under Geek, Linux.

If you notice the new version of OpenSSH couldn’t installed just by,
# yum update

Also it’s not available in CentOS repositories so in this article I want to tell you how to installed manually used the tarball

First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://www.openssh.com/portable.html

# wget http://mirror.mcs.anl.gov/openssh/portable/openssh-5.8p2.tar.gz

# tar -xvzf openssh-5.8p2.tar.gz

Copy the spec file and tarball:
# cp ./openssh-5.8p2/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/
# cp openssh-5.8p1.tar.gz /usr/src/redhat/SOURCES/

Let’s make the specified files and do some installing:
# cd /usr/src/redhat/SPECS
# perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec

Build the RPM
# rpmbuild -bb openssh.spec

Now if you go back into /usr/src/redhat/RPMS/ , Navigate into the folder that suits your OS install, (x86 was mine), You should then see three RPMs. Go ahead and install them:
# rpm -Uvh *.rpm

To verify the installed version, just type
# ssh -v localhost

You should get an out put like the following:
OpenSSH_5.8p2 CentOS *, OpenSSL 0.* **********

* = Version numbers so ignore those, as I didn’t want to disclose that information.