LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to upgrade sarge to lenny (stable)? (https://www.linuxquestions.org/questions/debian-26/how-to-upgrade-sarge-to-lenny-stable-712447/)

frenchn00b 03-18-2009 04:20 AM

How to upgrade sarge to lenny (stable)?
 
Hello,

I found this help:
http://www.debian.org/doc/manuals/re...-woody.en.html

shall :
Code:

# first change to the right /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade

be the right way?

jdkaye 03-18-2009 04:51 AM

Quote:

Originally Posted by frenchn00b (Post 3479159)
Hello,

I found this help:
http://www.debian.org/doc/manuals/re...-woody.en.html

shall :
Code:

# first change to the right /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade

be the right way?

Assuming that a typical line in your sources.list file looked like this:
Code:

deb http://ftp.de.debian.org/debian/ sarge main
and if you want to always use stable (rather than always use lenny - which is stable at the moment) then you could change all the "sarge" references in each line of the sources.list file to "stable" so that the sample line above would look like this:
Code:

deb http://ftp.de.debian.org/debian/ stable main
Then you wouldn't have to change the sources list file every time that Debian has another release. You would be tracking "stable" automatically.

I would use aptitude rather than apt-get and I'm not sure your middle step is really necessary so I would suggest:
Code:

sudo aptitude update
sudo aptitude dist-upgrade

That should get you Lenny.
cheers,
jdk

frenchn00b 03-18-2009 06:19 AM

sooo here we go, here the bug:

http://yellowprotoss.ye.funpic.org/d...screenshot.png
gdm autologin hangs already :( :(

Quote:

no exec line in the session file: x-debian-windowmanagers-fluxbox. Running the Gnome failsafe session instead

jdkaye 03-18-2009 09:51 AM

Quote:

Originally Posted by frenchn00b (Post 3479259)
sooo here we go, here the bug:

http://yellowprotoss.ye.funpic.org/d...screenshot.png
gdm autologin hangs already :( :(

Is this what happened after you did your dist-upgrade? Depending on what kernel you're running you may want to upgrade the kernel at this time as well. I'll wait to hear more details before venturing an diagnosis.

BTW, how do you know this is a bug? Have your read something about it somewhere?

If you're upgrading from Sarge to Lenny, this is quite a jump so a few glitches are not surprising.
cheers,
jdk

TeenyLemon 03-19-2009 05:41 AM

last time i tried to upgrade from etch to lenny it screwed up big time and i had to reformat.

quick question though: will all my apps still work on lenny?

TeenyLemon 03-19-2009 05:43 AM

Quote:

Originally Posted by frenchn00b (Post 3479259)
sooo here we go, here the bug:

http://yellowprotoss.ye.funpic.org/d...screenshot.png
gdm autologin hangs already :( :(


)h didn't see that but that was the exact error i got. When i tried to downgrade back to etch it wouldn't budge :(

jdkaye 03-19-2009 12:34 PM

Quote:

Originally Posted by TeenyLemon (Post 3480513)
)h didn't see that but that was the exact error i got. When i tried to downgrade back to etch it wouldn't budge :(

The error you posted seems to related to fluxbox. Have you tried any other windows manager? When your login screen comes on can you select another session besides fluxbox? Is fluxbox correctly installed? Any broken packages? Have you checked the /var/log/Xorg.0.log for any useful error messages?
cheers,
jdk

Wavfact 03-22-2009 04:26 PM

Sorry, don't mean to hijack this thread but I'm trying to do the same thing..

I'm presently runnign etch with kernel 2.4.27-3-386

I too would like to upgrade to the lastest since my OS is about 4 years old.. Soeone mentioned above that the OP might want to upgrade his kernel also.. Wouldn't doing an "aptitude update" and "aptitude dist-upgrade" bring in a new kernel if I change my sources.list file to the stable?

# Main
deb xxxx://ftp.us.debian.org/debian stable main contrib non-free
deb-src xxxx://ftp.us.debian.org/debian stable main contrib non-free

# Security
deb xxxx://security.debian.org/ stable/updates main contrib non-free
deb-src xxxx://security.debian.org/ stable/updates main contrib non-free

If not, how should I do a kernel upgrade? Also, should this be done prior to or after doing a dist-upgrade?

I'm doing this remotely via ssh..

Dennis

jdkaye 03-23-2009 02:59 PM

Quote:

Originally Posted by Wavfact (Post 3484293)
Sorry, don't mean to hijack this thread but I'm trying to do the same thing..

I'm presently runnign etch with kernel 2.4.27-3-386

I too would like to upgrade to the lastest since my OS is about 4 years old.. Soeone mentioned above that the OP might want to upgrade his kernel also.. Wouldn't doing an "aptitude update" and "aptitude dist-upgrade" bring in a new kernel if I change my sources.list file to the stable?

# Main
deb xxxx://ftp.us.debian.org/debian stable main contrib non-free
deb-src xxxx://ftp.us.debian.org/debian stable main contrib non-free

# Security
deb xxxx://security.debian.org/ stable/updates main contrib non-free
deb-src xxxx://security.debian.org/ stable/updates main contrib non-free

If not, how should I do a kernel upgrade? Also, should this be done prior to or after doing a dist-upgrade?

I'm doing this remotely via ssh..

Dennis

Nope. In Debian kernels require specific action to upgrade. They don't get upgraded routinely; you have to specifically do the upgrade.
cheers,
jdk

frenchn00b 03-25-2009 03:57 PM

Quote:

Originally Posted by jdkaye (Post 3480980)
The error you posted seems to related to fluxbox. Have you tried any other windows manager? When your login screen comes on can you select another session besides fluxbox? Is fluxbox correctly installed? Any broken packages? Have you checked the /var/log/Xorg.0.log for any useful error messages?
cheers,
jdk


So I got it working with :
firing the autologin
and apperently the new version of gdm didnt like autologin

i had to recreate a .dmrc with normal login.

I am sorry, but I meant:
from Etch to Lenny

here my sources.list:
the pc works, successfulll dist-upgrade !!

Code:

#
deb http://http.us.debian.org/debian lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://debian-multimedia.org lenny main
deb http://www.backports.org/debian lenny-backports main contrib non-free

Code:

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

then fight to make it work, also enjoy the grub !! :)

frenchn00b 03-25-2009 03:58 PM

Quote:

Originally Posted by jdkaye (Post 3485335)
Nope. In Debian kernels require specific action to upgrade. They don't get upgraded routinely; you have to specifically do the upgrade.
cheers,
jdk

apt-get dist-upgrade
did teh kernel upgrade by itself, well I guess I press Y during teh apt-get


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