Unable to connect to repositories

Hi, I am brand new to the forum. I’ve been using opensuse for a couple of years, now, but I don’t really know much about linux.

Awhile ago, my opensuse Evergreen (13.1) quit all updates. Yast updater refuses to connect to any repos. If I choose Add and then Community Repos, I get an error that there is no list.

I’m running the 64 version.

If I try zypper ref, I just get

LomasDellV:~ # zypper ref
Retrieving repository 'Packman Repository' metadata -----------------------------------------------------\]
Download (curl) error for 'http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/repodata/repomd.xml':
Error code: Connection failed
Error message: 

Abort, retry, ignore? [a/r/i/? shows all options] (a): 


But not only this repository, every single repository, all the base repositories.

But if I use the browser, I can connect to them all. If I use the above URL, I get the repomd.xml file in the browser window.

I have looked through the forums and searched online.

I tried:

rpm --rebuilddb


Works fine, but no fix problem.

zypper clean --all

Runs as expected, but doesn’t fix connections.

What’s wrong?

Here is output for zypper lr --details:

LomasDellV:~ # zypper lr --details
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type     | URI                                                                    | Service
---+---------------------------+------------------------------------+---------+---------+----------+----------+------------------------------------------------------------------------+--------
 1 | ftp.gwdg.de-suse          | Packman Repository                 | Yes     | Yes     |   99     | rpm-md   | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/               |        
 2 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | No      | No      |   99     | yast2    | cd:///?devices=/dev/disk/by-id/ata-TSSTcorp_DVD+_-RW_TS-H653B,/dev/sr0 |        
 3 | opensuse-guide.org-repo   | libdvdcss repository               | Yes     | Yes     |   99     | rpm-md   | http://opensuse-guide.org/repo/13.1/                                   |        
 4 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes     |   99     | NONE     | http://download.opensuse.org/debug/distribution/13.1/repo/oss/         |        
 5 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes     |   99     | NONE     | http://download.opensuse.org/debug/update/13.1/                        |        
 6 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE     | http://download.opensuse.org/debug/update/13.1-non-oss/                |        
 7 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes     |   99     | yast2    | http://download.opensuse.org/distribution/13.1/repo/non-oss/           |        
 8 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     |   99     | yast2    | http://download.opensuse.org/distribution/13.1/repo/oss/               |        
 9 | repo-source               | openSUSE-13.1-Source               | No      | Yes     |   99     | NONE     | http://download.opensuse.org/source/distribution/13.1/repo/oss/        |        
10 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/13.1/                              |        
11 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/13.1-non-oss/                      |        
12 | teamviewer_on_hd          | teamviewer on hd                   | No      | No      |   99     | plaindir | dir:///data/fbell_it_lnx/teamviewer                                    |        


I also tried this way and it still fails

LomasDellV:~ # zypper lr --details
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type     | URI                                                                    | Service
---+---------------------------+------------------------------------+---------+---------+----------+----------+------------------------------------------------------------------------+--------
 1 | ftp.gwdg.de-suse          | Packman Repository                 | No      | No      |   99     | rpm-md   | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/               |        
 2 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | No      | No      |   99     | yast2    | cd:///?devices=/dev/disk/by-id/ata-TSSTcorp_DVD+_-RW_TS-H653B,/dev/sr0 |        
 3 | opensuse-guide.org-repo   | libdvdcss repository               | No      | No      |   99     | rpm-md   | http://opensuse-guide.org/repo/13.1/                                   |        
 4 | repo-debug                | openSUSE-13.1-Debug                | No      | No      |   99     | NONE     | http://download.opensuse.org/debug/distribution/13.1/repo/oss/         |        
 5 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | No      |   99     | NONE     | http://download.opensuse.org/debug/update/13.1/                        |        
 6 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | No      |   99     | NONE     | http://download.opensuse.org/debug/update/13.1-non-oss/                |        
 7 | repo-non-oss              | openSUSE-13.1-Non-Oss              | No      | No      |   99     | yast2    | http://download.opensuse.org/distribution/13.1/repo/non-oss/           |        
 8 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     |   99     | yast2    | http://download.opensuse.org/distribution/13.1/repo/oss/               |        
 9 | repo-source               | openSUSE-13.1-Source               | No      | No      |   99     | NONE     | http://download.opensuse.org/source/distribution/13.1/repo/oss/        |        
10 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/13.1/                              |        
11 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | No      | No      |   99     | rpm-md   | http://download.opensuse.org/update/13.1-non-oss/                      |        
12 | teamviewer_on_hd          | teamviewer on hd                   | No      | No      |   99     | plaindir | dir:///data/fbell_it_lnx/teamviewer                                    |        


After I disabled all the repositories except two, I tried this

LomasDellV:~ # zypper -v ref
Verbosity: 1
Initializing Target
Specified repositories: 
Skipping disabled repository 'Packman Repository'
Skipping disabled repository 'openSUSE-13.1-1.10'
Skipping disabled repository 'libdvdcss repository'
Skipping disabled repository 'openSUSE-13.1-Debug'
Skipping disabled repository 'openSUSE-13.1-Update-Debug'
Skipping disabled repository 'openSUSE-13.1-Update-Debug-Non-Oss'
Skipping disabled repository 'openSUSE-13.1-Non-Oss'
Checking whether to refresh metadata for openSUSE-13.1-Oss
Retrieving: media ...................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/media.1/media':
Error code: Connection failed
Error message: 

Abort, retry, ignore? [a/r/i/? shows all options] (a): a
Retrieving repository 'openSUSE-13.1-Oss' metadata ..................................................[error]
Repository 'openSUSE-13.1-Oss' is invalid.
|] Valid metadata not found at specified URL
History:
 - ABORT request: Aborting requested by user
 - Can't provide /media.1/media

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-13.1-Oss' because of the above error.
Skipping disabled repository 'openSUSE-13.1-Source'
Checking whether to refresh metadata for openSUSE-13.1-Update
Retrieving: repomd.xml.asc ..........................................................................[error]
Retrieving: repomd.xml.key ..........................................................................[error]
Retrieving: repomd.xml ..............................................................................[error]
Download (curl) error for 'http://download.opensuse.org/update/13.1/repodata/repomd.xml':
Error code: Connection failed
Error message: 

Abort, retry, ignore? [a/r/i/? shows all options] (a): a
Retrieving repository 'openSUSE-13.1-Update' metadata ...............................................[error]
Repository 'openSUSE-13.1-Update' is invalid.
|] Valid metadata not found at specified URL
History:
 - ABORT request: Aborting requested by user
 - Can't provide /repodata/repomd.xml

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-13.1-Update' because of the above error.
Skipping disabled repository 'openSUSE-13.1-Update-Non-Oss'
Skipping disabled repository 'teamviewer on hd'
Could not refresh the repositories because of errors.


Ahh. One of the neighbours I mentioned in another thread, I believe. Hi, Mr. Lomas.

For information purposes, this person is my exact next door neighbour, just a wall separates our units!

Note that I also run Evergreen and that I am not experiencing any of the issues, for any of you real pros at operating zyppers lol! who might want to try to help out.

LOL!!!

Not different ISP’s in use? Add some debug and force the cache to rebuild;


zypper -vvv ref -f

Just tried that, same errors with that command.

Yes, same provider, Shaw internet.

Hi, Gerry, did not bother you because of your broken wrist and ankle. I am worried about Firefox updates especially because as you know I mainly just do my Facebook stuff.

You may be connecting to a mirror that is out of sync. Try (temporarily) stipulating a specific mirror instead of the “download.opensuse.org” pool.

I am not familiar with the Canadian mirrors, but this is an English one that was working this morning:
http://anorien.csc.warwick.ac.uk/download.opensuse.org/update/13.1

Thanks for helping, malcolmlewis. Gerry told me today I should still post the output for you even though I think it is the same.
Here it is.

zypper -vvv ref -f

See the first post. I don’t know much Linux but what Gerry showed me and I learned by searching. I can’t do that without easy to follow instructions.

Also, Gerry says it is not likely that problem, since he is right next door, same internet provider, same opensuse. He has not troubles like that.

If you tell me how though I’ll try it. He isn’t around right now and he says it couldnt hurt.

I forgot to say Gerry said it is odd when I go to repositories in Yast and try to add one and click community repositories I a message that says Warning Unable to download list of repositories or no repositories defined. He said even if the mirror is out of sync I should still get a list of community repositories.

Hi
When was the last time you rebooted your internet router?

Are you both using the same dns servers? Since your ip addresses are different you could (probably) be going out different ways to the internet as well.

Both do a traceroute and compare…


/usr/sbin/traceroute 8.8.8.8

It has to be a server issue, i’ll be watching in hopes of helping :slight_smile:

Hi, Malcolm:

Great minds think alike, I guess.rotfl!

I have been thinking about this since last night, and I decided that it was some kind of server issue, perhaps DNS. I just got home a few minutes ago & saw what lomascan was trying to do. I thought that, hey, we are neighbours. Easiest test?

I had him bring his computer over to my place and connected him through my router. This certainly would allow me to see if he is being redirected to a bad mirror, I thought.

I was right. Once connected, the first test – Yast, Software Repositories, Add, Community Repos – and this time the list popped up. I checked his repos, enabled the proper ones, allowed them all to refresh.

He is currently being updated by the Yast Updater as I post this.

Once complete, I will go over to his place, check the settings in his router, check the DNS settings on his machine (actually, this I will do and compare to mine before he takes his PC back to his place), and then test if the repos are reachable from his place.

I will post back here when I know the results.

But, obviously, bad redirection of some sort!

Hi Jerry
My ISP (cableone) DNS servers are flaky at times (Fixed in the gateway router), I use fixed IP addresses on my systems and set them all to use openDNS servers either via NM or Wicked.

Good luck with your tests, I think a reboot of the router should help…

If it was nameserver resolution the mere fact of turning the machine off to move it would have cleared its resolver cache , so you may never find out with certainty. The outer may also be caching NS lookups.

Good suggestion, except that I have him trained to shut off his machine and shut off the router and cable modem at the end of each day. So, cannot be that (also covers the suggestion by the person below). I tend to use a specific list of DNS servers after running tests, rather than those assigned by the ISP. I will set his router and networkmanager for that, using the same DNS servers I am using, perhaps it will be the solution.

Of course, I will let you know.

Not tonight, though … he was anxious to get back on Facebook. :stuck_out_tongue:

… thanks, but see above. Machine is cold booted every day.

Done. :slight_smile:

I was just over at lomascan’s place, set his router DNS, then put additional servers in Network Manager. Tested the repo connection and all works as it is supposed to.

The only thing I do not know is if his IP address has changed in the meantime, so that might be another possibility.

For any of you who want a more informed way to choose DNS Servers, I suggest you try out the tool from Gibson Research, DNS Benchmark.

It runs under Windows & Linux. In Linux, if you double-click on the DNSBenchmark.exe file, it will launch under Wine (of course, you need Wine installed first). Just follow the directions, and additional reading is at their website. I use it all the time and it gives me speedier and more reliable access to the internet. Give it a try.

You can get the utility here:
https://www.grc.com/dns/benchmark.htm