LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-15-2003, 12:58 PM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
problems with apt-get


# apt-get update
0% [Connecting to ayo.freshrpms.net (193.1.219.82)]

Err http://ayo.freshrpms.net redhat/7.3/i386 release
Could not connect to ayo.freshrpms.net:80 (193.1.219.82), connection timed out [IP: 193.1.219.82 80]


is the error i get when i try to run "apt-get update". i'm new to the apt-get and just downloaded it. this is the first thing i've tried before i was going to run "apt-get upgrade kernel.....rpm. if anyone has any help or suggestions with this problem or upgrading with apt-get please help. thnx......

i went ahead and ran apt-get upgrade and this is what i got.

# apt-get upgrade kernel-2.4.20-24.7.i386.rpm
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 removed and 0 not upgraded.


i dont' know what this means either.

Last edited by wedgeworth; 12-15-2003 at 01:04 PM.
 
Old 12-15-2003, 09:40 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
Are you behind a firewall? If so, does it allow ftp through? Is there a proxy involved? If you know the firewall or proxy isn't the problem, check the /etc/apt/sources.list file and add a couple more sources, maybe one ftp and one http. There are additional sources listed at apt.freshrpms.net or through a google search.
 
Old 12-16-2003, 08:49 AM   #3
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
# incoming http/https
-A input -d 0/0 http -p tcp -j ACCEPT
-A input -d 0/0 https -p tcp -j ACCEPT


# return from outgoing http/https
-A input -s 0/0 http -p tcp -j ACCEPT
-A input -s 0/0 https -p tcp -j ACCEPT


# return from outgoing ftp
-A input -s 0/0 ftp -p tcp -j ACCEPT

sorry, i'm still trying to get a handle on the ipchains/firewall stuff....will the above inable http and ftp's to work?

also the sources.list...how do we edit it? one of the lines already in the file is:

rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms

is the format this?

<what connection is looking for> <url> <description>

or can i just start adding url's to the sources.list flie?at the moment i just want to add three url's where the source file looks like.....


# Red Hat Linux 7.3
rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
http://valhalla.freshrpms.net
http://www.nongnu.org/synaptic/
http://sourceforge.net/projects/apt4rpm


but i don't know if that will work. plus i also don't know how i would use mirror's in the source file. (would i just stick a link to them in the file like anyother link?) anyway, any help would be appreciated on more url's for my source file (if these don't work) or any other suggestions... i'd appreciate. thnx guys.....

Last edited by wedgeworth; 12-16-2003 at 09:28 AM.
 
Old 12-16-2003, 03:14 PM   #4
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
i can't even get apt-cache show package to work. when i try i get this.


# apt-cache show kernel-2.4.20-24.7.i386.rpm
W: Unable to locate package kernel-2.4.20-24.7.i386.rpm


why isn't this working...is it b/c of the problems i'm still having? (see post above this one)
 
Old 12-16-2003, 05:36 PM   #5
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Quote:
Originally posted by wedgeworth
i can't even get apt-cache show package to work. when i try i get this.


# apt-cache show kernel-2.4.20-24.7.i386.rpm
W: Unable to locate package kernel-2.4.20-24.7.i386.rpm


why isn't this working...is it b/c of the problems i'm still having? (see post above this one)
Apt-cache show is a command to get pkg info on the latest specs for a particular pkg header. If you are unable to update the headers (which is what apt-get update does) then it doesn't even know that there is a new kernel out there. You must get apt-get update to run first. Please post your EXACT sources.list as it appears in the /etc/apt directory.

Also to insure that apt is installed properly to begin with see if you get output from:

apt-cache search gaim
 
Old 12-17-2003, 07:46 AM   #6
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
# List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
#
# See http://ayo.freshrpms.net/ for a list of other repositories and mirrors.
#
# $Id: sources.list,v 1.8 2003/04/16 09:59:58 dude Exp $

# Red Hat Linux 9
#rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms

# Red Hat Linux 8.0
#rpm http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms

# Red Hat Linux 7.3
rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
#http://valhalla.freshrpms.net
#http://www.nongnu.org/synaptic/
#http://sourceforge.net/projects/apt4rpm

# Red Hat Linux 7.2
#rpm http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms

# Red Hat Linux 7.1
#rpm http://ayo.freshrpms.net redhat/7.1/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/7.1/i386 powertools dma
#rpm-src http://ayo.freshrpms.net redhat/7.1/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.1/i386 powertools dma

# Red Hat Linux 7.0
#rpm http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/7.0/i386 powertools dma
#rpm-src http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.0/i386 powertools dma

# Red Hat Linux 6.2
#rpm http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/6.2/i386 powertools
#rpm-src http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/6.2/i386 powertools


--------------------------------------


that is my exact sources.list as it appears in /etc/apt. it is basically as installed. i've added 3 lines under 7.3 (what i'm running) but have them commented out b/c i didn't exactly know the syntax.

and

i get no output with "apt-cache search gaim" command....

# apt-cache search gaim
#

Last edited by wedgeworth; 12-17-2003 at 07:54 AM.
 
Old 12-17-2003, 10:52 AM   #7
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Ok comment out the rpm-src and try to run apt-get update again. Those other 3 under 7.3 will not work as they are. We'll get to that. If if there is a pkg that you know you have try: apt-cache search <that_pkg_name>. Post back.
 
Old 12-17-2003, 11:21 AM   #8
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
# apt-get update
0% [Connecting to ayo.freshrpms.net (193.1.219.82)]
Err http://ayo.freshrpms.net redhat/7.3/i386 release
Could not connect to ayo.freshrpms.net:80 (193.1.219.82), connection timed out [IP: 193.1.219.82 80]



still getting the same error. don't know why. do i just need some more entries... surely not just for some update command. if i was having problems upgrading maybe, but just a normal update (be it ever limited b/c of only one link) should atleast connect and try......

anymore ideas? i can't even get around to trying apt-cache commands, or trying to use apt for upgrades (kernel and php updates to be more specific as well as others) until i get this working.

Last edited by wedgeworth; 12-17-2003 at 11:23 AM.
 
Old 12-17-2003, 04:24 PM   #9
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well It looks like the syntax of your sources.list file is right. I am not sure what is causing your problem. Either, your apt is corrupt, your rpm (the program) is corrupt or you are having proxie problems. Can you ping ayo.freshrpms.net?
 
Old 12-17-2003, 04:30 PM   #10
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
the rpm has nothing to do with just running a simple cache or update....if the problem was just in the upgrade i might think it was a problem with the rpm.....also i can ping ayo.freshrpms.net no problem, and i took the apt right off the freshrpm's site. all i did was just run rpm -U or something similar to the that on the apt files....

apt-0.5.5cnc5-fr0.rh73.2.i386.rpm
apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm
apt-0.5.5cnc5-fr0.rh73.2.src.rpm


is there some sort of set up or config i've forgotten to setup or download or tweek? i'm kinda running out of options since i haven't done much too it...just trying to get the basics done...and i can ping the site no problem....anyway, thnx for your help. anymore is appreciated....
 
Old 12-17-2003, 04:37 PM   #11
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Well I had not determined your rpm program was fine as you said you would not run cache search until you had the other stuff figured out.

You did not need to RPM in the lower 2 rpms from freshrpms. The devel and the src rpms are for other matters not the endusre of apt. try this:

rpm -e apt

see if that gets rid of apt.

then re-d/l the rpm (JUST THE FIRST ONE) and issue:

#rpm Uvh apt*

and try to run apt-get update again.
 
Old 12-18-2003, 08:36 AM   #12
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok it wouldn't let me "rpm -e apt" saying:

# rpm -e apt
error: removing these packages would break dependencies:
apt = 0.5.5cnc5-fr0.rh73.2 is needed by apt-devel-0.5.5cnc5-fr0.rh73.2


of couse when i tried to remove the devel file that was giving the dependencies i got this:

rpm -e apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm
error: package apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed


which kinda confused me as to why it would give dependencies if it wasn't installed. anyway, this is starting to get annoying. i went ahead, though i don't know why it would work, and rm -r the apt file (apt-0.5.5cnc5-fr0.rh73.2.i386.rpm) and redownloaded and ran this:

rpm Uvh apt-0.5.5cnc5-fr0.rh73.2.i386.rpm
RPM version 4.0.4
Copyright (C) 1998-2000 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm {--help}


this unfortunately didn't allow me to be able to "apt-get update", i was still getting the same error.

0% [Connecting to ayo.freshrpms.net (193.1.219.82)]
Err http://ayo.freshrpms.net redhat/7.3/i386/os release
Could not connect to ayo.freshrpms.net:80 (193.1.219.82), connection timed out [IP: 193.1.219.82 80]


sorry man, i'm starting to run out of options here. again though i'm appreciating this help you are giving me.....anything else we can do?

Last edited by wedgeworth; 12-18-2003 at 08:48 AM.
 
Old 12-18-2003, 10:15 AM   #13
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
.....also (see above post) i've learned that this happens.

# dpkg -l
bash: dpkg: command not found


i know this isn't suppose to happen. is this telling me something is not working/present that is required for all this over to be working. ?????
 
Old 12-18-2003, 10:36 AM   #14
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well dpkg is not included in the rpm port...it is a debian (or .deb option)

Try to put a star after apt..like rpm -e apt*
 
Old 12-18-2003, 10:41 AM   #15
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
# rpm -e apt*
error: package apt-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed
error: package apt-0.5.5cnc5-fr0.rh73.2.src.rpm is not installed
error: package apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed


what does that mean?
 
  


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
apt-get problems curly08 Ubuntu 4 05-06-2005 03:51 AM
apt-get problems PDD Linux - Software 1 11-11-2004 05:44 AM
apt-get problems PDD Linux - Software 3 10-26-2004 07:02 AM
I am having APT problems UncleAnt Conectiva 1 10-15-2004 12:04 AM
apt-get problems ibrewale Debian 4 06-30-2004 01:30 PM


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