LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   dependency errors and failed to fetch (https://www.linuxquestions.org/questions/debian-26/dependency-errors-and-failed-to-fetch-607873/)

xxsubz78x 12-19-2007 10:19 AM

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?

pljvaldez 12-19-2007 11:29 AM

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.

xxsubz78x 12-19-2007 12:35 PM

I don't have an apt folder under /etc.

pljvaldez 12-19-2007 01:05 PM

That's weird. That's the standard location on any debian system. Try running cat /etc/apt/sources.list.

farslayer 12-19-2007 01:23 PM

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..

xxsubz78x 12-19-2007 01:47 PM

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

pljvaldez 12-19-2007 01:53 PM

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.

Telemachos 12-19-2007 02:04 PM

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.

pljvaldez 12-19-2007 03:10 PM

Quote:

Originally Posted by Telemachos (Post 2996085)
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...

xxsubz78x 12-19-2007 03:27 PM

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#

pljvaldez 12-19-2007 03:41 PM

What does your sources.list look like now?

xxsubz78x 12-19-2007 03:51 PM

#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

pljvaldez 12-19-2007 04:02 PM

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...

Telemachos 12-19-2007 05:40 PM

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.

xxsubz78x 12-21-2007 03:39 PM

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).


All times are GMT -5. The time now is 04:30 PM.