LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-23-2019, 07:59 AM   #1
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Rep: Reputation: Disabled
How to upgrade from lenny to stretch?


Hello all,

I have a machine with Debian Lenny. I'm wondering if i could upgrade it straight to Debian Stretch? How to do it right?
 
Old 01-23-2019, 08:17 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541
Welcome to LinuxQuestions.

Lenny is version 5 and Stretch is version 9. As far as I know there is no way to skip over versions. The right way to do it is an install from scratch.
 
Old 01-23-2019, 08:38 AM   #3
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
So i have to upgrade from 5 to 6 then from 6 to 7 etc to finally to 9? Or install Stretch from scratch?
 
Old 01-23-2019, 08:47 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541
Install Stretch from scratch?
 
Old 01-23-2019, 08:56 AM   #5
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
I just meant to install fresh Debian 9.6 from CD on this machine. I tried to upgrade from Lenny to Squeeze but I get some errors:

Code:
root@stary:/# apt-get update
Ign http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org squeeze/updates/main Translation-en_US
Ign http://ftp.pl.debian.org squeeze Release.gpg
Ign http://ftp.pl.debian.org squeeze/main Translation-en_US
Ign http://security.debian.org squeeze/updates Release
Ign http://ftp.pl.debian.org squeeze Release
Ign http://ftp.pl.debian.org squeeze/main Packages
Ign http://security.debian.org squeeze/updates/main Packages
Ign http://ftp.pl.debian.org squeeze/main Sources
Ign http://ftp.pl.debian.org squeeze/main Packages
Ign http://security.debian.org squeeze/updates/main Sources
Ign http://ftp.pl.debian.org squeeze/main Sources
Ign http://security.debian.org squeeze/updates/main Packages
Err http://ftp.pl.debian.org squeeze/main Packages
  404 Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org squeeze/main Sources
  404 Not Found [IP: 153.19.251.221 80]
Ign http://security.debian.org squeeze/updates/main Sources
Err http://security.debian.org squeeze/updates/main Packages
  302 Found [IP: 212.211.132.250 80]
Ign http://volatile.debian.org squeeze/volatile Release.gpg
Ign http://volatile.debian.org squeeze/volatile/main Translation-en_US
Err http://security.debian.org squeeze/updates/main Sources
  302 Found [IP: 212.211.132.250 80]
Ign http://volatile.debian.org squeeze/volatile Release
Ign http://volatile.debian.org squeeze/volatile/main Packages
Ign http://volatile.debian.org squeeze/volatile/main Sources
Ign http://volatile.debian.org squeeze/volatile/main Packages
Ign http://volatile.debian.org squeeze/volatile/main Sources
Err http://volatile.debian.org squeeze/volatile/main Packages
  301 Moved Permanently [IP: 128.31.0.62 80]
Err http://volatile.debian.org squeeze/volatile/main Sources
  301 Moved Permanently [IP: 128.31.0.62 80]
W: Failed to fetch http://ftp.pl.debian.org/debian/dists/squeeze/main/binary-amd64/Packages  404 Not Found [IP: 153.19.251.221 80]

W: Failed to fetch http://ftp.pl.debian.org/debian/dists/squeeze/main/source/Sources  404 Not Found [IP: 153.19.251.221 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages  302 Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/source/Sources  302 Found [IP: 212.211.132.250 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/squeeze/volatile/main/binary-amd64/Packages  301 Moved Permanently [IP: 128.31.0.62 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/squeeze/volatile/main/source/Sources  301 Moved Permanently [IP: 128.31.0.62 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
 
Old 01-23-2019, 09:21 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,245

Rep: Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779Reputation: 3779
you might need to use another mirror, but probably you won't find working mirror for debian 6. And you will hardly find any support in case of a problem.
 
Old 01-23-2019, 09:39 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,680

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
All releases are still available at archive.debian.org.

The upgrade would be a long and winding path and there have been a LOT of major changes in that time - blindly upgrading as you have attempted will guarantee borkage.

Read all the release notes as some of the transitions require specific preparation.

Also, you would need to solve any issues for each upgrade, and have a clean working system, before the next.

Debian upgrades are the most reliable I have seen (given proper process), but in this case it will be much easier to install a fresh Stable and migrate your data.

Last edited by descendant_command; 01-23-2019 at 09:46 AM.
 
1 members found this post helpful.
Old 01-23-2019, 09:44 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541
apt-get update command updates the available packages and their versions.
apt-get upgrade command installs the available packages but neither command should work since lenny is EOL you need change the repositories.

To upgrade the distribution you would run the command apt-get dist-upgrade and if possible would upgrade from lenny to squeeze. I don't know if it will work.

Again, installing from scratch is the best option.

Last edited by michaelk; 01-23-2019 at 09:47 AM.
 
Old 01-24-2019, 01:17 AM   #9
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hey all,

Thanks for response! First of all i'm trying to update this lenny. My sources.list file looks like this:
Code:
deb http://archive.debian.org/debian/ lenny contrib main non-free
deb http://archive.debian.org/debian-security lenny/updates main
But i have some gpg errors:
Code:
root@stary:~# apt-get update
Get:1 http://archive.debian.org lenny Release.gpg [1034B]
Ign http://archive.debian.org lenny/contrib Translation-en_US
Ign http://archive.debian.org lenny/main Translation-en_US
Ign http://archive.debian.org lenny/non-free Translation-en_US
Get:2 http://archive.debian.org lenny/updates Release.gpg [836B]
Ign http://archive.debian.org lenny/updates/main Translation-en_US
Hit http://archive.debian.org lenny Release
Hit http://archive.debian.org lenny/updates Release
Get:3 http://archive.debian.org lenny Release [99.6kB]
Ign http://archive.debian.org lenny Release
Get:4 http://archive.debian.org lenny/updates Release [92.4kB]
Ign http://archive.debian.org lenny/updates Release
Ign http://archive.debian.org lenny/contrib Packages/DiffIndex
Ign http://archive.debian.org lenny/main Packages/DiffIndex
Ign http://archive.debian.org lenny/non-free Packages/DiffIndex
Ign http://archive.debian.org lenny/updates/main Packages/DiffIndex
Hit http://archive.debian.org lenny/contrib Packages
Hit http://archive.debian.org lenny/main Packages
Hit http://archive.debian.org lenny/non-free Packages
Hit http://archive.debian.org lenny/updates/main Packages
Fetched 194kB in 2s (87.8kB/s)
Reading package lists... Done
W: GPG error: http://archive.debian.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 4D270D06F42584E6
W: GPG error: http://archive.debian.org lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems
I tried (somehow) to add this keys but without success...
 
Old 01-24-2019, 02:52 AM   #10
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,223
Blog Entries: 5

Rep: Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315
Back up your data and reinstall. There is absolutely no point in upgrading through that many releases. You will have to read release notes for all upgrades - and clearly you've not done that.

lenny -> squeeze upgrade was not at all straightforward and as I recall, required installing the kernel, upgrading udev and a few other bits and rebooting first. This is not worth the effort and certainly not worth the time and effort of anyone thinking to talk you through this...
 
1 members found this post helpful.
Old 01-28-2019, 06:47 AM   #11
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok guys, I need more help. I backed up data, downloaded Debian 9.6.0 netinstall cd and attempted to installation. My server Dell PowerEdge R300 is very old and it display picture only in 640x480. The problem is that under installation process (in graphinal and non graphical mode) the the resolution is 800x600 and i have a broken picture. I can see almost nothing. How to force installation in 640x480 resolution?

PS.
Ok, I DID IT! On boot menu press TAB and a line show up at the bottom. In this line there is something like "VGA=788". I changed it to VGA=785. I found a table with vga codes:

Code:
Color depth 	640480 	800600 	1024768 	12801024 	14001050 	16001200
8 (256) 	769 	        771 	        773 	        775 	
15 (32K) 	784 	        787 	        790 	        793 	
16 (65K) 	785 	        788 	        791 	        794 	        834 	        884
24 (16M) 	786 	        789 	        792 	        795

Last edited by martinii; 01-28-2019 at 07:57 AM. Reason: solution
 
Old 01-28-2019, 08:03 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541
Did you try specifying the boot parameter DEBIAN_FRONTEND=text

https://www.debian.org/releases/stab...h05s03.html.en
 
Old 01-29-2019, 05:31 AM   #13
martinii
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok, everything seems to work: new Debian installed, data restored, system configured. But there is one last thing: too high screen resolution after boot. The screen resolution is 1024x768 which is out of range so my screen goes black. How to solve this? I found similar topic HERE but my 10_linux file have different content and I was affraid to make any changes...
 
Old 01-29-2019, 08:11 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541
Hopefully this works.
https://wiki.debian.org/GrubTransition
 
Old 02-10-2019, 04:11 AM   #15
RacerBG
LQ Newbie
 
Registered: Jun 2015
Location: Bulgaria
Distribution: Arch Linux, Debian Stretch
Posts: 24

Rep: Reputation: 6
Hello, martinii.

A few months ago I did an upgrade from Debian Sarge to Debian Stretch (on a virtual machine just for FUN) so your mission is not impossible BUT if I were you I would do a clean install on a real machine...

Why?

At the end you will get a lot of conflicts about configuration files, a few grub updates which can potentially damage your boot order, a dozen of kernels and quite possibly apt-get will think that half of your packages should be "apt-get autoremove-d". If you can afford it - take the risk it will be a fun ride but you must upgrade from version to version and remember to use the "archive.debian.org" mirrors for every release before Jessie and after every version switch do "apt-get update", "apt-get upgrade" and "apt-get dist-upgrade".

Good luck!

EDIT: Just saw that you are already done...

Last edited by RacerBG; 02-10-2019 at 04:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Custom hwdb key mappings not working after Debian upgrade to stretch pinyaka Linux - General 1 06-07-2016 02:54 PM
[SOLVED] input does not work under X. (after dist-upgrade 3month interval, stretch) kaz2100 Debian 2 12-13-2015 07:54 PM
[SOLVED] Stretch dist-upgrade problems propofol Debian 25 09-15-2015 12:38 PM
[SOLVED] Upgrade to Stretch and linux-image-4.1.0-1-amd64 mzsade Debian 18 09-13-2015 10:15 PM
Opinions on Best Way to upgrade from Lenny/Lenny Backports to Squeeze?? linus72 Debian 7 12-26-2009 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration