LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2009, 11:31 AM   #1
MaxLoad
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
apt-get head scratcher


At least it is for me. I started by updating and checking pkg lists on a dept. web server.

"DBLX03:~# apt-get update
Get:1 http://mirrors.kernel.org testing/main Packages [7408kB]
Get:2 http://mirrors.kernel.org testing/main Release [81B]
Get:3 http://mirrors.kernel.org testing/main Sources [3531kB]
Get:4 http://mirrors.kernel.org testing/main Release [83B]
Fetched 10.9MB in 20s (534kB/s)
Reading Package Lists... Done
DBLX03:~# apt-get check
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:
binutils: Depends: libc6 (>= 2.7-1) but 2.3.2.ds1-22 is installed
libc6-dev: Depends: libc6 (= 2.9-4) but 2.3.2.ds1-22 is installed
E: Unmet dependencies. Try using -f."

Originally I continued with the upgrade option, but what I get now is what you see here, use -f install to fix.

All right.

However, I keep rec'ving a mssg that proftpd service needs to be stopped when attempting to upgrade libc6.

"Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do lookup or authentication any more. The installation process is able to restart some services (such as ssh or telnetd), but other programs cannot be restarted automatically. One such program that needs manual stopping and restart after the glibc upgrade by yourself is xdm - because automatic restart might disconnect your active X11 sessions.

This script detected the following installed services which must be stopped before the upgrade: proftpd

If you want to interrupt the upgrade now and continue later, please answer No to the question below."

OK > No

According to everything I can find it's a simple command, proftpd stop. Here's what I get:

"DBLX03:~# /etc/init.d/proftpd stop
ProFTPd is started from inetd/xinetd."

Okee doke. nano /etc/inetd.conf & comment out the proftpd line.

Restart. Run apt-get -f install and....

"Preparing to replace libc6 2.3.2.ds1-22 (using .../archives/libc6_2.9-4_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
WARNING: this version of the GNU libc requires kernel version
2.6.18 or later. Please upgrade your kernel before installing
glibc.

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 lenny sources to your /etc/apt/sources.list and run:
apt-get install -t lenny linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.9-4_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.9-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)"

Yep the comment stuck, 'proftpd stop' still returns the same mssg 'ProFTPd is started from inetd/xinetd', I have no xinetd, just inetd.

Should I stress over this anymore? Or just go about my business?

Thanks for reading in.
 
Old 04-24-2009, 11:57 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
if you answered YES to the question about proftpd it would have stopped it automatically for you completed the upgrade, then restarted proftpd after the upgrade completed. you told it to interrupt the upgrade and not finish installing all the packages. I would have answered yes to the question..

And then there is this line..
Quote:
WARNING: this version of the GNU libc requires kernel version 2.6.18 or later. Please upgrade your kernel before installing glibc.
What kernel are you running that is so old ?

uname -a

Etch (old stable)was 2.6.18, Lenny (stable) is 2.6.26, Squeeze (testing) should be 2.6.26 as well.

Did you upgrade this box from an older system ? (Sarge maybe 2.6.8)

Provided you are currently running a 2.6 kernel (and not a 2,4 kernel from Sarge) you should be able to update it with the following command (provided it;s a 32 Bit intel system).
apt-get install linux-image-2.6.26-2-686

Last edited by farslayer; 04-24-2009 at 12:03 PM.
 
Old 04-24-2009, 12:21 PM   #3
MaxLoad
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
if you answered YES to the question about proftpd it would have stopped it automatically for you completed the upgrade, then restarted proftpd after the upgrade completed.<snip>
The first time around I *did* answer yes, and got the same loop of messages I've described. Which may be explained below.

Quote:
Originally Posted by farslayer View Post
What kernel are you running that is so old ?
Linux DBLX03 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux

Since I am running a Sarge kernel, am I doomed? 8^*
 
Old 04-24-2009, 02:00 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Ugh.. the upgrade from 2.4 to 2.6 kernel can be a bit is a bit rough by itself, and you should go from 2.4 Sarge to 2.6 Sarge kernel This is explained in the Release notes for Sarge I do believe. I had a heck of a time with that particular portion of hte upgrade. You would want to do that before Upgrading to Etch, Lenny, or squeeze.. the upgrades should be progressive, and not skipping whole versions.

Sarge -> Etch -> Lenny -> Squeeze

Theres so many packages and so much going on They don't test upgrades 2-3 versions back to current.. thet would be a HUGE effort on the part of the developers.


From the Code in your first post it looks like you are going straight from Debian 3.0 to Debian 6.0 ?
 
Old 04-24-2009, 02:42 PM   #5
MaxLoad
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
From the Code in your first post it looks like you are going straight from Debian 3.0 to Debian 6.0 ?
Apparently.

This was an early AJAX exercise set up as a tracking system, living on an HP Vectra VL. Think of it as something like this.

All of the PHP, mySQL, and Apache data were recently migrated to a (relatively) new server, freeing the old one up as a test bed for services that will eventually be instituted on the new box.

I was trying to get the OS to parity (without really knowing what I was doing) with the new server...and there we are.

It would seem that I'd be better off burning the old Vectra down, and starting from there, yes?
 
  


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
loss of connectivity -- HEAD SCRATCHER!! alabamaman Linux - Networking 4 10-16-2007 02:44 AM
Copy Date/Time without actual files? - a real head scratcher tbeehler Linux - Software 17 07-25-2007 05:20 AM
LXer: Oracle's Linux Claims Are a Head Scratcher LXer Syndicated Linux News 0 03-23-2007 08:16 PM
virtual hosting head scratcher di11rod Linux - Networking 2 06-09-2004 03:16 PM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 01:39 PM


All times are GMT -5. The time now is 03:58 PM.

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