LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-11-2008, 07:38 AM   #1
aleTT
LQ Newbie
 
Registered: Jul 2008
Location: Italy
Distribution: Debian Sid
Posts: 12

Rep: Reputation: 0
Lightbulb How I've dist-upgraded etch->lenny->sid without problems


Hi,
I want to share my experience in dist-upgrading from a fresh new installation of etch to lenny(testing) and then to sid(unstable) because I've lost not few time trying doing this since the package system alwasy break for some reasons which I don't know - but the solution was really easy -.

Procedure to dist-upgrade from etch to testing and then to sid:
1) Install Debian with a small cd image in the standard way.
2) Log in your new system.
3) Open /etc/apt/sources.list with your preferred editor (you have to be root to modify the file) and then replace all the occurences of "etch" with "lenny" (or if you prefer "testing" which is the same).
Besides you have to add the string "contrib non-free" next to all the occurences of "main".
This is how /etc/apt/sources.list looks like at this point (substitute the repository with your preferred one):
Code:
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
4) From a root console do the following commands:

# apt-get update
# apt-get dist-upgrade

5) Now if you want to test you could reboot your system and enter in your upgraded system.
6) Open again /etc/apt/sources.list as root. Replace all the occurance of "lenny"(or "testing") with "sid".
Add "#" at the beginning of the lines with the security updates since sid doesn't need them and so they doesn't exist.
This is how /etc/apt/sources.list looks like at this point:
Code:
deb http://ftp.de.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.de.debian.org/debian/ sid main contrib non-free
# deb http://security.debian.org/ testing/updates main contrib non-free
# deb-src http://security.debian.org/ testing/updates main contrib non-free
7) Again from a root console do:

# apt-get update
# apt-get dist-upgrade

8) Reboot and you should have a working Debian Sid system.

The thing that did the trick in my case was simply adding also the contrib and non-free packages. Without that I couldn't dist-upgrade, probably because of some main packages that depends on some contrib or non-free, but I don't know for sure.
 
Old 08-11-2008, 12:54 PM   #2
texasone
Member
 
Registered: Jun 2008
Location: /home/lorax
Distribution: Debian Testing
Posts: 141

Rep: Reputation: Disabled
Nice post. I just installed Lenny on my desktop and I am hoping to upgrade to Sid, for reasons of play and that I hope to add 3D graphics with the closed-source drivers, but I need either Sid or Etch sources and I might as well do a full upgrade. So one question I have is: Did you add a section in your sources list for Sid security updates, or does it do that on its own?
 
Old 08-11-2008, 01:24 PM   #3
aleTT
LQ Newbie
 
Registered: Jul 2008
Location: Italy
Distribution: Debian Sid
Posts: 12

Original Poster
Rep: Reputation: 0
I didn't add a section for the security updates of Sid in /etc/apt/sources.list because there aren't security updates for Sid as in Etch(stable) and Lenny(testing).
Here is explained better what I mean http://wooledge.org/~greg/sidfaq.html#15.

From the link above:
"Does sid have security updates?

Not in the same sense that stable does. If the maintainer of a package fixes a security bug and uploads the package, it'll go into sid by the normal means. If the maintainer doesn't do that, then it won't. The security team only covers stable (and possibly testing... there's a pending issue for that case).

Sid users (hell, all Debian users!) are strongly urged to subscribe to the Debian security announce mailing list. And while you're at it, you should also be on the Debian devel announce list."
 
Old 08-11-2008, 01:24 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Sid doesn't get security updates as such. Updates that go through to stable and testing as security updates have otoh gone first through sid. So sid gets them first, they're just not called "security" updates there.

Edit: Slow typing.
 
Old 08-11-2008, 10:15 PM   #5
texasone
Member
 
Registered: Jun 2008
Location: /home/lorax
Distribution: Debian Testing
Posts: 141

Rep: Reputation: Disabled
thanks, lets just say that didn't go according to plan. I'm just going to leave unstable to virtualbox-ose. that way i can use my desktop when I need it for school.
 
Old 08-16-2008, 09:51 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you install Etch (stable) and want Sid (unstable), there is no need to go through Lenny (testing). You can simply change the /etc/apt/sources.lst from stable/etch to unstable/sid. I would suggest doing it that way, as you'll download a bunch of things to go from stable to testing and then overwrite and waste your connection and the server's bandwidth an hour later going from testing to unstable.

Peace,
JimBass
 
Old 08-17-2008, 01:43 PM   #7
aleTT
LQ Newbie
 
Registered: Jul 2008
Location: Italy
Distribution: Debian Sid
Posts: 12

Original Poster
Rep: Reputation: 0
Talking

Maybe that's true but at http://www.debian.org/doc/manuals/re...-woody.en.html I've read this :
"Upgrading a system to the stable, testing, or unstable distribution may require several steps which must be in the following order:

* Upgrade to Woody (if your system is older than Woody)

* Upgrade to stable

* Upgrade to testing

* Upgrade to unstable

Debian does not support upgrades that skip intermediate releases."

Maybe that's only referred to Woody or older versions of Debian but I preferred don't skipping intermediate steps.

aleTT
 
Old 08-17-2008, 03:40 PM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That information is ancient. That alone doesn't make it wrong, but Etch is the current stable, Sarge was the stable before that, and I think Woody was one before that.

When doing a new install and you know you're heading to unstable, I've had the best luck doing a base install, and installing nothing beyond getting the box online. Then dist-upgrading direct to unstable. Hey if it screws up, it took 20 minutes to do, you can easily redo it to testing instead of unstable. I've always used unstable, and never did a full install of stable then upgraded past that.

Peace,
JimBass
 
Old 08-19-2008, 04:46 AM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I want to confirm that "Etch" -> "Lenny" upgrade works perfectly without a single issue. A reboot is required for the new kernel though.

Also my suggestion is that if you're planning to install from an old Etch CD, do a minimal base system install first (without X or KDE or GNOME or anything else), update your distribution to Lenny or testing and then install whatever else you want to including Xorg and a desktop environment, minimizing the chances of something borking the update.
 
Old 08-19-2008, 10:37 AM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Be careful anyway. Even a dist-upgrade in Lenny on my laptop broke it. The Nvidia driver would not install, and the WiFi was up to the point where it should aquire a DHCP address but it didn't. Both errors are filed in bug reports, this was 2 weeks ago. These are not the most unimportant issues. Furtermore there were problems with the ia32 libs (I am running AMD-64) but these have been solved. Gnome-games still have difficulties with some python games which exist for quite some time and could not be resolved.

Currently I would only recommend a dist-upgrade Etch -> Lenny if you can afford to miss the machine for a while. The gap between Stable and Testing has become large now. I know the development team is working quite hard to fix these issues so an upgrade can be performed smoothly.

Experience demonstrates that when Testing becomes Stable upgrading is almost risk-free

jlinkels
 
Old 08-19-2008, 11:54 AM   #11
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Quote:
Currently I would only recommend a dist-upgrade Etch -> Lenny if you can afford to miss the machine for a while. The gap between Stable and Testing has become large now. I know the development team is working quite hard to fix these issues so an upgrade can be performed smoothly.
My understanding is that Lenny is "frozen" and almost stable at the moment, so you shouldn't experience any problems if any at all.
 
Old 08-19-2008, 07:14 PM   #12
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Lenny is frozen, but that doesn't necessarily mean that all critical bugs are fixed. IMHO it means that no new functions or features are added, and that the upgrade process is tested thoroughly.

If it were ready, it would have been released

BTW, last week I did an upgrade from Sarge to Etchnhalf (it means kernel 2.6.24 I think) on a firewall. It was performed flawlessly. No, it was not a production server at the moment.

jlinkels
 
Old 08-19-2008, 07:19 PM   #13
texasone
Member
 
Registered: Jun 2008
Location: /home/lorax
Distribution: Debian Testing
Posts: 141

Rep: Reputation: Disabled
last time i check the records and bullitins(it was from june) there were 360 RC bugs in Lenny they had to get out before their release of it being stable in sept/oct.
 
Old 08-19-2008, 10:07 PM   #14
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Yes, but I was saying that the chances of new or critical bugs being introduced are less when it is frozen than if it is currently in a state of flux.
 
Old 08-19-2008, 11:01 PM   #15
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I wouldn't guarantee anyone else's results, but I'd be willing to bet that if I were upgrading a working Etch system to Lenny, it would be flawless ... any i386/AMD64 machine.

At the moment, that would include pulling Nvidia drivers from Sid. I understand they will be in Lenny within a few days.

Last edited by rickh; 08-19-2008 at 11:08 PM.
 
  


Reply

Tags
debian, distupgrade, etch, lenny, sid



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
Debian Etch sources.list mix between etch and sid - problems alfr Debian 2 04-12-2008 10:30 AM
lenny sid etch testing unstable, etc AP81 Debian 4 09-20-2007 07:54 PM
problems upgrading from etch to lenny unisol Debian 1 09-20-2007 09:14 AM
Dist-Upgrade from the Current Lenny to Sid Zaskar Debian 2 08-28-2007 04:05 PM
Various problems with xorg 7.2 under debian (Lenny/Sid) with i810 driver. adz Debian 5 07-22-2007 07:55 AM

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

All times are GMT -5. The time now is 09:50 AM.

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
Open Source Consulting | Domain Registration