LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   apt-get package management problem (https://www.linuxquestions.org/questions/red-hat-31/apt-get-package-management-problem-562309/)

fatsheep 06-16-2007 05:19 PM

apt-get package management problem
 
I'm posting here on behalf of an administrator who has a Red Hat Enterprise Linux server. Apparently the server has apt-get installed, I'm suspecting what's being used is apt-rpm. Basically, his sources.list file is incorrect so trying to update or install packages results in an error. Here is a log of commands I asked him to run and show the output of:

Code:

simetrical@loki [~]# cat /etc/apt/sources.list
rpm http://apt.ev1servers.net apt/redhat/enterprise_3/en/i386 os updates extras
simetrical@loki [~]# sudo apt-get update
simetrical, please enter your password:
Err http://apt.ev1servers.net apt/redhat/enterprise_3/en/i386 release
  Could not connect to apt.ev1servers.net:80 (207.218.223.167). - connect (113 No route to host)
0% [Connecting to apt.ev1servers.net (207.218.223.167)]
simetrical@loki [~]# sudo apt-get 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:
  MyODBC: Depends: libmysqlclient.so.10 but it is not installable
  MySQL-python: Depends: libmysqlclient.so.10 but it is not installable
  bandmin: Depends: perl(bandmin.conf) but it is not installable
          Depends: perl(bmversion.pl) but it is not installable
          Depends: perl(services.conf) but it is not installable
  libdbi-dbd-mysql: Depends: libmysqlclient.so.10 but it is not installable
  perl-CPAN: Depends: perl (>= 2:5.8.0-88.9) but 2:5.8.0-88.4 is installed
  perl-DBD-MySQL: Depends: libmysqlclient.so.10 but it is not installable
  php-mysql: Depends: libmysqlclient.so.10 but it is not installable
E: Unmet dependencies. Try using -f.
simetrical@loki [~]#

For more information you can refer to our conversation in this topic: http://www.twcenter.net/forums/showt...t=90714&page=3. Any help or pointers would be greatly appreciated.

x_terminat_or_3 06-16-2007 06:29 PM

Seems it is not a local problem, but something to do with the box you are trying to connect to.

A traceroute from here to the host, cannot see anything past the 4th node - of which 3 of them are local routers...

kalimero 06-17-2007 03:39 AM

If you think sources.list is incorrect you should try to put another repository in file.Not sure about apt-rpm but on Debian exists tool netselect-apt which can automatic set your repositories.
Of course backup your /etc/apt/sources.list first and replace it with new file which netselect-apt made and do apt-get update and check result.
Maybe documentaion can help you
http://apt-rpm.org/docs.shtml

jmb2112 06-20-2007 08:37 PM

Yep, just add a valid repository and that should do it.

Better yet - use yum. :D


All times are GMT -5. The time now is 02:39 PM.