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.
I try to upgrade Etch to Lenny and get the following problem:
Code:
# apt-get update
# apt-get dist-upgrade
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:
locales: Depends: glibc-2.7-1
E: Unmet dependencies. Try using -f.
# apt-get -f dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages will be REMOVED:
libft-perl
The following NEW packages will be installed:
cpp-4.3 e2fsprogs findutils fontconfig-config grep gzip hostname initscripts libcwidget3 libdb4.6 libdrm2 libept0
libexpat1 libfontconfig1 libgl1-mesa-glx libkeyutils1 libmpfr1ldbl libss2 libuuid1 libxapian15 libxaw7 libxcb-xlib0
libxcb1 libxdamage1 libxfixes3 libxft2 libxinerama1 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxtrap6 libxv1
libxxf86dga1 libxxf86misc1 libxxf86vm1 lzma mount ncurses-base procps sysv-rc sysvinit sysvinit-utils tar util-linux
x11-session-utils x11-utils x11-xfs-utils x11-xserver-utils
The following packages will be upgraded:
adduser apt aptitude base-files base-passwd bash bsdutils coreutils cpp cpp-4.1 cron debconf debconf-i18n debconf-utils
debianutils defoma diff dpkg e2fslibs file gawk gcc-4.1-base gnupg gpgv gsfonts gsfonts-x11 ifupdown iputils-ping
java-common libacl1 libasound2 libattr1 libblkid1 libbz2-1.0 libc6 libcomerr2 libdb4.2 libedit2 libfontenc1 libfreetype6
libfribidi0 libfs6 libgcc1 libgcrypt11 libgmp3c2 libgpg-error0 libice6 libidn11 libkrb53 liblocale-gettext-perl
liblockfile1 libltdl3 libmagic1 libncurses5 libncursesw5 libnewt0.52 libpam-modules libpam-runtime libpam0g libpcre3
libpopt0 libreadline5 libsasl2-2 libselinux1 libsepol1 libsigc++-2.0-0c2a libslang2 libsm6 libssl0.9.8 libstdc++6
libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libusb-0.1-4 libwrap0 libx11-6 libx11-data
libxau6 libxdmcp6 libxext6 libxfont1 libxi6 libxp6 libxt6 libxtst6 login logrotate lsb-base makedev mktemp ncurses-bin
net-tools netbase odbcinst1debian1 openbsd-inetd openssh-blacklist openssh-client openssh-server passwd perl perl-base
perl-doc perl-modules readline-common rsnapshot rsync sed ssh sun-java5-bin sun-java5-jre tcpd ucf unixodbc update-inetd
whiptail x11-common xfonts-encodings xfonts-utils xutils xutils-dev zlib1g
122 upgraded, 50 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/104MB of archives.
After unpacking 47.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 10696 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch10+b1 (using .../libc6_2.7-18lenny7_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny7_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18lenny7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My /etc/apt/sources.list:
Code:
# cat /etc/apt/sources.list
deb http://ftp.ch.debian.org/debian/ lenny main
deb-src http://ftp.ch.debian.org/debian/ lenny main
#stable main non-free
deb ftp://ftp.de.debian.org/debian/ lenny main contrib non-free
#security & none-free
deb http://security.debian.org/ lenny/updates main contrib non-free
# apt-get upgrade apt dpkg
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:
locales: Depends: glibc-2.7-1
E: Unmet dependencies. Try using -f.
# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
1 not fully installed or removed.
Need to get 0B/4566kB of archives.
After unpacking 369kB disk space will be freed.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 10696 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch10+b1 (using .../libc6_2.7-18lenny7_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny7_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18lenny7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
It suggests moving /lib/tls/i686/cmov/libc.so.6 to /lib/tls/i686/cmov/libc.so.6.bkup and reinstalling libc6. However, this may break your system completely and require you to boot from CD to restore the file. I presume you have a backup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.