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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-15-2003, 01:58 PM
|
#1
|
Member
Registered: Aug 2003
Posts: 234
Rep:
|
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 02:04 PM.
|
|
|
12-15-2003, 10:40 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
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.
|
|
|
12-16-2003, 09:49 AM
|
#3
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
# 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 10:28 AM.
|
|
|
12-16-2003, 04:14 PM
|
#4
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
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)
|
|
|
12-16-2003, 06:36 PM
|
#5
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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
|
|
|
12-17-2003, 11:52 AM
|
#7
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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.
|
|
|
12-17-2003, 12:21 PM
|
#8
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
# 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 12:23 PM.
|
|
|
12-17-2003, 05:24 PM
|
#9
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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?
|
|
|
12-17-2003, 05:30 PM
|
#10
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
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....
|
|
|
12-17-2003, 05:37 PM
|
#11
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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.
|
|
|
12-18-2003, 09:36 AM
|
#12
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
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 09:48 AM.
|
|
|
12-18-2003, 11:15 AM
|
#13
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
.....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. ?????
|
|
|
12-18-2003, 11:36 AM
|
#14
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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*
|
|
|
12-18-2003, 11:41 AM
|
#15
|
Member
Registered: Aug 2003
Posts: 234
Original Poster
Rep:
|
# 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?
|
|
|
All times are GMT -5. The time now is 01:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|