Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'am running debian 4.0 on machine with no internet access. How can I upgrade it to latest stable? I can download iso using local machine and upload it via scp. whats next? Which iso - is cd1 enough or need download big dvd? Machine is running apache + php, no other extra packages.

share|improve this question
up vote 2 down vote accepted

You need mount this ISO image:

  $ sudo mount -t iso9660 -o loop /path/to/iso /mnt/deb-cd1

Next add /mnt/deb-cd1 to /etc/apt/sources.list:

deb file:///mnt/deb-cd1 squeeze main contrib

Next run:

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

NOTE: As CD can not contain all of packages that you install on your system some packages preserved in old version... With DVD you can upgrade more packages then with CD.

CD contain new kernel, libc and build toolset (as well as new Perl/Python/Ruby) so it is enough to upgrade. But namy other software that you can use out of CD content. Decide do you need new kernel and libc with older software or you need new packages as well.

NOTE Debiand 4.0 is too old and does not maintened now. So there are no any security fixes. Strongly recommend to upgrade!

share|improve this answer
Thanks. I want all new packages. As I said it is running apache+php+mysql application, I want to keep running it after upgrade. Im developer, linux begginer, inherited this server and want to ugrade it so can install latest java. – alef Aug 9 '11 at 8:57
:( - sth wrong : downloaded debian- and followed steps. during apt-get update got error : cant download file file:///mnt/deb-cd1/dists/squeeze/contrib/binary-i386/Packages.gz) mantis:/mnt/deb-cd1/dists/squeeze/contrib/binary-i386# ls `Release' – alef Aug 9 '11 at 10:16
ok, removed contrib from sources.list, and now successed this step – alef Aug 9 '11 at 10:31
Last time I use only DVD and there are exist contrib. non-free not allowed for distribution on CD/DVD. – gavenkoa Aug 9 '11 at 11:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .