Zypper won't download any packages

Zypper seems unable to reach the openSUSE servers. I am currently on a network that may or may not block certain traffic, so I don’t know if their firewall is in the way. I am able to browse the web without any problems. Sometimes Zypper downloads proceed eventually, but the download is doggone slow. I did this:

pdedecker@linux-qhij:~/Desktop> sudo zypper up
^CDownload (curl) error for 'http://download.opensuse.org/source/distribution/11.4/repo/oss/content':
Error code: User abort
Error message: Callback aborted

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

Apparently Zypper has trouble downloading this URI, but if I open it in Chrome it loads perfectly without any problems. How can I find the root of this problem?

Can’t tell much from the output you’ve posted other than that you aborted the process manually. However, if this seems to be the only repo that’s giving you a problem, you can safely disable it. Most people don’t need the source code. Show the output of

zypper lr -d
#  | Alias                                   | Name                                    | Enabled | Refresh | Priority | Type   | URI                                                                                                 | Service
---+-----------------------------------------+-----------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------------------------------+--------
 1 | Emulators:Wine                          | Emulators:Wine                          | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/Emulators:/Wine/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 | devel:languages:haskell:platform-2010.2 | devel:languages:haskell:platform-2010.2 | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/haskell:/platform-2010.2/openSUSE_11.4/ |        
 4 | ftp-ftp.uni-erlangen.de-732a8715        | Packman                                 | Yes     | No      |   99     | rpm-md | ftp://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_11.4/                                   |        
 5 | games                                   | games                                   | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_11.4/                                      |        
 6 | google-chrome                           | google-chrome                           | Yes     | No      |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                                 |        
 7 | home:garloff:Webcam                     | home:garloff:Webcam                     | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/home:/garloff:/Webcam/openSUSE_Factory/                   |        
 8 | libdvdcss repository                    | libdvdcss repository                    | Yes     | No      |   99     | rpm-md | http://opensuse-guide.org/repo/11.4/                                                                |        
 9 | openSUSE-11.4-11.4-0                    | openSUSE-11.4-11.4-0                    | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-hp_DVD_RW_AD-7586H_SHA1905895,/dev/sr0                           |        
10 | openSUSE-11.4-OssopenSUSE-11.4-Oss      | openSUSE-11.4-OssopenSUSE-11.4-Oss      | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss                                             |        
11 | openSUSE:11.4:Contrib                   | openSUSE:11.4:Contrib                   | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/                         |        
12 | openSUSE:11.4:NonFree                   | openSUSE:11.4:NonFree                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                                        |        
13 | openSUSE:Factory:Contrib                | openSUSE:Factory:Contrib                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/standard/                      |        
14 | openSUSE_11.4                           | ATI                                     | Yes     | No      |   99     | rpm-md | http://linux.ioda.net/mirror/ati/openSUSE_11.4/                                                     |        
15 | repo-debug                              | openSUSE-11.4-Debug                     | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.4/repo/oss/                                      |        
16 | repo-debug-update                       | openSUSE-11.4-Update-Debug              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/11.4/                                                     |        
17 | repo-non-oss                            | openSUSE-11.4-Non-Oss                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                                        |        
18 | repo-oss                                | openSUSE-11.4-Oss                       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                                            |        
19 | repo-source                             | openSUSE-11.4-Source                    | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/11.4/repo/oss/                                     |        

Please try

su -
rpmdb --rebuilddb

The update process still appears to be blocked.

linux-qhij:~ # rpmdb --rebuilddb
linux-qhij:~ # exit
logout
pdedecker@linux-qhij:~/Desktop> sudo zypper up
root's password:

What happens if you start
Yast > Online Update

You could try

su -
zypper clean --all

and is it the same if you do

su -
zypper up

On 07/09/2011 09:36 AM, pdedecker wrote:
>
> pdedecker@linux-qhij:~/Desktop> sudo zypper up

don’t use sudo, instead become root with “su -” then use zipper


DD
-Caveat-Hardware-Software-

It takes a really long time for the repositories to update and then I see the “Patches” screen. I’m still getting the same results if I use su - and clean the repo information first using zypper clean --all.

It takes a really long time for the repositories to update and then I see the “Patches” screen.
And can you run the patches?

I can download updates, but everything is painstakingly slow until the moment when the update packages start downloading.

Do you mean, they actually download normally?

On 07/09/2011 09:36 AM, pdedecker wrote:


>    #  | Alias                                   | Name                                    | Enabled | Refresh | Priority | Type   | URI                                                                                                 | Service
>    ---+-----------------------------------------+-----------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------------------------------+--------
>     1 | Emulators:Wine                          | Emulators:Wine                          | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/Emulators:/Wine/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 | devel:languages:haskell:platform-2010.2 | devel:languages:haskell:platform-2010.2 | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/haskell:/platform-2010.2/openSUSE_11.4/ |
>     4 | ftp-ftp.uni-erlangen.de-732a8715        | Packman                                 | Yes     | No      |   99     | rpm-md | ftp://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_11.4/                                   |
>     5 | games                                   | games                                   | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_11.4/                                      |
>     6 | google-chrome                           | google-chrome                           | Yes     | No      |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                                 |
>     7 | home:garloff:Webcam                     | home:garloff:Webcam                     | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/home:/garloff:/Webcam/openSUSE_Factory/                   |
>     8 | libdvdcss repository                    | libdvdcss repository                    | Yes     | No      |   99     | rpm-md | http://opensuse-guide.org/repo/11.4/                                                                |
>     9 | openSUSE-11.4-11.4-0                    | openSUSE-11.4-11.4-0                    | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-hp_DVD_RW_AD-7586H_SHA1905895,/dev/sr0                           |
>    10 | openSUSE-11.4-OssopenSUSE-11.4-Oss      | openSUSE-11.4-OssopenSUSE-11.4-Oss      | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss                                             |
>    11 | openSUSE:11.4:Contrib                   | openSUSE:11.4:Contrib                   | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/                         |
>    12 | openSUSE:11.4:NonFree                   | openSUSE:11.4:NonFree                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                                        |
>    13 | openSUSE:Factory:Contrib                | openSUSE:Factory:Contrib                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/standard/                      |
>    14 | openSUSE_11.4                           | ATI                                     | Yes     | No      |   99     | rpm-md | http://linux.ioda.net/mirror/ati/openSUSE_11.4/                                                     |
>    15 | repo-debug                              | openSUSE-11.4-Debug                     | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.4/repo/oss/                                      |
>    16 | repo-debug-update                       | openSUSE-11.4-Update-Debug              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/11.4/                                                     |
>    17 | repo-non-oss                            | openSUSE-11.4-Non-Oss                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                                        |
>    18 | repo-oss                                | openSUSE-11.4-Oss                       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                                            |
>    19 | repo-source                             | openSUSE-11.4-Source                    | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/11.4/repo/oss/                                     |

what a mess! have you read the paragraph beginning with “IMPORTANT” here
http://tinyurl.com/33qc9vu


DD
-Caveat-Hardware-Software-

The packages do appear to download normally after the enormously long wait for the repository metadata download is over. A few days ago the packages seemed to be downloading at a slow speed as well, but I will retest.

I will throw out unnecessary repositories now. I’ll keep you posted.

I have deleted/disabled some non-essential repositories and I’m down to 13 repositories.

#  | 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 | ftp-ftp.uni-erlangen.de-732a8715   | Packman                            | Yes     | No      |   99     | rpm-md | ftp://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_11.4/              |        
 3 | libdvdcss repository               | libdvdcss repository               | Yes     | No      |   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-hp_DVD_RW_AD-7586H_SHA1905895,/dev/sr0      |        
 5 | openSUSE-11.4-OssopenSUSE-11.4-Oss | openSUSE-11.4-OssopenSUSE-11.4-Oss | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss                        |        
 6 | openSUSE:11.4:Contrib              | openSUSE:11.4:Contrib              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/    |        
 7 | openSUSE:11.4:NonFree              | openSUSE:11.4:NonFree              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                   |        
 8 | openSUSE:Factory:Contrib           | openSUSE:Factory:Contrib           | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/standard/ |        
 9 | repo-debug                         | openSUSE-11.4-Debug                | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.4/repo/oss/                 |        
10 | repo-debug-update                  | openSUSE-11.4-Update-Debug         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/11.4/                                |        
11 | repo-non-oss                       | openSUSE-11.4-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                   |        
12 | repo-oss                           | openSUSE-11.4-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                       |        
13 | repo-source                        | openSUSE-11.4-Source               | No      | No      |   99     | yast2  | http://download.opensuse.org/source/distribution/11.4/repo/oss/                |        

Still no luck.

I made some edits for you. Though changes made here are not going to make it work, but that’s a better repo setup. I would consider doing a zypper dup to bring everything back to original and then put the switch back on Packman.
zypper dup, I would just leave oss, non-oss and updates enabled, when done, reboot. Switch packman back on and then do the switch. Are you Gnome or KDE

I’m not worried about the repository setup as long as all packages keep working smoothly. And to be honest, I don’t have the time to mess with my repository setup right now.

I’m a KDE user. Should I get a Wireshark log to see where things are going wrong? I suspect that certain traffic fails to make it to the server or back to me.

On 2011-07-08 16:06, pdedecker wrote:
>
> Zypper seems unable to reach the openSUSE servers. I am currently on a
> network that may or may not block certain traffic, so I don’t know if
> their firewall is in the way.

You probably have a proxy.

> Apparently Zypper has trouble downloading this URI, but if I open it in
> Chrome it loads perfectly without any problems. How can I find the root
> of this problem?

The user is different, and the proxie configuration is also done
differently for zypper.

Plus: forget “sudo”. Use “su -”. Do not forget the dash!


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 07/11/2011 10:36 PM, pdedecker wrote:
>
> I don’t have the time to mess with my repository setup right now.

heh! if you don’t have time to mess with your repos, i won’t have the
time to try to help you. (and, neither will anyone here who understands
the repo system)

just give reading this one paragraph a try: the paragraph beginning with
“IMPORTANT” here http://tinyurl.com/33qc9vu

there is no reason to believe that your repo mess is not the cause of
your problems.

good luck.


DD
-Caveat-Hardware-Software-