Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[solved] Lenny to Squeeze upgrade

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#31 Post by llivv »

why are you wanting to restore Lenny?
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#32 Post by oldboy »

I only have /boot, /, and /home. I can write the lenny / image back to /. Come to think of it, I do not have an image of the lenny /boot, so, may not be able to restore. What do you think?
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#33 Post by llivv »

if you still have the lenny 2.6.26-5-amd64 kernel in your /boot
and you can get to it with the current grub
I can't four c any problems with Lenny restore from your / image...
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#34 Post by llivv »

oldboy wrote:
llivv wrote:mv /etc/xorg.conf /etc/xorg.c
/etc/init.d/gdm restart

cannot stat 'xorg.conf': no such file or directory
that's
/etc/X11/xorg.conf
so
mv /etc/X11/xorg.conf /etc/X11/xorg.c
/etc/init.d/gdm restart
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#35 Post by oldboy »

llivv wrote: that's
/etc/X11/xorg.conf
so
mv /etc/X11/xorg.conf /etc/X11/xorg.c
/etc/init.d/gdm restart
It did move, but cannot start gdm.

I am now back to fully functional lenny with gnome working.
I have changed source.list to replace lenny with squeeze, and comment out backport, google, and voltatile

What are the commands that will avoid lenny userland?
Tx
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

cynwulf

Re: Lenny to Squeeze upgrade

#36 Post by cynwulf »

To be blunt, there is no point in attempting an upgrade if you are going to jump out at the first sign of an error. The upgrade always throws errors, but you can fix all of these. Don't bother to try to start gdm or gnome at this stage, do the entire upgrade from the terminal. Remember that you need to run the main upgrade from the squeeze kernel, not the old lenny kernel. You will run into errors. Solve these by removing, the troublesome packages, you can reinstall them later - it's not a big deal as they're most likely going to be upgraded anyway. Most importantly purge the fglrx driver and move xorg.conf to a backup file like llivv says. If you do this, once the upgrade is done, you should have a working xorg with the radeon driver. You can always install fglrx later if you need it (you may not).

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#37 Post by oldboy »

cynwulf wrote:To be blunt, there is no point in attempting an upgrade if you are going to jump out at the first sign of an error.
The reason I wanted to jump out is because I may have made a mistake in one of the steps, not because I am impatient to try.
The upgrade always throws errors, but you can fix all of these. Don't bother to try to start gdm or gnome at this stage, do the entire upgrade from the terminal.
I started the system with gnome. I switched to terminal, and stopped gdm (via /ec/init.d/gdm stop). I do not know how to start the system without gdm
Remember that you need to run the main upgrade from the squeeze kernel, not the old lenny kernel. You will run into errors.
Yes, this is what I have done
Solve these by removing, the troublesome packages, you can reinstall them later - it's not a big deal as they're most likely going to be upgraded anyway.
The only trouble that I see is that fglrx..ia32, and I removed it as you suggested, and continue with upgrade, and I do not see any more errors, except " lwres failed and cpufreq failed"
Most importantly purge the fglrx driver and move xorg.conf to a backup file like llivv says .
I did it, but same thing happened.
If you do this, once the upgrade is done, you should have a working xorg with the radeon driver. You can always install fglrx later if you need it (you may not).
I have packages like scim, GkRellm installed. I also have gallery2 installed, but this one only interacts with apache2 and mysql. I'll remove scim and gkrellm and try again .

Thanks for your patience with me.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#38 Post by llivv »

if your running squeeze cli
as root
X -configure
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#39 Post by oldboy »

llivv wrote:if your running squeeze cli
as root
X -configure
Thanks, please give me a more specific command. I am trying just beginning to do it all over again. Just booted into single user with no gdm, but I typed /etc/init.d/gdm stop just to be sure.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#40 Post by llivv »

oldboy wrote:
llivv wrote:if your running squeeze cli
as root
X -configure
Thanks, please give me a more specific command. I am trying just beginning to do it all over again. Just booted into single user with no gdm, but I typed /etc/init.d/gdm stop just to be sure.
there are no more specific commands
it's not magic, you have to do and learn

do you upgrade
than explain as best as you can what you did and what you are looking at
Yoda wrote:there is no try, only do!
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

cynwulf

Re: Lenny to Squeeze upgrade

#41 Post by cynwulf »

From the beginning follow this sort of procedure:

1) Change your sources.list to point to squeeze

2) Do

Code: Select all

apt-get update

Code: Select all

apt-get install dpkg apt aptitude

Code: Select all

apt-get install linux-image-2.6-amd64

Code: Select all

apt-get purge fglrx*
3)

Code: Select all

mv /etc/X11/xorg.conf /etc/X11/xorg.old.fglrx
4) Reboot into the 2.6.32 kernel - gdm and the xserver will probably be broken - don't panic.

5) CTRL+ALT+F1 and login as root

Code: Select all

/etc/init.d/gdm stop
6) Do

Code: Select all

apt-get dist-upgrade
As many times as is needed until no more updates show

7) The rest is down to you. Remove troublesome packages that may now be obsolete and/or conflict with the newer versions in squeeze, then apt-get dist-upgrade again until no more updates show. For the upgrade to dependency based boot, purge the packages it tells you to, then re-run dpkg-reconfigure sysv-rc. Finally reboot again.

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#42 Post by oldboy »

The Force is with me. Success.
@cynwulf: I followed your original instructions, but I boot into single-use (I had booted into gnome and then switch to terminal by ctrl-alt-F6). I use booted into new kernel - single user, and did upgrade. Purged fglrx-glx-ia32, and it continued the upgrade. After it finished, I started gdm, and it works. I tried to switch back to terminal (Ctrl-Alt-F6), it does not switch. I rebooted to gnome. Cannot switch with Ctrl-Alt-F6. Also, screen refresh is a bit slow (e.g, try to move Iceweasel to left or right and there is a small delay to refresh).

Thank you guys a million times, cynwulf and llivv for your help. I'll hunt down my video problem. I may have to install ATI driver.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#43 Post by llivv »

try the other VTs
Ctrl Alt F5
F4
F3
F2
etc
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

cynwulf

Re: Lenny to Squeeze upgrade

#44 Post by cynwulf »

Switch to tty1 and stop the gdm again

Get rid off all of the fglrx stuff:

Code: Select all

apt-get purge fglrx*
Install mesa and drm stuff:

Code: Select all

apt-get install xserver-xorg-video-radeon libdrm-radeon1 mesa-utils
The xorg radeon driver, should already be installed as part of a meta package - but just in case.

Reboot

Post output of these two

Code: Select all

glxinfo | grep render

Code: Select all

glxinfo | grep direct

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#45 Post by oldboy »

cynwulf wrote:From the beginning follow this sort of procedure:

1) Change your sources.list to point to squeeze

2) Do

Code: Select all

apt-get update

Code: Select all

apt-get install dpkg apt aptitude

Code: Select all

apt-get install linux-image-2.6-amd64

Code: Select all

apt-get purge fglrx*
3)

Code: Select all

mv /etc/X11/xorg.conf /etc/X11/xorg.old.fglrx
4) Reboot into the 2.6.32 kernel - gdm and the xserver will probably be broken - don't panic.

5) CTRL+ALT+F1 and login as root

Code: Select all

/etc/init.d/gdm stop
6) Do

Code: Select all

apt-get dist-upgrade
As many times as is needed until no more updates show

7) The rest is down to you. Remove troublesome packages that may now be obsolete and/or conflict with the newer versions in squeeze, then apt-get dist-upgrade again until no more updates show. For the upgrade to dependency based boot, purge the packages it tells you to, then re-run dpkg-reconfigure sysv-rc. Finally reboot again.
I recovered to my lenny and started all over again with these instructions. At the end when I booted into squeeze, there were errors and traces that I do not understand and it would be too much to come back to ask for help with so much data. So, I decided to give up. I ended installing squeeze with ext4 into my spare partition, leaving lenny alone. After the fresh install, I ended up with the same errors and traces. After looking more carefully, one of the errors refer to my usb wireless stick. I pull it out, and reboot, and guess what, there is no problem at all. So I think this usb stick caused the problem in the upgrade, but I do not want to go back and test it, since it is all working now, and with ext4 file system.

Thank you all for your patience and help.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#46 Post by oldboy »

I am back and need your help again. It turned out that my trouble in squeeze (upgrading from lenny, or new install on a separate new partition) is having a screen (after reboot) that goes into tracing some kind of troubles. Sometimes it would stop at mapping keyboard. I had to shutdown, clear my computer cmos, and try to boot 3 to 4 times before it would boot properly into gnome. Sometimes it says to see dmesg for details, but the computer is stalled, and I do not know how to get out to read the dmesg to track down what the errors are.

So, please help me how to stop the screen scrolling up and let me read page by page when it is booting, or how to get out and read dmesg.

TIA
BTW, if it boots successfully, it works.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#47 Post by oldboy »

When I tried to boot, the last few error messages I was able to see on the screen were

Code: Select all

segmentation fault
failed to bring up lo
Then next time

Code: Select all

/usr/sbin/acpi_fakekeyd failed
Another one

Code: Select all

/sys/devices/virtual/net/lo/operstate
The last few times

Code: Select all

setting preliminary keymap
It just stalls after this message.
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

cynwulf

Re: Lenny to Squeeze upgrade

#48 Post by cynwulf »

What did you download in order to installed?

Checked the md5sum of the downloaded .iso image?

Regardless try downloading CD1, check the md5sum and then burn at the slowest speed. http://cdimage.debian.org/cdimage/weekl ... 64/iso-cd/

Try again and see if it makes any difference.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Lenny to Squeeze upgrade

#49 Post by llivv »

none of the messages you listed are fatal
if you have proper logging setup on your system you can view the dmesg logs in the var/log directory
messages
kern.log
there are others depending on your system..
please start a new thread so cynwulfs solution to your initial problem is not buried... thanks...
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

oldboy
Posts: 724
Joined: 2007-08-09 12:45

Re: Lenny to Squeeze upgrade

#50 Post by oldboy »

cynwulf wrote:What did you download in order to installed?

Checked the md5sum of the downloaded .iso image?

Regardless try downloading CD1, check the md5sum and then burn at the slowest speed. http://cdimage.debian.org/cdimage/weekl ... 64/iso-cd/

Try again and see if it makes any difference.
I started a new thread as suggested by llivv.
http://forums.debian.net/viewtopic.php?f=17&t=59111
Please help. Tx
This oldboy has a lot of time in his hands
Linux slows down my Alzheimer and dementia :lol:

Post Reply