many package uninstalled, I can't seem to upgrade to a higher Kernal
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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).
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.
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.
Sorry, never ran such an old system, so I can't advice you in that.
But may I ask you two questions:
Why did you never upgrade the system? And do you mean by upgrade that this system never has seen any security updates?
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.)
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.
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.
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-toolsbefore 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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.