[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Attempted upgrade from 1.3.1

On Tue, 30 May 2000, J.A. Bezemer wrote:

> On Tue, 30 May 2000, Philip Charles wrote:
> > I am about to write some simple 'cook-book' documentation which will be
> > part of the booklet which goes with my Debian CDs.  Would you like to look
> > at this?
> Yeah, I'd like that. There might be some things worthy of inclusion in the
> UPGRADING.txt/html ;-)

I have run dselect over the upgraded system and the resulting additional
upgrade was about equal to the original using apt-get.  I ran into
problems with fvwm95 and tetex, but this could have been caused by the
CDROM dirve.  I am not worried.  The next step is to run tasksel and see
what happens.

A draft of my upgrade documentation.  Feel free to use it as you want to.
This applies to everyone.  Comments welcome.

Upgrading with a CD set.

An upgrade needs a complete set of binary discs.  It is not possible to know 
what people have installed and packages you need may be on disc 3 or 4.


You must be logged in as root.  mc makes the first stages easy.

You must be able to mount the CDROM drive with the command "mount /cdrom".
If not, then add a suitable line to /etc/fstab such as
"/dev/hdc   /cdrom     auto     defaults,  noauto,  ro    0   0"
(assuming that your CDROM is /dev/hdc).

The directory /etc/rcS.d must exist.  If not, create it.

Your system must be fully functional with all the system partitions mounted.

Stage one.

Mount the CDROM, use mc to go to /dists/stable/main/upgrade-i386
run "dpkg -i dpkg*"  the order of installation is important.
run "dpkg -i apt*"   you have now installed the upgrade tools.

Go to /etc/apt/sources.list and make certain that every line is commented
out with a "#".

Stage two.

Exit mc and run "apt-cdrom add" follow the prompts.  You will have to repeat
this for each binary CD.

Run "apt-get update", everything is now ready for the upgrade.

Run "apt-get -f -u --simulate dist-upgrade |less"  This is a dry run.

Stage three.

Start a script session, i.e. run "script". 
Run "apt-get -f -u dist-upgrade" and watch the upgrade happen.
It is quite likely that apt will exit with an error.  Don't worry, run 
"dpkg --configure -a".  There is a chance that dpkg will also exit with an 
error, don't worry, go back and run "apt-get -f -u dist upgrade".
With a test upgrade from 1.3.1 to 2.2 apt fell over three times, but it worked.
When this stage of the upgrade is completed, test the system by running 
"dpkg --audit".  If it exits quietly, then the system is clean.

Stage four.

Run dselect.  dselect has changed.  Choose "apt" as the means of access and 
then "update" so that dselect knows what is on the CDs.  When you inspect
the select screen you will see that there is a number of packages to installed
and upgraded.  Make certain that packages like locales and util-linux are 
installed, if not, select them.

Run "install".  With the 1.3.1 to 2.2 upgrade "install" exited with errors 
twice.  This was solved by running "configure" and "remove", and then back
to "install".  When dselect has finished then the upgrade has been completed.
Exit dselect and test the completed upgrade with "dpkg --audit".

Other points.

You may wish to upgrade your kernel.  If you do this, follow the instructions.
This procedure can be used to convert a Corel or Storm system to Debian.

Philip Charles; 39a Paterson St., Abbotsford, New Zealand; +64 3 4882818
Mobile 025 267 9420.  I sell GNU/Linux CDs.   See http://www.copyleft.co.nz

Reply to: