LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-18-2011, 10:42 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
cannot upgrade Etch to Lenny


Hi

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
 
Old 05-18-2011, 12:13 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Have you read the release notes?

Did you upgrade apt and dpkg first?
 
Old 05-18-2011, 12:39 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by AlucardZero View Post
Have you read the release notes?

Did you upgrade apt and dpkg first?
Yes and I still get the same problem:
Code:
# 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)
 
Old 05-18-2011, 01:16 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,888
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
aptitude update

aptitude install apt dpkg aptitude

aptitude full-upgrade

Upgrade Debian Etch to Debian Lenny 1 - http://www.go2linux.org/upgrading-debian
 
Old 05-18-2011, 01:30 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx but still errors:
Code:
# aptitude update
Get:1 http://ftp.ch.debian.org lenny Release.gpg [1033B]
Hit http://ftp.ch.debian.org lenny Release
Ign http://ftp.ch.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.ch.debian.org lenny/main Sources/DiffIndex
Hit http://ftp.ch.debian.org lenny/main Packages
Hit http://ftp.ch.debian.org lenny/main Sources
Get:2 http://security.debian.org lenny/updates Release.gpg [836B]
Hit http://security.debian.org lenny/updates Release
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
Hit ftp://ftp.de.debian.org lenny Release.gpg
Hit http://security.debian.org lenny/updates/non-free Packages
Get:3 ftp://ftp.de.debian.org lenny Release [73.8kB]
Get:4 ftp://ftp.de.debian.org lenny/main Packages/DiffIndex
Ign ftp://ftp.de.debian.org lenny/main Packages/DiffIndex
Get:5 ftp://ftp.de.debian.org lenny/contrib Packages/DiffIndex
Ign ftp://ftp.de.debian.org lenny/contrib Packages/DiffIndex
Get:6 ftp://ftp.de.debian.org lenny/non-free Packages/DiffIndex
Ign ftp://ftp.de.debian.org lenny/non-free Packages/DiffIndex
Hit ftp://ftp.de.debian.org lenny/main Packages
Hit ftp://ftp.de.debian.org lenny/contrib Packages
Hit ftp://ftp.de.debian.org lenny/non-free Packages
Fetched 73.8kB in 12s (6125B/s)
Reading package lists... Done

# aptitude install apt dpkg aptitude
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  libcwidget3 libept0 libxapian15 lzma
The following packages have been kept back:
  adduser base-files base-passwd bash bsdutils coreutils cpp cpp-4.1 cron
  debconf debconf-i18n debconf-utils debianutils defoma diff e2fslibs file
  gawk gcc-4.1-base gnupg gpgv gsfonts gsfonts-x11 ifupdown iputils-ping
  java-common libacl1 libasound2 libattr1 libblkid1 libbz2-1.0 libcomerr2
  libdb4.2 libedit2 libfontenc1 libfreetype6 libfribidi0 libfs6 libgcc1
  libgcrypt11 libgmp3c2 libgpg-error0 libice6 libidn11 libkrb53
  liblocale-gettext-perl liblockfile1 libltdl3 libmagic1 libncurses5
  libnewt0.52 libpam-modules libpam-runtime libpam0g libpcre3 libpopt0
  libreadline5 libsasl2-2 libselinux1 libsepol1 libsigc++-2.0-0c2a
  libslang2 libsm6 libssl0.9.8 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
The following NEW packages will be installed:
  libcwidget3 libept0 libxapian15 lzma
The following packages will be upgraded:
  apt aptitude dpkg libc6 libncursesw5 libstdc++6
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr
  aptitude-doc-ja libgpm2 libparse-debianchangelog-perl
6 packages upgraded, 4 newly installed, 0 to remove and 118 not upgraded.
Need to get 0B/14.5MB of archives. After unpacking 9761kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
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)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of locales:
 locales depends on glibc-2.7-1; however:
  Package glibc-2.7-1 is not installed.
dpkg: error processing locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales

# aptitude full-upgrade
Unknown command "full-upgrade"
aptitude 0.4.4
 
Old 05-18-2011, 02:10 PM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I solved this problem!
Code:
# cd /lib/tls/i686/cmov
# mv libc.so.6 libc.so.6.moved
# apt-get -f install
# apt-get update
# apt-get dist-upgrade
 
Old 05-18-2011, 02:11 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
From Googling your error message "A non-dpkg owned copy of the libc6-i686 package was found." I found https://answers.launchpad.net/ubuntu/+question/27155 .

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.

quick edit: you beat me by one minute
 
Old 05-18-2011, 08:38 PM   #8
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
After reboot was OK, but during the kernel update the system has crashed completely and I've restored from the backup.
 
  


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
upgrade from etch to lenny skoinga Debian 2 04-21-2011 08:06 AM
Right way to upgrade from ETCH to LENNY? frenchn00b Debian 3 06-24-2009 11:36 AM
Can not upgrade from Etch to Lenny ? ashikaumanga Linux - General 6 02-02-2009 08:14 PM
Etch-to-Lenny upgrade? pietruszewski Debian 36 05-09-2008 03:59 PM
Possible to Upgrade Etch to Lenny? BobNutfield Debian 5 02-29-2008 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:44 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