LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2010, 10:28 PM   #1
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
many package uninstalled, I can't seem to upgrade to a higher Kernal


I was attempting to install CRYPT-SSLEAY for perl.
at the end of the installation many packages were auto uninstalled including aptitude & perlmagick ( both i need ) I think the system is tell me I need to upgrade the kernel but all my sources.list seem to be bad.

then I received this message:

Code:
The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
  apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny6_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.7-18lenny6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
my apt sources.list looks like this
Code:
#deb file:///cdrom/ sarge main
#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-3 20070407-11:40]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-2 20070407-11:40]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-1 20070407-11:40]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r1 _Sarge_ - Official i386 Binary-1 (20051218)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r1 _Sarge_ - Official i386 Binary-2 (20051218)]/ unstable contrib main

#deb http://http.us.debian.org/debian stable main contrib non-free
#deb http://security.debian.org/ stable/updates main contrib

deb http://mirror.switch.ch/ftp/mirror/debian/ etch main contrib non-free
deb-src http://mirror.switch.ch/ftp/mirror/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main non-free contrib
When I run apt-get update I get this:

Code:
[I][B]Err http://security.debian.org etch/updates/main Packages
  404 Not Found [IP: 128.101.240.212 80]
Ign http://security.debian.org etch/updates/main Release
Err http://security.debian.org etch/updates/contrib Packages
  404 Not Found [IP: 128.101.240.212 80]
Ign http://security.debian.org etch/updates/contrib Release
Err http://security.debian.org etch/updates/main Sources
  404 Not Found [IP: 128.101.240.212 80]
Ign http://security.debian.org etch/updates/main Release
Err http://security.debian.org etch/updates/non-free Sources
  404 Not Found [IP: 128.101.240.212 80]
Ign http://security.debian.org etch/updates/non-free Release
Err http://security.debian.org etch/updates/contrib Sources
  404 Not Found [IP: 128.101.240.212 80]
Ign http://security.debian.org etch/updates/contrib Release
Err http://mirror.switch.ch etch/main Packages
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/main Release
Err http://mirror.switch.ch etch/contrib Packages
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/contrib Release
Err http://mirror.switch.ch etch/non-free Packages
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/non-free Release
Err http://mirror.switch.ch etch/main Sources
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/main Release
Err http://mirror.switch.ch etch/contrib Sources
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/contrib Release
Err http://mirror.switch.ch etch/non-free Sources
  404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/non-free Release
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz  404 Not Found
 [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz  404 Not Fo
und [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz  404 Not F
ound [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz  404 Not Found [IP:
130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz  404 Not Found [I
P: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz  404 Not Found [IP:
130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz  404 Not Found [I
P: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz  404 Not Found [
IP: 130.59.10.36 80]
Failed to fetch http://security.debian.org/dists/etc...86/Packages.gz  404 Not Found [IP: 1
28.101.240.212 80]
Failed to fetch http://security.debian.org/dists/etc...86/Packages.gz  404 Not Found [IP
: 128.101.240.212 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz  404 Not Found [IP: 128.101
.240.212 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz  404 Not Found [IP: 128
.101.240.212 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz  404 Not Found [IP: 128.
101.240.212 80]
Reading Package Lists... Done
W: Couldn't stat source package list http://mirror.switch.ch etch/main Packages (/var/lib/apt/lists/mirror.switc
h.ch_ftp_mirror_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.switch.ch etch/contrib Packages (/var/lib/apt/lists/mirror.sw
itch.ch_ftp_mirror_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.switch.ch etch/non-free Packages (/var/lib/apt/lists/mirror.s
witch.ch_ftp_mirror_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/main Packages (/var/lib/apt/lists/s
ecurity.debian.org_dists_etch_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/contrib Packages (/var/lib/apt/list
s/security.debian.org_dists_etch_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
I will need help fixing my apt-get sources so I can upgrade the kernel
i am currently running Linux DEBIAN 2.4.27-2-386

Please Advise

Dave

Last edited by culser; 12-27-2010 at 10:52 PM.
 
Old 12-27-2010, 10:42 PM   #2
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 28
Try
Code:
apt-get -f update
 
1 members found this post helpful.
Old 12-27-2010, 10:45 PM   #3
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
apt-get -f update bring back lots of source.list errors tons ( see below )

DEB1:~# apt-get -f update

Quote:
Err http://security.debian.org etch/updates/main Packages
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates/main Release
Err http://security.debian.org etch/updates/contrib Packages
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates/contrib Release
Err http://security.debian.org etch/updates/main Sources
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates/main Release
Err http://security.debian.org etch/updates/non-free Sources
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates/non-free Release
Err http://security.debian.org etch/updates/contrib Sources
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates/contrib Release
Err http://mirror.switch.ch etch/main Packages
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/main Release
Err http://mirror.switch.ch etch/contrib Packages
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/contrib Release
Err http://mirror.switch.ch etch/non-free Packages
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/non-free Release
Err http://mirror.switch.ch etch/main Sources
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/main Release
Err http://mirror.switch.ch etch/contrib Sources
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/contrib Release
Err http://mirror.switch.ch etch/non-free Sources
404 Not Found [IP: 130.59.10.36 80]
Ign http://mirror.switch.ch etch/non-free Release
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz 404 Not Fou
nd [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz 404 Not
Found [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...86/Packages.gz 404 Not
Found [IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz 404 Not Found [IP
: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz 404 Not Found
[IP: 130.59.10.36 80]
Failed to fetch http://mirror.switch.ch/ftp/mirror/d...rce/Sources.gz 404 Not Found
[IP: 130.59.10.36 80]
Failed to fetch http://security.debian.org/dists/etc...86/Packages.gz 404 Not Found [IP:
128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etc...86/Packages.gz 404 Not Found [
IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz 404 Not Found [IP: 128.3
1.0.36 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz 404 Not Found [IP: 1
28.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etc...rce/Sources.gz 404 Not Found [IP: 12
8.31.0.36 80]
Reading Package Lists... Done
W: Couldn't stat source package list http://mirror.switch.ch etch/main Packages (/var/lib/apt/lists/mirror.swi
tch.ch_ftp_mirror_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.switch.ch etch/contrib Packages (/var/lib/apt/lists/mirror.
switch.ch_ftp_mirror_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.switch.ch etch/non-free Packages (/var/lib/apt/lists/mirror
.switch.ch_ftp_mirror_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/main Packages (/var/lib/apt/lists
/security.debian.org_dists_etch_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/contrib Packages (/var/lib/apt/li
sts/security.debian.org_dists_etch_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

Last edited by culser; 12-27-2010 at 10:50 PM.
 
Old 12-27-2010, 11:05 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,424
Blog Entries: 2

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
You are running a mixed system of Debian Sarge and Debian Etch. Both versions are way out of date and are not supported anymore.
I would recommend a reinstall with a newer version.
 
Old 12-27-2010, 11:10 PM   #5
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
A full install?

I am running Apache2 server. I would not want to disturb the current settings with apache2 or the name server, or postfix.

Last edited by culser; 12-27-2010 at 11:16 PM.
 
Old 12-27-2010, 11:20 PM   #6
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
I have eliminated all source.list lines but these. there are now no errors when I run
apt-get -f update or apt-get update

i did find this page
http://packages.debian.org/lenny/i38...2-686/download
and updated the source.list

Code:
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib
deb http://security.debian.org/debian-security lenny/updates main
when i run apt-get install linux-image-2.6.26-2-686
Code:
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6: Depends: tzdata but it is not going to be installed
  linux-image-2.6.26-2-686: Depends: initramfs-tools (>= 0.55) but it is not going to be installed or
                                     yaird (>= 0.0.13) but it is not installable or
                                     linux-initramfs-tool
  locales: Depends: glibc-2.7-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Last edited by culser; 12-27-2010 at 11:25 PM.
 
Old 12-27-2010, 11:26 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,424
Blog Entries: 2

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
So you are running a webserver that has not seen any security updates at least since february? Open to the net? Then I would in any way do a full install, since you don't know if your system is already compromised.

Edit: With your update that you intend to do now you go partly over two versions of the distribution and a major version of the kernel, so do yourself a favor and backup your data. Chances are high that your system breaks.

Last edited by TobiSGD; 12-27-2010 at 11:29 PM.
 
Old 12-27-2010, 11:34 PM   #8
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
This system was first installed in 2005. and never upgraded. there have never been any system breeches. attempts but no breeches.

When you say full install or re install do you mean wiping the HD clean? reformatting? Is there a way to
upgrade/reinstall/ without loosing the directory placement.

Newer versions may for example place apache2 in a different directory, or may not support POSTFIX, or may
place config files in a different directory. This would be a problem for installing.

Please Advise

Dave
 
Old 12-27-2010, 11:48 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,424
Blog Entries: 2

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
Sorry, never ran such an old system, so I can't advice you in that.

But may I ask you two questions:
  1. Why did you never upgrade the system? And do you mean by upgrade that this system never has seen any security updates?
  2. If so, how would you know that there was never a succesfull security breach? (Sorry, security is not my main field, but I simply would assume that a system that never was fixed for five years simply must be compromised. But I may be wrong here.)
 
Old 12-28-2010, 12:00 AM   #10
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Here was the problem. The original install disks have been misplaced. without them upgrading via remote suppositories would be the only other choice, which in this case means upgrading the Kernel, which means changing a lot of dependancies. So the real solution for an old system without wiping it clean is to have the original disks,
or download the older version image if possible ( this is what i learned here tonight ).

We have software that monitors if someone is trying to access repeatedly via FTP or TELNET. the software then bars their IP.

For 3 months I have been building another machine with a newer version of Debian so this is our solution to upgrading.

Even with newer systems security I am sure someone has found a way in, and who would know? You would not know
untell the breaker takes down the system, which has never happened to us.

But if you know a place that is offering a download on an older kernel version let me know.
 
Old 12-28-2010, 12:11 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,424
Blog Entries: 2

Rep: Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996Reputation: 3996
Quote:
Even with newer systems security I am sure someone has found a way in, and who would know? You would not know
untell the breaker takes down the system, which has never happened to us.
But it is a difference if you have 10 (maybe unknown or zero day exploits) security holes in the new system or 150 (maybe well known to all) in the old system. And may be the attackers intention was not to take the system down.

But anyways, maybe this link can help you.

Last edited by TobiSGD; 12-28-2010 at 12:13 AM.
 
Old 12-28-2010, 12:19 AM   #12
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Good Point.

Thank you for the link
 
Old 12-30-2010, 03:36 PM   #13
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
If I recall the migration from a 2.4 kernel to a 2.6 kernel is painful, because it's far more than the kernel itself that gets changed.

you will need to install initramfs-tools before you attempt to install the new 2.6 kernel package, to create the new 2.6 kernel compatible initrd image.. http://wiki.debian.org/Initrd

http://www.debian.org/releases/etch/...kernel-changes

Quite honestly I think the best approach is to grab another server, do a clean install of Debian and migrate apache your websites to the new server. (As previously recommended)

I recall fighting the system to migrate directly from 2.4 to a 2.6 kernel (Sarge to Etch) and half the documentation, forum posts, newsgroup posts, I looked at for kernel migration are probably no longer easily locatable on the net.

here's a link to one of my older posts on this topic.. http://www.linuxquestions.org/questi...4/#post2684796 so you can see a couple other system changes that may need to occur. (devfs vs udev)

And another post concerning the changing of (hard drive) device names when switching kernels..
http://www.linuxquestions.org/questi...device-491096/

Best of luck in your upgrade / migration...
 
1 members found this post helpful.
  


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
How to upgrade kernel 2.6.13 or higher pro_chandan Linux - General 4 06-23-2006 01:07 PM
How to upgrade kernel 2.6.13 or higher pro_chandan Linux - General 4 06-23-2006 01:06 PM
How to upgrade kernel 2.6.13 or higher pro_chandan Red Hat 10 06-22-2006 11:37 AM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration