LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-02-2012, 10:33 PM   #1
Majorsdd
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Upgrade from Etch


I have an old server that is running Etch under a 2.4 kernel. I am in need of upgrading it to Lenny and then to Squeeze but I am running into the following problem:

Quote:
# apt-get install -t etch linux-image-2.6.26-2-686
[SNIP]
Preconfiguring packages ...
(Reading database ... 43934 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...
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-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
The main problem is that I have waited so long that I can not find a single good address for etch sources for the sources.list.

I think I know the answer to this but my question is, am I now completely fubar'd or is there something I can do that doesn't involve rebuilding this server from scratch and trying to move all the users, applications, and data from the old to the new?

Eternal gratitude to anyone who can help this poor negligent admin.

--
Dave Majors
 
Old 01-03-2012, 04:26 AM   #2
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
These older debian releases have had their repos moved to archive.debian.net. See:

http://www.debian.org/distrib/archive

Basically you should be able to use a line like the following in your sources.list

Code:
deb http://archive.debian.org/debian/ hamm contrib main non-free
HTH,

Evo2.

---------- Post added 2012-01-03 at 19:26 ----------

These older debian releases have had their repos moved to archive.debian.net. See:

http://www.debian.org/distrib/archive

Basically you should be able to use a line like the following in your sources.list

Code:
deb http://archive.debian.org/debian/ hamm contrib main non-free
HTH,

Evo2.
 
Old 01-03-2012, 07:55 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
To expand on what evo2 posted above. You need to change your sources.list to track the debian archive e.g. :

Code:
#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-1 20070407-11:40]/ etch contrib main
#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-1 20070407-11:40]/ etch contrib main
#
# deb http://ftp.us.debian.org/debian/ etch main non-free contrib
# deb-src http://ftp.us.debian.org/debian/ etch main non-free contrib
#
# deb http://security.debian.org/ etch/updates main contrib non-free
# deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://archive.debian.org/debian/ etch main contrib non-free
In other words comment everything out, add that last line and then

Code:
apt-get clean
apt-get update
apt-get dist-upgrade
If it stops and complains about libc/the 2.4 kernel

Code:
apt-get install linux-image-2.6
Then reboot into the 2.6.18 kernel and try the dist-upgrade again.

When the dist-upgrade completes you will be running "up to date" Etch (Debian 4). For further upgrades you will need to read the release notes for the distributions you are upgrading to. I would suggest upgrading to Lenny next and if that goes well attempt the Squeeze upgrade - which would be a smart move considering Lenny's support ends sometime next month. In every case it's essential to read the release notes for upgrading and ensure your sources are correct from the start. If you have any doubts about the sources, post them up here before proceeding and someone should be able to guide you in the right direction.
 
  


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
upgrade from etch to lenny skoinga Debian 2 04-21-2011 08:06 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
-best way to upgrade from Etch to Lenny ? el amigo* Debian 10 09-24-2007 11:40 PM
etch upgrade to lenny StargateSteve Debian 8 04-12-2007 03:11 PM

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

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