Upgrading from Sarge to Etch [DONE]

If none of the more specific forums is the right place to ask

Upgrading from Sarge to Etch [DONE]

Postby nayoo » 2006-04-23 03:59

Hi

I'm trying to upgrade from Sarge to Testing. My sources.list file is as followed.
Code: Select all
#deb file:///cdrom/ sarge main
#deb http://ftp.uk.debian.org/debian/ stable main
#deb-src http://ftp.uk.debian.org/debian/ stable main
#deb http://mirror.ox.ac.uk/debian/ stable main
#deb-src http://mirror.ox.ac.uk/debian/ stable main
#deb http://security.debian.org/ stable/updates main

# For Tapioca
#deb http://extindt01.indt.org/tapioca/apt unstable main

#deb-src http://http.us.debian.org/debian stable main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free

#deb http://download.skype.com/linux/repos/debian/ stable non-free

# Backports
#deb http://www.backports.org/debian/ sarge-backports main


# Testing
deb http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib
deb ftp://ftp.nerim.net/debian-marillat/ etch main
deb http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted

After that, I issued this command:
Code: Select all
apt-get update

And I encounter this error message:
Code: Select all
...
Get: 18 http://ftp.debian.org testing/non-free Packages [55.5kB]
Fetched 3131kB in 53s (58.9kB/s)
Reading package lists... Done
W: GPG error: http://ftp.debian-unofficial.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D5642BC86823D007
W: GPG error: ftp://ftp.nerim.net etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems


How shall I fix this? (Or) Could you kindly post your sources.list file if you are using Testing version?

Thank you very much.
Last edited by nayoo on 2006-04-25 14:09, edited 4 times in total.
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby bluesdog » 2006-04-23 06:56

Try this procedure:

gpg --keyserver <keyserver> --recv-keys <pubkeynumber>
gpg --armor --export <keynumber> | apt-key add -



For example
Code: Select all
gpg --keyserver pgp.mit.edu --recv-keys 946AA6E18722E71E



Which results in
Code: Select all
gpg: requesting key 8722E71E from hkp server pgp.mit.edu
gpg: key 8722E71E: public key "secure-testing Archive key 2005-7 <katie@secure-testing.debian.net>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1



Then I would type
Code: Select all
gpg --armor --export 8722E71E | apt-key add -



Which results in
Code: Select all
gpg: no ultimately trusted keys found
OK

At this point, the gpg key is recorded in your local database, and you shouldn't see the gpg error for that particular repository.

Some additional keyservers:
keyring.debian.org
pgp.mit.edu
pgpkeys.pgp.net
wwkeys.uk.pgp.net
wwwkeys.pgp.net
User avatar
bluesdog
 
Posts: 1779
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Postby nayoo » 2006-04-23 07:06

Sure...
Thank you very much for your information and suggestions. I will try it out later on but I need to go outside now. I will get it back to you with results and further updates.

:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby nayoo » 2006-04-23 12:23

Update
Problem was fixed. Thank you very much, bluesdog. But I've got a few questions regarding this issue.

How I fixed this
Purpose : To upgrade from Sarge to Etch(Testing)
  1. As mentioned above, I added these lines in sources.list and commented all Sarge repositories.
    Code: Select all
    # Testing
    deb http://ftp.debian.org/debian/ testing main contrib non-free
    deb http://security.debian.org/ testing/updates main contrib
    deb ftp://ftp.nerim.net/debian-marillat/ etch main
    deb http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
  2. After that, typed this command in bash as root.
    Code: Select all
    apt-get update
  3. And, I got this error
    Code: Select all
    ...
    Fetched 17.4kB in 11s (1455B/s)
    Reading package lists... Done
    W: GPG error: http://ftp.debian-unofficial.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D5642BC86823D007
    W: GPG error: ftp://ftp.nerim.net etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
    W: You may want to run apt-get update to correct these problems
  4. Credited to bluesdog, I observed that
    1. D5642BC86823D007
    2. 07DC563D1F41B907 were the sources of the problem.
  5. After that, I typed this command
    Code: Select all
    gpg --keyserver pgp.mit.edu --recv-keys  D5642BC86823D007
    and I got this result:
    Code: Select all
    gpg: requesting key 6823D007 from hkp server pgp.mit.edu
    gpg: key 6823D007: public key "Debian Unofficial Archive Automatic Signing Key (2006) <ftpmaster@debian-unofficial.org>" imported
    gpg: Total number processed: 1
    gpg:               imported: 1
    After that, I typed this command
    Code: Select all
    gpg --armor --export 6823D007 | apt-key add -
    The result was
    Code: Select all
    OK
  6. Again, for the second key, I typed this
    Code: Select all
    gpg --keyserver pgp.mit.edu --recv-keys 07DC563D1F41B907
    And, I got this result
    Code: Select all
    gpg: requesting key 1F41B907 from hkp server pgp.mit.edu
    gpg: key 1F41B907: duplicated user ID detected - merged
    gpg: key 1F41B907: public key "Christian Marillat <marillat@debian.org>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1
    After that, I issued this command
    Code: Select all
    gpg --armor --export 1F41B907 | apt-key add -
    And the result was
    Code: Select all
    gpg: no ultimately trusted keys found
    OK
  7. For the final step,
    Code: Select all
    apt-get update
    And no more key error messages came out.
    Code: Select all
    Fetched 192B in 9s (20B/s)
    Reading package lists... Done

Questions
  1. Why do I need those keys?
  2. After apt-get update, shall I type apt-get upgrade to upgrade to Testing?
  3. Is there any command in Debian to check whether the system is Sarge orEtch or Sid?


Thank you,
:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby Harold » 2006-04-24 03:47

Remember that discussion on the previous thread about the difference between apt-get upgrade and apt-get dist-upgrade? There are many packages whose names and grouping has changed between Sarge and Etch, most notably X, which changes from xfree86-4.3 in Sarge to xorg-6.9 in Etch, and the Debian kernel packages, called kernel-image in Sarge but linux-image in Etch.
Harold
 
Posts: 1498
Joined: 2005-01-07 00:15
Location: Wisconsin, USA

Postby nayoo » 2006-04-24 04:47

Hi Harold,


Harold wrote:Comments from the peanut gallery...

Nayoo, you asked earlier the difference between apt-get upgrade and apt-get dist-upgrade. apt-get upgrade will do only a one-to-one replacement. In other words, it replaces package_x with a newer version of package_x. However, if the newer version of package_x has different dependencies than the older version, apt-get upgrade will refuse to do the upgrade. When this happens, use the apt-get dist-upgrade command, which will install the new dependencies.

[...]


Yes, I do remember your clear explanations.


Harold wrote:...
There are many packages whose names and grouping has changed between Sarge and Etch, most notably X, which changes from xfree86-4.3 in Sarge to xorg-6.9 in Etch, and the Debian kernel packages, called kernel-image in Sarge but linux-image in Etch.
...


So, your recommendation is apt-get dist-upgrade for this case (Sarge->Etch)?

Thank you
:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby Harold » 2006-04-24 04:58

Yes. You might have to issue the dist-upgrade command 2 or 3 times. With that many packages being simultaneously upgraded, the process is not always perfect the first time.
Harold
 
Posts: 1498
Joined: 2005-01-07 00:15
Location: Wisconsin, USA

Postby nayoo » 2006-04-24 05:02

Harold wrote:Yes. You might have to issue the dist-upgrade command 2 or 3 times.
...

Ok, I'll try it out tonight and will post the results later. Thank you very much, Harold. :D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby nayoo » 2006-04-24 11:35

Back home, I typed this command:
Code: Select all
apt-get --show-upgraded dist-upgrade

And the screen output is:
Code: Select all
[...]
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade...Done
The following packages will be REMOVED
740 upgraded, 191 newly installed, 36 to remove and 0 not upgraded.
Need to get 592MB of archives.
After unpacking 298MB of additional disk space will be used.
Do you want to continue [Y/n]? y


Now system upgrading in progress...

:wink:
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby nayoo » 2006-04-24 16:15

To: Harold

Update

Downloading was done successfully and the sytem started installing and removing packages.

And, I got this error and upgrading stuck there. All the steps before that went through smoothly.
Code: Select all
[...]
Setting up kernel-image-2.4.27-2-386 (2.4.27-12) ...
depmod: *** Unresolved symbols in /lib/modules/2.4.27-2-386/kernel/drivers/net/wireless/orinoco.o
depmod: *** Unresolved symbols in /lib/modules/2.4.27-2-386/kernel/fs/xfs/xfs.o
Using /usr/sbin/mkinitrd to build the ramdisk.
Full list of probed ramdisk generating tools : /usr/sbin/mkinitrd /usr/sbin/mkinitrd.yaird /usr/sbin/mkinitramfs.
/usr/sbin/mkinitrd: MODULES=dep cannot be done due to version conflict
/usr/sbin/mkinitrd: using MODULES=most instead
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
Failed to create initrd image.
dpkg: error processing kernel-image-2.4.27-2-386 (--configure):
subprocess post-installation script returned error exit status 2
Setting up binutils (2.16.1cvs20060117-1) ...
Segmentation fault
debian:/home/nayoo#

And I also tried this after that and the system prompted this message:
Code: Select all
debian:/home/nayoo# apt-get --show-upgraded dist-upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
debian:/home/nayoo#


I haven't done dpkg --configure -a yet.

After that, I rebooted the system. I chose kernel 1.6.15-1 from Grub menu. (I have both 1.4 and 1.6 in Grub menu.) The system could not load the X-Windows.:shock:

Code: Select all
Debian GNU/Linux testing/unstable debian tty1
debian login:


Thank you,
:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby nayoo » 2006-04-25 12:12

Update

Now, X Windows System is back to life in my newly upgraded Etch.

How I solved this
  1. Since I had not upgraded to Etch successfully yesterday night due to "Segmentation fault error" (Refer to my previous post), tonight I tried this command:
    Code: Select all
    dpkg --configure -a
  2. Debian packaging system carried on smoothly and configured almost all of the packages correctly except two. The error message is
    Code: Select all
    Errors were encountered while processing:
    kernel-image-2.4.27-2-386
    kernel-pcmcia-modules-2.4.27-2-386
  3. Again, I was given a black-screen text-mode debian login prompt. From that, I issued this command
    Code: Select all
    dpkg-reconfigure xserver-xorg
  4. After that I rebooted the system. X-Server is now working fine and gdm is OK. I am very impressed by very beautiful GUIs for login screen (with a yellow sunflower). I observed that Gnome version is 2.14 and KDE version is 3.5. Indeed what a much more beautiful GUI it is!

What issues left to solve
  1. Skype cannot connect to network. This is important, man. I need this to talk to my girlfriend overseas. If skype or any voip software can work perfectly in Linux, I might be able to dump Windows and use the Windows partition space for Debian Sid. Now, I still have to depend on Windows. :cry: (In Sarge, I could make it work after kernel 2.6 compilation with ALSA added into kernel but in this case of Etch, I don't know what went wrong.)
  2. I typed again apt-get dist-upgrade. And here is the output from the system: (I am currently using kernel 2.6.15.1)
    Code: Select all
    debian:/# apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree... Done
    Calculating upgrade...Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    Need to get 0B of archives.
    After unpacking 0B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Setting up kernel-image-2.4.27-2-386 (2.4.27-12) ...
    depmod: *** Unresolved symbols in /lib/modules/2.4.27-2-386/kernel/drivers/net/wireless/orinoco.o
    depmod: *** Unresolved symbols in /lib/modules/2.4.27-2-386/kernel/fs/xfs/xfs.o
    Using /usr/sbin/mkinitrd to build the ramdisk.
    Full list of probed ramdisk generating tools : /usr/sbin/mkinitrd /usr/sbin/mkinitrd.yaird /usr/sbin/mkinitramfs.
    /usr/sbin/mkinitrd: MODULES=dep cannot be done due to version conflict
    /usr/sbin/mkinitrd: using MODULES=most instead
    /bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    Failed to create initrd image.
    dpkg: error processing kernel-image-2.4.27-2-386 (--configure):
    subprocess post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of kernel-pcmcia-modules-2.4.27-2-386:
    kernel-pcmcia-modules-2.4.27-2-386 depends on kernel-image-2.4.27-2-386; however:
      Package kernel-image-2.4.27-2-386 is not configured yet.
    dpkg: error processing kernel-pcmcia-modules-2.4.27-2-386 (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    kernel-image-2.4.27-2-386
    kernel-pcmcia-modules-2.4.27-2-386
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    debian:/#


Any advice, tips, hints or suggestions or comments will be very much appreciated.

Thank you,
:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby nayoo » 2006-04-25 14:09

Update
Problems Solved. Sarge to Etch 100% upgraded. Skype is working.

Steps
  1. I removed kernel 2.4 completely:
    Code: Select all
    apt-get remove --purge kernel-image-2.4.27-2-386
    I don't need it anymore since I'm using 2.6.15.1.
  2. then
    Code: Select all
    apt-get dist-upgrade
    No more errors messages!
  3. After that, I uninstalled skype.
    Code: Select all
    apt-get remove --purge skype
  4. then, reinstalled it.
    Code: Select all
    apt-get install skype
  5. rebooted my Etch system.
  6. called to echo123 robot. Testing passed.
  7. called to one of my friends (using skype from XP) who was online at that time. We could talk very clearly and could hear each other's voice very clearly too. OK.. 100% Passed.


I have recorded and posted all the informations which I gathered during my upgrade to Etch. All the detailed steps I took to solve the problems along the way were also posted in this thread. My purpose is to help someone who will take the same route like me and be facing the same or similar problem. It is a kind of my contributions to the opensource world as a user/tester.

This thread is closed for me and my sincere thanks to bluesdog and Harold for you, guys' valuable advices and your precious times.
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Kernel Upgrade 2.4 to 2.6

Postby Jaydsterc2 » 2006-04-27 14:32

Hey, First off I'd like to say thanks for the awesome walkthrough. I followed it to the "T" yesterday and today. And I am now running the same versions of gnome and KDE that you are. However, I have one problem though, when I went to remove kernel 2.4 it said that it was my active kernel. So I think my kernel didn't get upgraded with the etch install. Did you upgrade your kernel previous to installing etch? If so, what do I do to upgrade my kernel now?

Here's the last thing I tried:
Code: Select all
#sudo apt-get install kernel-image-2.6

and it gave me
Code: Select all
Reading package lists... Done
Building dependency tree... Done
Package kernel-image-2.6 is a virtual package provided by:
  kernel-image-2.6.8-2-k7-smp 2.6.8-16sarge1
  kernel-image-2.6.8-2-k7 2.6.8-16sarge1
  kernel-image-2.6.8-2-686-smp 2.6.8-16sarge1
  kernel-image-2.6.8-2-686 2.6.8-16sarge1
  kernel-image-2.6.8-2-386 2.6.8-16sarge1
  kernel-image-2.6.8-11-em64t-p4-smp 2.6.8-16sarge1
  kernel-image-2.6.8-11-em64t-p4 2.6.8-16sarge1
  kernel-image-2.6.8-11-amd64-k8-smp 2.6.8-16sarge1
  kernel-image-2.6.8-11-amd64-k8 2.6.8-16sarge1
  kernel-image-2.6.8-11-amd64-generic 2.6.8-16sarge1
You should explicitly select one to install.
E: Package kernel-image-2.6 has no installation candidate


My question is, should I install kernel-image-2.6.8-2-386 2.6.8-16sarge1? Or is there an etch version?

And please be specific because I'm new to linux.

PS My sources.list is the same as yours except for these lines:
Code: Select all
# Kernel
deb http://mirrors.kernel.org/debian/ stable main
deb http://mirrors.kernel.org/debian/ testing main
deb-src http://mirrors.kernel.org/debian/ stable main
Jaydsterc2
 
Posts: 2
Joined: 2006-04-27 14:27

Re: Kernel Upgrade 2.4 to 2.6

Postby nayoo » 2006-04-27 14:42

Jaydsterc2 wrote:Did you upgrade your kernel previous to installing etch?

Yes, I did upgrade my kernel from 2.4 to 2.6 before installing Etch. i.e. I upgraded my kernel to 2.6 in Sarge. I had two kernels in my Sarge. I removed 2.4 in my Etch system.

Jaydsterc2 wrote:If so, what do I do to upgrade my kernel now?

I took this route. I read this post by Tina. http://forums.debian.net/viewtopic.php?t=4468 And I downloaded the kernel 2.6.15.1 from kernel.org and compiled it accordingly. My follow-up post in that thread has also mentioned some information about it.

Please try to do it if you wish and let us know.

Regards,
:D
nayoo
 
Posts: 320
Joined: 2006-03-28 01:51

Postby Jaydsterc2 » 2006-04-27 21:19

Bah, I started to follow the directions in the link you posted. Then I decided to just try
Code: Select all
apt-get install kernel-image-2.6.8-3-386

Well it seemed to install ok and it even added the correct information to grub. But when I rebooted x wouldn't load. So I ran
Code: Select all
dpkg-reconfigure xserver-xorg

and it didn't help. So I rebooted into 2.4 and couldn't get it to load x either. So I removed the 2.6 kernel and reconfigured xorg again and now I'm back in.

Would I have done better if I had followed the directions in the link you posted? I couldn't find the same version that you guys loaded, the only option for me was 2.6.8-3.
Jaydsterc2
 
Posts: 2
Joined: 2006-04-27 14:27

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest