LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2009, 08:16 PM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

So, do you have a question?

Anyway it should not be trying to upgrade glibc. Are you sure that "sarge" is the correct corresponding Debian release for you linspire machine?

Did this machine abort during an upgrade in the past? If so you will first need to fix that problem. To find out the state of the packages please run the following command.

Code:
dpkg --audit
If all is ok, you should get no output. If it does list packages, please try running the following to get your machine back to a sane state.

Code:
dpkg --configure --pending
Evo2.
 
Old 11-30-2009, 06:51 PM   #17
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
this is the output i am getting
pc1:~# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
binutils The GNU assembler, linker and binary utilities
libc6-dev GNU C Library: Development Libraries and Header Files
libgcc1 GCC support library

pc1:~# dpkg --configure --pending
dpkg: dependency problems prevent configuration of binutils:
binutils depends on libc6 (>= 2.7-1); however:
Version of libc6 on system is 2.3.2-7.lindows1.cnr2.
dpkg: error processing binutils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:
libc6-dev depends on libc6 (= 2.7-18); however:
Version of libc6 on system is 2.3.2-7.lindows1.cnr2.
libc6-dev depends on linux-libc-dev; however:
Package linux-libc-dev is not installed.
dpkg: error processing libc6-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcc1:
libgcc1 depends on libc6 (>= 2.7-1); however:
Version of libc6 on system is 2.3.2-7.lindows1.cnr2.
dpkg: error processing libgcc1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
binutils
libc6-dev
libgcc1
pc1:~#
 
Old 11-30-2009, 08:10 PM   #18
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
It seems your system is in a bit of a mess. At some stage in the past you (or someone) must have tried to install or upgrade libgcc1 which requires a new version on libc6.

You need to fix this before you can install anything. Because this is an old lindows installation as opposed to a proper Debian installation you may encounter some unexpected difficulties.

Please try to fix the problem with the following command:
Code:
apt-get -f install
And post the output.

Evo2.
 
Old 12-01-2009, 03:27 AM   #19
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
This is the output from that command
┌───────────────────────────────────[!!] Configuring 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: kdm │
│ │
│ If you want to interrupt the upgrade now and continue later, please answer No to the │
readlink: invalid option -- e │
Try `readlink --help' for more information. │
readlink: invalid option -- ec now? │
Try `readlink --help' for more information. │
readlink: invalid option -- e │
Try `readlink --help' for more information.
readlink: invalid option -- e < Yes > < No >
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: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
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 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-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pc1:~#
 
Old 12-01-2009, 03:35 AM   #20
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Before we continue any further, can you please confirm that you or someone else tried to upgrade libc6? And that you do indeed want to upgrade libc6?

How to proceed depends critically on the answers to these two questions.

Evo2.
 
Old 12-01-2009, 03:43 AM   #21
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
yes I did try to upgrade Libc and I would liek to try and upgrade libc
 
Old 12-01-2009, 03:50 AM   #22
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Ok, you need to try to find out why the libc6 pre-install script is failing. Please add 'set -x' to the file
/var/lib/dpkg/info/libc6.preinst so that the script can be debugged. Please put it on the second line, just after '#!/bin/sh'.

At this point I should also add that I don't know what is causing the "readlink" errors, but suspect it may be in the libc6.preinst script and may be related to cause of your problems.

Evo2.
 
Old 12-01-2009, 03:58 AM   #23
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
That file could not be found
 
Old 12-01-2009, 04:05 AM   #24
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by paul62 View Post
That file could not be found
Ok can you look for a similar named file. Eg.
Code:
ls /var/lib/dpkg/info/*libc6*.preinst
Please try to find the relevant file.

Evo2.
 
Old 12-01-2009, 04:16 AM   #25
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
I did a little more looking and foudn the file this is what it looks like and I am not sure where to put the x.
!/bin/bash
set -e

dpkg --assert-support-predepends

if [ "$1" = upgrade ]
then
if [ -f /var/lib/dpkg/info/timezone.postrm ]; then
rm -f /var/lib/dpkg/info/timezone.postrm
fi
if [ -f /var/lib/dpkg/info/timezones.postrm ]; then
rm -f /var/lib/dpkg/info/timezones.postrm
fi
if dpkg --compare-versions "$2" lt 2.1.3-8; then
if [ -s /etc/timezone ]; then
cp -a /etc/timezone /etc/timezone.save
fi
fi
if dpkg --compare-versions "$2" le 2.2.2-4 && test -e /lib/libdb.so.3; then
# Make upgrades to newer libdb.so.3 easier
cat /lib/libdb.so.3 > /lib/libdb.so.3.old
fi
if dpkg --compare-versions "$2" le 2.1.1-0.1; then
if [ -f /var/run/utmpd.pid ]; then
if kill -TERM `cat /var/run/utmpd.pid` > /dev/null 2>&1
then
if [ -f /var/run/utmp ]; then
cp /dev/null /var/run/utmp
if grep '^utmp:' /etc/group; then
chown root:utmp /var/run/utmp
chmod 664 /var/run/utmp
else
chown root:root /var/run/utmp
chmod 644 /var/run/utmp
fi
fi
if [ -f /var/log/wtmp ]; then
savelog /var/log/wtmp
touch /var/log/wtmp
if grep '^utmp:' /etc/group; then
chown root:utmp /var/log/wtmp
chmod 664 /var/log/wtmp
else
chown root:root /var/log/wtmp
chmod 644 /var/log/wtmp
fi
fi
rm -f /etc/init.d/utmpd
update-rc.d utmpd remove > /dev/null
fi
fi
if [ -f /var/run/utmpx ]; then rm -f /var/run/utmpx; fi
if [ -f /var/log/wtmpx ]; then rm -f /var/log/wtmpx*; fi
if [ -e /var/run/utmpd.ro ]; then rm -f /var/run/utmpd.ro; fi
if [ -e /var/run/utmpd.rw ]; then rm -f /var/run/utmpd.rw; fi
fi

# NSS authentication trouble guard
if dpkg --compare-versions $2 lt 2.2.94-1; then
check="xdm kdm gdm postgresql xscreensaver"
# Only get the ones that are installed, and configured
service=$(dpkg -s $check 2> /dev/null | awk 'BEGIN{RS="\n\n";FS="\n"}{if ( $2 ~ /Status: .* installed$/ ) { print $1 } }' | cut -f 2 -d ' ')

echo
echo "Name Service Switch has changed in the C Library: pre-installation question."
echo
echo "Running programs may not be able to do NSS lookups until they are restarted."
echo "Some services can not accept all authentication after extracting glibc"
echo "package into your system. This script automatically restarts some packages"
echo "for example ssh or telnetd, but other packages for example xdm"
echo "cannot restart because if it restarts automatically, then your X11 session"
echo "is disconnected. So you have to logout and stop xdm; you have to"
echo "restart all such services after upgrading libc6 with your hands."
echo "Known packages that are needed to stop before installing glibc 2.3:"
echo " $check"
echo

if [ -n "$service" ]; then
echo "This script detects services which need to stop: $service"
echo "If you are invoking these services, please stop before upgrading."
else
echo "This script does not detect services which need to stop."
fi
echo "If you want to stop upgrade for the present, please answer the below"
echo "question as No."
echo
frontend=`echo "$DEBIAN_FRONTEND" | tr '[:upper:]' '[:lower:]'`
if [ "$frontend" = noninteractive ]; then
echo "Non-interactive mode, upgrade glibc forcely"
answer=yes
else
echo -n "Do you want to upgrade glibc? [Y/n] "
read answer
case $answer in
Y*|y*) answer=yes ;;
N*|n*) answer=no ;;
*) answer=yes ;;
esac
fi
echo
if [ "$answer" = no ]; then
echo "Stopped glibc upgrade. Please retry upgrade after you check"
echo "or stop services with your hands."
exit 1
fi
fi

# This will keep us from using hwcap libs (optimized) during an
# upgrade.
touch /etc/ld.so.nohwcap
echo glibc >> /etc/ld.so.nohwcap
fi

if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]
then
# SPARC sun4m requires a recent kernel
realarch=`uname -m`
if [ "$realarch" = sparc ]
then
cputype=`egrep '^type.*:.*sun4m' /proc/cpuinfo 2> /dev/null` || true
kernel_ver=`uname -r`

if [ "$cputype" != "" ]
then
kernel_ver=`uname -r`
if dpkg --compare-versions "$kernel_ver" lt 2.2.7
then
echo WARNING: You have a cpu which requires kernel 2.2.7
echo or greater in order to install this version of libc6.
echo Please upgrade the kernel before installing this package.
echo
echo You should be able to install the latest version of the
echo sparc kernel-image in order to satisfy this need. You
echo can also download and compile the latest kernel source
echo yourself from a kernel mirror \(see http://www.kernel.org/\).
exit 1
fi
else
if dpkg --compare-versions "$kernel_ver" lt 2.2.0 #should be safe
then
echo WARNING: This version of libc6 suggests atleast a
echo 2.2.0 kernel in order to work properly. 2.0.x kernels
echo will not be able to support certain functions and
echo may cause problems. 2.2 kernels have proven to be much
echo more reliable than 2.0.x kernels on the sparc platform
echo anyway, so an upgrade is suggested. If you have a 2.1.x
echo kernel is is suggested you upgrade to the latest 2.2
echo release, since it is more stable and fixes many bugs.
exit 1
fi
fi
fi
# HPPA boxes require latest fixes in the kernel to function properly.
if [ "$realarch" = parisc ]
then
kernel_ver=`uname -r`
if dpkg --compare-versions "$kernel_ver" lt 2.4.17
then
echo WARNING: This version of libc6 requires that you be running
echo atleast a 2.4.17 kernel in order to work properly. Earlier
echo kernels did not provide the proper functionality in order
echo for the system to be stable.
exit 1
fi
fi
# parisc64 boxes require latest fixes in the kernel 2.4.19-pa17 or later
# (in 2.4.x), 2.5.53-pa3 or later (in 2.5.x), to function properly.
# Note that parisc64 kernel version scheme is "`uname -r`-64".
if [ "$realarch" = parisc64 ]
then
kernel_ver=`uname -r`
if [ $kernel_ver = ${kernel_ver/pa/} ]
then
if dpkg --compare-versions "$kernel_ver" lt 2.4.19-64
then
echo WARNING: This version of libc6 requires that you be
echo running at least a 2.4.19-64 to work properly.
echo Earlier kernels did not provide the proper functionality
echo in order for the system to be stable.
exit 1
fi
else
if dpkg --compare-versions "$kernel_ver" lt 2.4.19-pa17
then
echo WARNING: This version of libc6 requires that you be
echo running at least a 2.4.19-pa17 in \(2.4\) or 2.5.53-pa3
echo \(in 2.5\) to work properly.
echo Earlier kernels did not provide the proper functionality
echo in order for the system to be stable.
exit 1
fi
fi
fi
fi

exit 0
 
Old 12-01-2009, 04:24 AM   #26
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
I did a little more looking and found the file this is what it looks like
This looks like the correct file, but please tell me the exact name of the file, so I can be sure.

Quote:
and I am not sure where to put the x.
Please put it on the second line, just after '#!/bin/sh'. Make the first three lines should look like:

Code:
#!/bin/bash
set -x
set -e
Evo2.
 
Old 12-01-2009, 04:27 AM   #27
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
The exact name of the file is /var/lib/dpkg/info/libc6/preinst
 
Old 12-01-2009, 04:31 AM   #28
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by paul62 View Post
The exact name of the file is /var/lib/dpkg/info/libc6/preinst
Ok, great. Seems the filename convention has changed since limpus.

So please add the 'set -x' and then do 'dpkg --configure libc6'. You should get lots of output from the preinst script, hopefully showing where it exits.

Evo2.
 
Old 12-01-2009, 04:51 AM   #29
paul62
Member
 
Registered: Mar 2004
Location: glenview illinois
Distribution: fedora core 7
Posts: 458

Original Poster
Rep: Reputation: 30
This is the output of the last command
pc1:~# dpkg --configure libc6
dpkg: error processing libc6 (--configure):
package libc6 is already installed and configured
Errors were encountered while processing:
libc6
 
Old 12-01-2009, 05:23 AM   #30
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
ok sorry. Perhaps I should have said

Code:
dpkg --configure --pending
Evo2.
 
  


Reply



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
apt-mirror client looking for wrong format DrStrangepork Linux - Newbie 1 09-22-2009 12:17 AM
apt-cacher and checkinstall - client cannot find self-made package linuxBeginner02 Linux - Newbie 1 03-27-2008 11:59 AM
Cnr cdfeedback Linspire/Freespire 4 03-12-2007 12:42 PM
New $19.95 CNR linuxforlife Linspire/Freespire 10 09-06-2005 08:55 PM
CNR Help JROCK1980 Linspire/Freespire 1 04-16-2004 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

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
Open Source Consulting | Domain Registration