LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-19-2007, 10:19 AM   #1
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Rep: Reputation: 15
dependency errors and failed to fetch


I'm trying to run some updates on Debian linux server and Here's what I get:

apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl
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:
libauthen-pam-perl: Depends: perlapi-5.8.7
Depends: perl (>= 5.8.7-7) but 5.8.4-8sarge5 is to be installed
Depends: libc6 (>= 2.3.5-1) but 2.3.2.ds1-22sarge5 is to be installed
libio-pty-perl: Depends: libc6 (>= 2.3.6-6) but 2.3.2.ds1-22sarge5 is to be installed
Depends: perl (>= 5.8.8-6.1) but 5.8.4-8sarge5 is to be installed
Depends: perlapi-5.8.8
libnet-ssleay-perl: Depends: perlapi-5.8.7
Depends: perl (>= 5.8.7-10) but 5.8.4-8sarge5 is to be installed
Depends: libc6 (>= 2.3.5-1) but 2.3.2.ds1-22sarge5 is to be installed
Depends: libssl0.9.8 (>= 0.9.8a-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
webcaf:/etc/dload# apt-get install perl libnet-ssleay-perl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
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:
libauthen-pam-perl: Depends: perlapi-5.8.7
Depends: libc6 (>= 2.3.5-1) but 2.3.2.ds1-22sarge5 is to be installed
libio-pty-perl: Depends: libc6 (>= 2.3.6-6) but 2.3.2.ds1-22sarge5 is to be installed
Depends: perlapi-5.8.8
libnet-ssleay-perl: Depends: perlapi-5.8.7
Depends: libc6 (>= 2.3.5-1) but 2.3.2.ds1-22sarge5 is to be installed
Depends: libssl0.9.8 (>= 0.9.8a-1) but it is not going to be installed
perl: Depends: perl-base (= 5.8.8-7) but 5.8.4-8sarge5 is to be installed
Depends: perl-modules (>= 5.8.8-7) but 5.8.4-8sarge5 is to be installed
Depends: libc6 (>= 2.3.6-6) but 2.3.2.ds1-22sarge5 is to be installed
Depends: libdb4.4 but it is not going to be installed
Conflicts: data-dumper
perl-base: Conflicts: data-dumper
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
------------------------------------------------------

I tried to run the apt-get -f install but then I get this:

The following extra packages will be installed:
libauthen-pam-perl libc6 libc6-dev libdb4.4 libio-pty-perl libmd5-perl
libnet-ssleay-perl libperl5.8 libssl0.9.8 locales perl perl-base
perl-modules tzdata
Suggested packages:
glibc-doc libterm-readline-gnu-perl libterm-readline-perl-perl
Recommended packages:
perl-doc
The following packages will be REMOVED:
base-config initrd-tools kernel-image-2.4.27-2-386
The following NEW packages will be installed:
libauthen-pam-perl libdb4.4 libio-pty-perl libmd5-perl libnet-ssleay-perl
libssl0.9.8 tzdata
The following packages will be upgraded:
libc6 libc6-dev libperl5.8 locales perl perl-base perl-modules
7 upgraded, 7 newly installed, 3 to remove and 817 not upgraded.
1 not fully installed or removed.
Need to get 7416kB/22.4MB of archives.
After unpacking 15.9MB disk space will be freed.
Do you want to continue? [Y/n] y
Err http://debian.oregonstate.edu stable/main libc6-dev 2.3.6.ds1-13
404 Not Found
Err http://debian.oregonstate.edu stable/main libc6 2.3.6.ds1-13
404 Not Found
Failed to fetch http://debian.oregonstate.edu/debian...s1-13_i386.deb 404 Not Found
Failed to fetch http://debian.oregonstate.edu/debian...s1-13_i386.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 
Old 12-19-2007, 11:29 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Can you post your /etc/apt/sources.list file? Looking at kernel it's trying to remove, I'm guessing that the server is Sarge which is now "oldstable" and that the sources.list still says stable. So basically it's trying to upgrade those packages to Etch, but the rest of the system is still Sarge.
 
Old 12-19-2007, 12:35 PM   #3
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I don't have an apt folder under /etc.
 
Old 12-19-2007, 01:05 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
That's weird. That's the standard location on any debian system. Try running cat /etc/apt/sources.list.
 
Old 12-19-2007, 01:23 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
it-etch:~# find / -name sources.list

/etc/apt/sources.list
/usr/share/doc/apt/examples/sources.list
/usr/share/doc/Debian/reference/examples/sources.list



Don't know how apt would work at all without a sources.list file.. there must be one..
 
Old 12-19-2007, 01:47 PM   #6
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Ok, I found it. I'm not sure why I couldn't get to it the first time but here's the contents of the sources.list file

#deb file:///cdrom/ sarge main

deb http://debian.oregonstate.edu/debian/ stable main
deb-src http://debian.oregonstate.edu/debian/ stable main

deb http://security.debian.org/ stable/updates main
 
Old 12-19-2007, 01:53 PM   #7
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
So I would edit the file and replace "stable" with "oldstable" or "sarge". Then run aptitude update. Then try installing your package again.

Or if you want to get adventurous, you can dist-upgrade to the current stable, Etch, then try installing your package.

This is one reason that I usually use the codenames (i.e. sarge, etch, sid, etc) in the sources.list. That way, when Debian upgrades from one stable to the next, I don't get messed up and can do a dist-upgrade when I want to.
 
Old 12-19-2007, 02:04 PM   #8
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
I would not force that command unless you are very sure that you have a second bootable kernel. It looks like apt is planning to remove your kernel. If you don't have a second (or your second is not set up correctly), then you will kill your system. I might first recommend updating just the kernel and rebooting to the new kernel (to test it). What happens if you try this:
Code:
apt-get install linux-image-2.6.18-4.486 -s
The "-s" flag means simulated, so it's a good way to test things before doing it. If the output of the simulation looks ok, maybe try that.

You might also replace the two main lines in your /etc/apt/sources.list with this:
Code:
deb http://ftp.us.debian.org/debian/ stable main
deb-src http://ftp.us.debian.org/debian/ stable main
Those repos might be more reliable than the Oregon State ones.
 
Old 12-19-2007, 03:10 PM   #9
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Telemachos View Post
I would not force that command unless you are very sure that you have a second bootable kernel. It looks like apt is planning to remove your kernel. If you don't have a second (or your second is not set up correctly), then you will kill your system. I might first recommend updating just the kernel and rebooting to the new kernel (to test it). What happens if you try this:
Code:
apt-get install linux-image-2.6.18-4.486 -s
The "-s" flag means simulated, so it's a good way to test things before doing it. If the output of the simulation looks ok, maybe try that.

You might also replace the two main lines in your /etc/apt/sources.list with this:
Code:
deb http://ftp.us.debian.org/debian/ stable main
deb-src http://ftp.us.debian.org/debian/ stable main
Those repos might be more reliable than the Oregon State ones.
Good advice as a whole, but I think the main problem is that he's got a server still running Sarge, but since the repository says "stable" it's trying to install a package from Etch while the rest of the system is still Sarge. So apt is barfing at him...
 
Old 12-19-2007, 03:27 PM   #10
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I changed the names to "oldstable" in the sources files and then I did this:

/etc/apt# aptitude update
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Get:1 http://debian.oregonstate.edu oldstable/main Packages [4523kB]
Get:2 http://security.debian.org stable/updates/main Packages [248kB]
Get:3 http://security.debian.org stable/updates/main Release [97B]
Get:4 http://debian.oregonstate.edu oldstable/main Release [98B]
Get:5 http://debian.oregonstate.edu oldstable/main Sources [1323kB]
Get:6 http://debian.oregonstate.edu oldstable/main Release [100B]
Fetched 6094kB in 39s (154kB/s)
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
W: Couldn't stat source package list http://debian.oregonstate.edu oldstable/main Packages (/var/lib/apt/lists/debian.oregonstate.edu_debian_dists_oldstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.oregonstate.edu oldstable/main Packages (/var/lib/apt/lists/debian.oregonstate.edu_debian_dists_oldstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files
W: You may want to update the package lists to correct these missing files
webcaf:/etc/apt#
 
Old 12-19-2007, 03:41 PM   #11
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
What does your sources.list look like now?
 
Old 12-19-2007, 03:51 PM   #12
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
#deb file:///cdrom/ sarge main

deb http://debian.oregonstate.edu/debian/ oldstable main
deb-src http://debian.oregonstate.edu/debian/ oldstable main

deb http://security.debian.org/ stable/updates main
 
Old 12-19-2007, 04:02 PM   #13
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
The last line also needs to be oldstable instead of stable.

Other than that, it looks good. Maybe your connection went a little whack during the update and it lost connection to the Oregon State server. But I don't think those are fatal errors you were getting...
 
Old 12-19-2007, 05:40 PM   #14
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
I would still recommend trying to change the repos to ftp.us.debian.org. It looks like the Oregon State repos either have a problem in general or don't have Sarge lists at all (probably not every mirror has the old stable lists and packages). Try this:
Code:
deb http://ftp.us.debian.org/debian/ oldstable main
deb-src http://ftp.us.debian.org/debian/ oldstable main

deb http://security.debian.org/ oldstable/updates main
Then try to do an update and upgrade and see how it looks.

A further question is what is your larger goal? Are you just checking for security updates (after a very long time)? Are you adding a few packages? The only reason that I ask is that depending on the server and situation, you may eventually want to move to Etch. Obviously however if it ain't broke, many people would rather leave a server as is.
 
Old 12-21-2007, 03:39 PM   #15
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I changed that but I'm still getting the same error.

Actually the reason I'm trying to do the updates is because I'm installing Webmin and it's failing on dependencies. http://www.webmin.com

I get this:
webcaf:~# apt-get install perl libnet-ssleay-perl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Reading Package Lists... Done
Building Dependency Tree... Done
libpam-runtime is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
perl: Depends: perl-base (= 5.8.4-8sarge6) but 5.8.4-8sarge5 is to be installed
Depends: perl-modules (>= 5.8.4-8sarge6) but 5.8.4-8sarge5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Last edited by xxsubz78x; 12-21-2007 at 03:43 PM.
 
  


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
Trying to Upgrade. Keep getting "Failed to fetch... randell6564 Ubuntu 2 05-02-2007 09:29 PM
apt-get Failed to fetch...Size mismatch noeffort Linux - Software 2 03-24-2007 02:55 PM
Sarge - Failed to Fetch fester225 Debian 7 02-16-2005 02:37 PM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
samba :Failed to fetch domain database : NT_STATUS_ACCESS_DENIED sanjayid Linux - Networking 1 12-31-2003 07:05 AM


All times are GMT -5. The time now is 02:06 AM.

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