PDA

View Full Version : [ubuntu] How to Upgrade from Ubuntu 7.10



edwinkcw
June 6th, 2009, 08:00 AM
I have a server installed for long time. Recently, I ssh to this machine but I found that I cannot apt-get anymore since all the source in source list are expired. How can I upgrade my Ubuntu? Thanks.

Bucky Ball
June 6th, 2009, 08:10 AM
I would fresh install 8.04 LTS (long term support) server version. Upgrade can take awhile and are sometimes problematic.

:)

edwinkcw
June 6th, 2009, 08:19 AM
Thus, you mean I need to reinstall Ubuntu as well?

pastalavista
June 6th, 2009, 08:21 AM
But if you don't want to install fresh


sudo do-release-upgrade

edwinkcw
June 6th, 2009, 08:34 AM
But if you don't want to install fresh


sudo do-release-upgrade

I had tried this
but it shows
$ sudo do-release-upgrade
sudo: do-release-upgrade: command not found

pastalavista
June 6th, 2009, 08:48 AM
I had tried this
but it shows
$ sudo do-release-upgrade
sudo: do-release-upgrade: command not found

come to think of it, 'sudo' may not be necessary.. try it without sudo, it might not need it until the process starts... or it could just be for Intrepid and Jaunty

Or you could try
sudo apt-get upgrade -d

edit: just read the help file and it specifies this for servers

do-release-upgrade -m --server

edwinkcw
June 6th, 2009, 08:51 AM
come to think of it, 'sudo' may not be necessary.. try it without sudo, it might not need it until the process starts... or it could just be for Intrepid and Jaunty

tried, however, the same error occurs
$ do-release-upgrade
-bash: do-release-upgrade: command not found
btw, thanks

pastalavista
June 6th, 2009, 08:59 AM
Oh well, been to long since I ran Gutsy... sorry

edwinkcw
June 6th, 2009, 09:04 AM
Oh well, been to long since I ran Gutsy... sorry

ok....any other suggestions, I don't want to reinstall every thing

pastalavista
June 6th, 2009, 09:11 AM
According to this page (http://www.howtoforge.com/upgrade-ubuntu-7.10-server-to-8.04-lts), you need to install update-manager-core first.

edwinkcw
June 6th, 2009, 09:16 AM
According to this page (http://www.howtoforge.com/upgrade-ubuntu-7.10-server-to-8.04-lts), you need to install update-manager-core first.

Ya...but....I cannot apt-get now since the source list is out-of-date....

Partyboi2
June 6th, 2009, 09:21 AM
Hi, backup your current sources.list and try replacing your sources.list with

deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main/debian-installer
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiversethen update and try installing the update-manager-core package.

pastalavista
June 6th, 2009, 09:28 AM
You can download the packages here

http://mirrors.kernel.org/ubuntu/pool/main/u/update-manager-core/update-manager-core_0.56~dapper5_all.deb There was no version specifically for Gutsy, but this should do it. You could also edit your sources.list file (back it up first) and change 'Gutsy' to 'Hardy' in the entries... and then do apt-get update

edwinkcw
June 6th, 2009, 09:51 AM
Hi, backup your current sources.list and try replacing your sources.list with

deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main/debian-installer
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiversethen update and try installing the update-manager-core package.

Thanks,
How can you get this source list?

Partyboi2
June 6th, 2009, 09:59 AM
From the terminal backup your current sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backupthen open your sources.list

sudo nano /etc/apt/sources.listdelete the contents and add

deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main/debian-installer
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse then save and close nano

Ctrl+o
Enter
Ctrl+x
then

sudo apt-get update
sudo apt-get install update-manager-core

edwinkcw
June 6th, 2009, 10:53 AM
From the terminal backup your current sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backupthen open your sources.list

sudo nano /etc/apt/sources.listdelete the contents and add

deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main/debian-installer
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse then save and close nano

Ctrl+o
Enter
Ctrl+x
then

sudo apt-get update
sudo apt-get install update-manager-core

I know how to do it..
but more and more problem occurs about the dependency:

Setting up libgtk2.0-common (2.12.9-3ubuntu2) ...
Setting up libpango1.0-common (1.20.1-1) ...
E: /var/lib/defoma/locked exists.
E: Another defoma process seems running, or you aren't root.
E: If you are root and defoma process isn't running undoubtedly,
E: it is possible that defoma might have aborted.
E: Please run defoma-reconfigure -f to fix its broken status.
Failed to clean up for defoma: 256 at /usr/sbin/update-pangox-aliases line 48.
dpkg: error processing libpango1.0-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libpango1.0-0:
libpango1.0-0 depends on libpango1.0-common (>= 1.20.1-1); however:
Package libpango1.0-common is not configured yet.
dpkg: error processing libpango1.0-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk2.0-0:
libgtk2.0-0 depends on libpango1.0-0 (>= 1.20.1); however:
Package libpango1.0-0 is not configured yet.
dpkg: error processing libgtk2.0-0 (--configure):
dependency problems - leaving unconfigured

Bucky Ball
June 6th, 2009, 10:56 AM
I would fresh install 8.04 LTS (long term support) server version. Upgrade can take awhile and are sometimes problematic.

:)

Save everything you need to save and start again. Easiest in the long run. I never keep anything on the same partitions as my OSs. That way you can always just kill the appropriate OS and start again without having to pluck bits out.

edwinkcw
June 6th, 2009, 11:01 AM
Save everything you need to save and start again. Easiest in the long run. I never keep anything on the same partitions as my OSs. That way you can always just kill the appropriate OS and start again without having to pluck bits out.

ic .... actually, how do you partition your HD?

Bucky Ball
June 6th, 2009, 02:45 PM
Not sure if you have a desktop environment on your server or not, but you can use Gparted to resize and partition (System->Administration->Partition Editor). If you're wanting to resize the partitions your OS is on, your best bet is to download Gparted LIVE iso and make a CD and boot from that as the partitions need to be unmounted to work on (impossible if you are actually running your OS from the parittion you want to resize):

http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=271779

0.4.5-2 is the latest, the first one. Backup your data to an external drive or somewhere else is a good idea if possible before resizing.