Wget, curl, Yum :it was [Strange things in Yum]]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





-------- Messaggio Originale --------

Antonio Montagnani wrote / ha scritto on /il 14/02/2006 14:26:
Paul Howarth ha scritto / wrote  il / on 14/02/2006 13:35:
Antonio Montagnani wrote:
Paul Howarth wrote / ha scritto on /il 14/02/2006 09:53:

On Tue, 2006-02-14 at 09:37 +0100, Antonio Montagnani wrote:
Paul Howarth wrote / ha scritto on /il 14/02/2006 09:08:
On Tue, 2006-02-14 at 08:58 +0100, Antonio Montagnani wrote:
Paul Howarth wrote / ha scritto on /il 14/02/2006 08:33:
On Mon, 2006-02-13 at 18:19 +0100, Antonio Montagnani wrote:
Baseurl(s) for repo: ['http://download.fedora.redhat.com/pub/fedora/linux/core/4 /i386/os/'] http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/repodata/repom d.xml: [Errno 4] IOError: <urlopen error (2, 'No such file or directory')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

...

Trying typing "env" immediately before running yum (i.e. as root) and see if there are any environment settings with names including "proxy".

Paul.


Paul

no proxy at env command!!!
And Synaptic is running o.k.

Does:

wget
http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/repodata/repomd.xml

(that's one line)

create a repomd.xml file in your current directory on this machine?

$ wget
http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/repodata/repomd.xml--08:07:38-- http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/repodata/repomd.xml
           => `repomd.xml'
Resolving download.fedora.redhat.com... 66.187.224.20, 209.132.176.20,
209.132.176.220, ...
Connecting to download.fedora.redhat.com|66.187.224.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,140 (1.1K) [text/xml]

100%[===============================================================>]
1,140         --.--K/s

08:07:39 (8.93 KB/s) - `repomd.xml' saved [1140/1140]

Paul.




and of course from another computer on same network, wget works.


But what about on the one where you're having problems?

Paul.


You have missed my previous e-mail :-)
No, it doesn't work.This is the output......

[root@Contec antoniomontagnani]# wget http://download.fedora.redhat.com/pub/fedo ra/linux/core/4/i386/os/repodata/repomd.xml --09:13:47-- http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/ repodata/repomd.xml
         => `repomd.xml'
Risoluzione di download.fedora.redhat.com in corso... fallito: No such file or d irectory.


Output is in Italian, but fallito means failed!!!

The output from your wget seems to be less verbose than mine. In particular, it doesn't seem to show the "Resolving" and "Connecting" lines. I wonder if DNS resolution is working properly.

If you have bind-utils installed, what's the output of:

$ host download.fedora.redhat.com

Otherwise, try:

# ping download.fedora.redhat.com

Paul.

# host download.fedora.redhat.com
download.fedora.redhat.com has address 209.132.176.221
download.fedora.redhat.com has address 66.187.224.20
download.fedora.redhat.com has address 209.132.176.20
download.fedora.redhat.com has address 209.132.176.220

This is the output of curl command:


curl -v download.fedora.redhat.com
* getaddrinfo(3) failed for download.fedora.redhat.com:80
* Couldn't resolve host 'download.fedora.redhat.com'
* Closing connection #0
curl: (6) Couldn't resolve host 'download.fedora.redhat.com'

This is my iptables file, where eth0 is the internal network and eth1 is the external network to ADSL modem

# Generated by iptables-save v1.2.6a on Fri Feb 21 09:27:33 2003
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE
# Forward HTTP connections to Squid proxy
-A PREROUTING -p tcp -m tcp -i eth0 --dport 80 -j REDIRECT --to-ports 3128
COMMIT
# Completed on Fri Feb 21 09:27:33 2003
# Generated by iptables-save v1.2.6a on Fri Feb 21 09:27:33 2003
*mangle
:PREROUTING ACCEPT [9:432]
:INPUT ACCEPT [3:234]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [9:684]
:POSTROUTING ACCEPT [17:1292]
COMMIT
# Completed on Fri Feb 21 09:27:33 2003
# Generated by iptables-save v1.2.6a on Fri Feb 21 09:27:33 2003
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
-A INPUT -p udp -m udp -i eth0 --dport 631 --sport 631 -j ACCEPT
COMMIT
# Completed on Fri Feb 21 09:27:33 2003


Reassuming:

1) synaptic is working and all network including router
2) websurfing and e-mail are o.k on all network
3) yum, wget, curl work fine on all network with the exclusion of the router

Where is my mistake on iptables??? Please note that I am using a trasnparent proxy running on same router (Squid)


--
Antonio M

Skype: antoniomontag

==========================================================
Mail by Thunderbird 1.5 Websurfing by Firefox 1.5
==========================================================
Linux Fedora Core 4 on Maxdata Eco 3200
Linux user number 362582
==========================================================





-

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux