Leap 15 - Unable to receive update from 2 repositories

Hello All,

I had to reformat my PC due to an ugly update fiasco (thanks M$).

Long story short, I now have Win 10 and Leap 15 dual booted via UEFI. I have switched to NetworkManagement after Leap was installed, and now it can’t update/install package properly.

The Error :

absusedesk:~ # zypper ref
Repository 'Google-Chrome' is up to date.                                                                                                                                                                                                                                      
**Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/media.1/media':
Error code: Curl error 8
Error message: 

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository Main Repository (NON-OSS) permanently? [yes/no] (no): 
Skipping repository 'Main Repository (NON-OSS)' because of the above error.**
Repository 'Update Repository (Non-Oss)' is up to date.                                                                                                                                                                                                                        
Repository 'Update Repository (DEBUG)' is up to date.                                                                                                                                                                                                                          
**Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.0/repo/oss/media.1/media':
Error code: Curl error 8
Error message: 

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository Main Repository (OSS) permanently? [yes/no] (no): 
Skipping repository 'Main Repository (OSS)' because of the above error.**
Repository 'Main Update Repository' is up to date.                                                                                                                                                                                                                             
Some of the repositories have not been refreshed because of an error.

So apparently, the issue is with these two URLs and other repos seem to be working. (I was able to install google-chrome-stable).
If I open the URLs separately via a web browser, they work -

http://download.opensuse.org/distrib…/media.1/media

openSUSE - openSUSE-Leap-15.0-Addon-NonOss-FTP-x86_64-Build267.2-Media
openSUSE-Leap-15.0-Addon-NonOss-FTP-x86_64-Build267.2
1

http://download.opensuse.org/distrib…/media.1/media

openSUSE - openSUSE-Leap-15.0-Addon-NonOss-FTP-x86_64-Build267.2-Media
openSUSE-Leap-15.0-Addon-NonOss-FTP-x86_64-Build267.2
1

What I have attempted:

  1. I attempted switching to network.service (network managed by yast). Problem with these two repos persisted. So we’re back to NetworkManager.
  2. I have previously seen similar update error in Opensuse which was due to DNS issue. So I have turned NETCONFIG_DNS_POLICY=‘’ in /etc/sysconfig/network/config and provided few IPs in /etc/resolv.conf. No change
  3. Followed this and turned off IPV6. No change.
  4. Followed this and double checked the Repo URLs. Seems correct.

My repositories are -

absusedesk:~ # zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                           | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+---------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | Google-Chrome                   | Google-Chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                      |        
 2 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/        |        
 3 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/non-oss/                   |        
 4 | download.opensuse.org-oss       | Update Repository (DEBUG)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.0/oss                  |        
 5 | download.opensuse.org-oss_1     | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/            |        
 6 | download.opensuse.org-oss_2     | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/oss                        |        
 7 | openSUSE-Leap-15.0-1            | openSUSE-Leap-15.0-1                    | No      | ----      | ----    |   99     | rpm-md | hd:///?device=/dev/disk/by-id/usb-hp_v100w_QWE07926-0:0-part1            |        
 8 | repo-debug                      | openSUSE-Leap-15.0-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/oss/      |        
 9 | repo-debug-non-oss              | openSUSE-Leap-15.0-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/non-oss/  |        
10 | repo-debug-update-non-oss       | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/non-oss/             |        
11 | repo-source                     | openSUSE-Leap-15.0-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/oss/     |        
12 | repo-source-non-oss             | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/non-oss/ |        

OS info -

absusedesk:~ # uname -a ; cat /etc/os-release 
Linux absusedesk.example.com 4.12.14-lp150.12.4-default #1 SMP Tue May 22 05:17:22 UTC 2018 (66b2eda) x86_64 x86_64 x86_64 GNU/Linux
NAME="openSUSE Leap"
VERSION="15.0"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.0"
PRETTY_NAME="openSUSE Leap 15.0"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.0"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

The error “Error code: Curl error 8” is consistent whether an update is attempted from zypper, Yast or PackageKit(system Tray icon).
Any idea how I can fix this ?

I don’t have a good handle on this, but can you please try the following?

# rm -rf  /var/cache/zypp
# zypper up

I have tried cleaning zypper cache already The issue pops up as soon as the metadata are rebuilt.
Please see below. I have added timestamp.


absusedesk:~ # date;** rm -rf /var/cache/zypp/* **
Wed Jul 25 10:16:04 IST 2018
absusedesk:~ # zypper ref
Retrieving repository 'Google-Chrome' metadata .......................................................................................................................................................................................................................................................................[done]
Building repository 'Google-Chrome' cache ............................................................................................................................................................................................................................................................................[done]
Retrieving repository 'nVidia Graphics Drivers' metadata .............................................................................................................................................................................................................................................................[done]
Building repository 'nVidia Graphics Drivers' cache ..................................................................................................................................................................................................................................................................[done]
**Retrieving repository 'Main Repository (NON-OSS)' metadata** ...........................................................................................................................................................................................................................................................[done]
**Building repository 'Main Repository (NON-OSS)' cache** ................................................................................................................................................................................................................................................................[done]
Retrieving repository 'Update Repository (Non-Oss)' metadata .........................................................................................................................................................................................................................................................[done]
Building repository 'Update Repository (Non-Oss)' cache ..............................................................................................................................................................................................................................................................[done]
Retrieving repository 'Update Repository (DEBUG)' metadata ...........................................................................................................................................................................................................................................................[done]
Building repository 'Update Repository (DEBUG)' cache ................................................................................................................................................................................................................................................................[done]
**Retrieving repository 'Main Repository (OSS)' metadata **...............................................................................................................................................................................................................................................................[done]
**Building repository 'Main Repository (OSS)' cache** ....................................................................................................................................................................................................................................................................[done]
Retrieving repository 'Main Update Repository' metadata ..............................................................................................................................................................................................................................................................[done]
Building repository 'Main Update Repository' cache ...................................................................................................................................................................................................................................................................[done]
**All repositories have been refreshed.   **                                                                                                                                                                                                                                                                                    
absusedesk:~ # date; zypper ref
Wed Jul 25 10:17:13 IST 2018                                                                                                                                                                                                                                                                                                
Repository 'Google-Chrome' is up to date.                                                                                                                                                                                                                                                                                   
Repository 'nVidia Graphics Drivers' is up to date.                                                                                                                                                                                                                                                                         
**Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/media.1/media':                                                                                                                                                                                                                 
Error code: Curl error 8                                                                                                                                                                                                                                                                                                    
Error message:                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                            
Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository Main Repository (NON-OSS) permanently? [yes/no] (no): 
Skipping repository 'Main Repository (NON-OSS)' because of the above error. **                                                                                                                                                                                                                                                
Repository 'Update Repository (Non-Oss)' is up to date.                                                                                                                                                                                                                                                                     
Repository 'Update Repository (DEBUG)' is up to date.                                                                                                                                                                                                                                                                       
**Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.0/repo/oss/media.1/media':                                                                                                                                                                                                                     
Error code: Curl error 8                                                                                                                                                                                                                                                                                                    
Error message:                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                            
Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository Main Repository (OSS) permanently? [yes/no] (no): 
Skipping repository 'Main Repository (OSS)' because of the above error.                             **                                                                                                                                                                                                                        
Repository 'Main Update Repository' is up to date.                                                                                                                                                                                                                                                                          
Some of the repositories have not been refreshed because of an error.                                             

Try a mirror:
https://mirrors.opensuse.org/

download.opensuse.org is a redirector, so maybe a mirror helps.

Hi Sauerland,

Thanks for the tip.

Just so that I know what needs to be done, should I just edit the repo files (/etc/zypp/repos.d/) and update the baseurl of OSS from

http://download.opensuse.org/distribution/leap/15.0/repo/oss/ 

to something like this ?

http://mirror.isoc.org.il/pub/opensuse/distribution/leap/15.0/repo/oss/

and ditto for non-oss…

I have updated my repositories as follows -

absusedesk:~ # zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                           | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                    | Service
---+---------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------------------------+--------
 1 | download.nvidia.com-leap        | nVidia Graphics Drivers                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.0                                         |        
 2 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.rz.uni-wuerzburg.de/pub/linux/opensuse/distribution/leap/15.0/repo/non-oss/ |        
 3 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://mirror.isoc.org.il/pub/opensuse/distribution/leap/15.0/repo/non-oss/            |        
 4 | download.opensuse.org-oss       | Update Repository (DEBUG)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.0/oss                                |        
 5 | download.opensuse.org-oss_1     | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://mirror.isoc.org.il/pub/opensuse/distribution/leap/15.0/repo/oss/                |        
 6 | download.opensuse.org-oss_2     | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/oss                                      |        
 7 | google-chrome                   | google-chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                    |        
 8 | openSUSE-Leap-15.0-1            | openSUSE-Leap-15.0-1                    | No      | ----      | ----    |   99     | rpm-md | hd:///?device=/dev/disk/by-id/usb-hp_v100w_QWE07926-0:0-part1                          |        
 9 | repo-debug                      | openSUSE-Leap-15.0-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/oss/                    |        
10 | repo-debug-non-oss              | openSUSE-Leap-15.0-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/non-oss/                |        
11 | repo-debug-update-non-oss       | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/non-oss/                           |        
12 | repo-source                     | openSUSE-Leap-15.0-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/oss/                   |        
13 | repo-source-non-oss             | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/non-oss/               |        

I just installed lynx via zypper and it worked fine. However PackageKit is still spewing errors. Will keep this thread updated.

You can do as you have done it, but I would prefer the old ones, disable them and add the new ones…

I think the Reposerver to which you are directed by download.opensuse.org is out of sync…

Okay ,successfully updated libzimg2 via packagekit. The mirror is working. :slight_smile:

@Sauerland,
yes I just hashed the old ones. Thanks again.

[how do I mark it “resolved” ?]

We don’t generally do that here, but reflecting it in the title as you did what is often suggested. :slight_smile: