curl is broken

This is an example of the error I receive when trying to do an update via
YaST, YaST2, or zypper. Basically, curl is broken. With out it functioning
normally, I can’t use openSUSE’s update mechanism to fix my system. Need to
find a way to manually fix / upgrade curl.

Any ideas?

TIA

There was an error in the repository initialization.
‘Updates-for-openSUSE-11.4-11.4-0’: |] Valid metadata not found at
specified URL(s)
History:

Download (curl) error for
http://download.opensuse.org/update/11.4/repodata/repomd.xml’:
Error code: Connection failed
Error message: Couldn’t resolve host ‘download.opensuse.org

== curl version ==

acct@host:~> rpm -qa | grep curl
libcurl4-32bit-7.21.2-9.1.x86_64
curl-7.21.2-9.1.x86_64
libcurl4-7.21.2-9.1.x86_64


Harv

Hello and welcome to our community

As I see the problem is in openSUSE-update repository
Try to use different mirror for that

Here they are my repositories

# | Alias                            | Name                             | Enabled | Refresh | Priority | Type   | URI                                                               | Service
--+----------------------------------+----------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------+--------
1 | Packman Repository               | Packman Repository               | Yes     | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_11.4/                       |        
2 | Updates-for-openSUSE-11.4-11.4-0 | Updates for openSUSE 11.4 11.4-0 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/                         |        
3 | libdvdcss repository             | libdvdcss repository             | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/11.4/                              |        
4 | openSUSE-11.4-11.4-0             | openSUSE-11.4-11.4-0             | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-_NEC_DVD_RW_ND-3520AW,/dev/sr0 |        
5 | repo-debug                       | openSUSE-11.4-Debug              | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.4/repo/oss/    |        
6 | repo-debug-update                | openSUSE-11.4-Update-Debug       | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/11.4/                   |        
7 | repo-non-oss                     | openSUSE-11.4-Non-Oss            | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/      |        
8 | repo-oss                         | openSUSE-11.4-Oss                | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/          |        
9 | repo-source                      | openSUSE-11.4-Source             | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.4/repo/oss/   |

Try also a

# zypper refresh

and send the output here.

On 04/20/2011 05:26 PM, Harv wrote:
>
> Any ideas?
> Error code: Connection failed
> Error message: Couldn’t resolve host ‘download.opensuse.org

its not curl problem, it is a DNS problem…

change your repo address
from > http://download.opensuse.org/update/11.4/
to > http://195.135.221.134/update/11.4/

it should work…of course, i don’t know why the DNS failed for that,
and still lets you post to the forum… strange! maybe curl is broken!


CAVEAT: http://is.gd/bpoMD
[openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
A Penguin Being Tickled - http://www.youtube.com/watch?v=0GILA0rrR6w

On 2011-04-20 17:26, Harv wrote:
> Error message: Couldn’t resolve host ‘download.opensuse.org

You have a DNS problem. So, you have to prove that only curl has that problem.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Can you post the result of


zypper lr -d

On 04/21/2011 07:06 AM, colao wrote:
> Can you post the result of
>
> zypper lr -d
>

just for my own education i wonder if you would explain how that output
might impact the ability to solve this DNS problem…


CAVEAT: http://is.gd/bpoMD
[openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
A Penguin Being Tickled - http://www.youtube.com/watch?v=0GILA0rrR6w

>
> Can you post the result of
>
> Code:
> --------------------
>
> zypper lr -d
>
> --------------------
>
>

zypper lr -d

| Alias | Name |

Enabled | Refresh | Priority | Type | URI
| Service
–±---------------------------------±---------------------------------±--------±--------±---------±-------±-----------------------------------------------------------------------±-------
1 | Updates-for-openSUSE-11.4-11.4-0 | Updates for openSUSE 11.4 11.4-0 |
Yes | Yes | 99 | rpm-md |
http://download.opensuse.org/update/11.4/ |
2 | openSUSE-11.4-11.4-0 | openSUSE-11.4-11.4-0 |
Yes | No | 99 | yast2 | cd:///?devices=/dev/disk/by-id/ata-
TSSTcorp_DVD+_-RW_TS-L632H,/dev/sr0 |
3 | repo-debug | openSUSE-11.4-Debug |
Yes | Yes | 99 | yast2 |
http://download.opensuse.org/debug/distribution/11.4/repo/oss/ |
4 | repo-debug-update | openSUSE-11.4-Update-Debug |
Yes | Yes | 99 | rpm-md |
http://download.opensuse.org/debug/update/11.4/ |
5 | repo-non-oss | openSUSE-11.4-Non-Oss |
Yes | Yes | 99 | yast2 |
http://download.opensuse.org/distribution/11.4/repo/non-oss/ |
6 | repo-oss | openSUSE-11.4-Oss |
Yes | Yes | 99 | yast2 |
http://download.opensuse.org/distribution/11.4/repo/oss/ |
7 | repo-source | openSUSE-11.4-Source |
Yes | Yes | 99 | yast2 |
http://download.opensuse.org/source/distribution/11.4/repo/oss/ |

> just for my own education i wonder if you would explain how that output
> might impact the ability to solve this DNS problem…

the weird part is that when I move the laptop to a different location, curl
now resolves download.opensuse.org correctly & I receive updates … so
maybe it was DNS.

interestingly, Midori works at home when Firefox doesn’t; but at the second
location, both work.


Harv

Harv wrote:
> interestingly, Midori works at home when Firefox doesn’t; but at the
> second location, both work.
>
Can you check in Firefox if it is set to use the system settings for the
proxy? If yes can you check which settings in the kde control center are
used for the proxy?
I am not familiar with Midori (I know that it is a browser but that’s it) so
I ask: Is there a similar setting in Midori which differs from that?
This should give a hint what the problem might be if one works always and
the other sometimes not.
I had to change myself once the setting in the kde control center to “Direct
connection” instead of “automatic detection” to make some applications work,
so it is possible you have something similar here.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

I just saw this and I noticed that Curl does not properly resolve DNS addresses using secondary DNS in YAST2 if the primary DNS is down. Firefox however does correctly resolve using secondary DNS. This probably is a CURL bug. My stupid corporate VPN resets the DNS in resolv.conf . . . and doesn’t set it back

Hello.

When I tried to update an openSuSe 13.1 server I faced the resolving problem reported in the present thread.

I was connecting to the server from another pc on the LAN, through an ssh shell.

I was also trying to update that server by syncing repository definitions on another openSuSe pc (exporting and importing to a definitions file).

What I had overlooked was that before, on that server, and through yast (ncurses) I had changed some network definitions on it, namely, I had set up the server to have a static ip address, but I did not set the DNS servers addresses for that connection.

So… I googled… and I ended up in here. After setting its DNS settings all was ok.

Thank you!

We’re glad that you were helped. Thanks for the feedback.