"sudo zypper install docker" error

Hi Experts
I have installed SUSE. But I execute the " sudo zypper install docker" command . There is following error now .

https://blogs.sap.com/2021/02/22/install-abap-platform-developer-edition-1909-using-vm-and-suse/ (it is my tutorial)
https://answers.sap.com/storage/attachments/1936462-klqof.png

Some questions:

(1) Have you installed SUSE or openSUSE?
(2) Are you talking about Leap 15.2 or Leap 15.3?

There appears to be some ambiguity there. You selected “Leap 15.3” as version, but your error messages are all about the Leap 15.2 repos.

And I’ll note: perhaps you tried this at a moment when the repo site was having difficulties. Simplest would be to wait a few minutes and try again.

openSUSE-Leap-15.2-DVD-x86_64.iso is my mirror.
I may downoad suse 15.3 ? Thanks

I try to do it .But it failed .My version is openSUSE15.2. Is it the network issue ?

If you installed Opensuse from the 15.2 .iso and never upgraded you are still on 15.2. That’s fine, no reason to upgrade to 15.3 yet.

If I read your blog the problem seems to be solved.

As there it seems now to be clear that this is about 15.2, I will change the prefix.

And @beyond911, you are welcome here, but please be precise in what you tell people here. So not “SUSE” when you mean “openSUSE” and not “15.3” when you mean “15.2”. Every character counts!

And, because of your badly readable image, there is a better way to post your computer text here:
There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

Regards,

The blog is not mine. I don’t solve it . I think I will change soruce. I don’t know how to change it . Can you help me ? My server is in the China.

Being in China, can you try from your browser http://download.opensuse.org/?

If that works, try also http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml

That last link gives from me (currently) in Firefox:

https://susepaste.org/images/79567386.png

If that does not work you are probably blocked by a firewall, please check if another mirror works.

I have changed the download address. there is same error. Can you help me ?
I can access the link.

https://answers.sap.com/storage/attachments/1934566-qq图片20210510094441.png

I ping it . The network is normal. the network is ok ?

https://answers.sap.com/storage/attachments/1934569-qq图片20210510100201.png

Okay, no problem accessing the link from your browser, that is good.

Some further questions:

  • What does “sudo zypper ref” do for you? Does it exit without errors?
  • You write “I can access the link.” does that means that you can access both links that I gave using the browser? Do you see that XML data?
  • Try also running curl from the command prompt with additional logging and post the output here. For example:
$ curl -v -o /tmp/repomd.xml http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current 
                                 Dload  Upload   Total   Spent    Left  Speed 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 195.135.221.134:80... 
* Connected to download.opensuse.org (195.135.221.134) port 80 (#0) 
> GET /update/leap/15.2/oss/repodata/repomd.xml HTTP/1.1 
> Host: download.opensuse.org 
> User-Agent: curl/7.76.1 
> Accept: */* 
>  
* Mark bundle as not supporting multiuse 
< HTTP/1.1 200 OK 
< Date: Mon, 10 May 2021 06:59:30 GMT 
< Server: Apache/2.4.43 (Linux/SUSE) 
< Last-Modified: Sun, 09 May 2021 22:09:47 GMT 
< ETag: "c4c-5c1eceb4c45d0" 
< Accept-Ranges: bytes 
< Content-Length: 3148 
< Cache-Control: must-revalidate 
< Expires: Mon, 10 May 2021 06:59:30 GMT 
< Vary: Accept-Encoding 
< X-Content-Type-Options: nosniff 
< Content-Security-Policy: default-src 'none'; img-src 'self' https://static.opensuse.org; style-src 'self' https://static.opensuse.org; script-src 'self' https://static.opensuse.org 'unsafe-inline' 
< Content-Type: text/xml 
<  
{ [796 bytes data] 
100  3148  100  3148    0     0  30862      0 --:--:-- --:--:-- --:--:-- 30862 
* Connection #0 to host download.opensuse.org left intact 

$ head /tmp/repomd.xml 
<?xml version="1.0" encoding="UTF-8"?> 
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm"> 
  <revision>1620598108</revision> 
  <tags> 
    <content>update</content> 
    <repo>obsrepository://build.opensuse.org/openSUSE:Leap:15.2:Update/standard</repo> 
    <repo>obsbuildid:1567777374</repo> 
  </tags> 
  <data type="primary"> 
    <location href="repodata/37e4119cad51624fede0daabe448e471a5fc1402db90f1722847f9b6bd33877b-primary.xml.gz" />


1. When I execute sudo zypper ref , the error is following:
harry@localhost:~> sudo zypper ref
[sudo] password for root:
Retrieving repository ‘main’ metadata …[error]
Repository ‘main’ is invalid.
[main|Index of /pub/opensuse/discontinued/distribution/11.3/repo/oss/suse/] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘main’ because of the above error.
Retrieving repository ‘nonoss’ metadata …[error]
Repository ‘nonoss’ is invalid.
[nonoss|http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘nonoss’ because of the above error.
Repository ‘openSUSE-Leap-15.2-1’ is up to date.
Problem retrieving files from ‘Non-OSS Repository’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer

Please see the above error message for a hint.
Skipping repository ‘Non-OSS Repository’ because of the above error.
Problem retrieving files from ‘Main Repository’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer

Please see the above error message for a hint.
Skipping repository ‘Main Repository’ because of the above error.
Problem retrieving files from ‘Main Update Repository’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer

Please see the above error message for a hint.
Skipping repository ‘Main Update Repository’ because of the above error.
Problem retrieving files from ‘Update Repository (Non-Oss)’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.2/non-oss/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer

Please see the above error message for a hint.
Skipping repository ‘Update Repository (Non-Oss)’ because of the above error.
Retrieving repository ‘upate’ metadata …[error]
Repository ‘upate’ is invalid.
[upate|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘upate’ because of the above error.
Retrieving repository ‘update’ metadata …[error]
Repository ‘update’ is invalid.
[update|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘update’ because of the above error.
Some of the repositories have not been refreshed because of an error.
harry@localhost:~>

2.When I browse http://download.opensuse.org/update/…ata/repomd.xml
The following error is :
**Resource is no longer available!
3. when I execute curl command.
*harry@localhost:~> curl -v -o /tmp/repomd.xml http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
Trying 195.135.221.134:80…

  • TCP_NODELAY set
  • Connected to download.opensuse.org (195.135.221.134) port 80 (#0)
    > GET /update/leap/15.2/oss/repodata/repomd.xml HTTP/1.1
    > Host: download.opensuse.org
    > User-Agent: curl/7.66.0
    > Accept: /
    >
  • Recv failure: Connection reset by peer
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
  • Closing connection 0
    curl: (56) Recv failure: Connection reset by peer
    harry@localhost:~>

Please re-read post #6 above re CODE tags.

**1. When I execute sudo zypper ref , the error is following:


harry@localhost:~> sudo zypper ref
[sudo] password for root:
Retrieving repository 'main' metadata ............................................................................................................................................................[error]
Repository 'main' is invalid.
[main|["]http://ftp5.gwdg.de/pub/opensuse/dis...repo/oss/suse]](http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse) Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse'
- Download (curl) error for 'http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.3/repo/oss/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'main' because of the above error.
Retrieving repository 'nonoss' metadata ..........................................................................................................................................................[error]
Repository 'nonoss' is invalid.
[nonoss|["]http://download.opensuse.org/distrib...non-oss/suse/]](http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/) Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/'
- Download (curl) error for 'http://download.opensuse.org/distribution/11.3/repo/non-oss/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'nonoss' because of the above error.
Repository 'openSUSE-Leap-15.2-1' is up to date.
Problem retrieving files from 'Non-OSS Repository'.
Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer


Please see the above error message for a hint.
Skipping repository 'Non-OSS Repository' because of the above error.
Problem retrieving files from 'Main Repository'.
Download (curl) error for 'http://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer


Please see the above error message for a hint.
Skipping repository 'Main Repository' because of the above error.
Problem retrieving files from 'Main Update Repository'.
Download (curl) error for 'http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer


Please see the above error message for a hint.
Skipping repository 'Main Update Repository' because of the above error.
Problem retrieving files from 'Update Repository (Non-Oss)'.
Download (curl) error for 'http://download.opensuse.org/update/leap/15.2/non-oss/repodata/repomd.xml':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer


Please see the above error message for a hint.
Skipping repository 'Update Repository (Non-Oss)' because of the above error.
Retrieving repository 'upate' metadata ...........................................................................................................................................................[error]
Repository 'upate' is invalid.
[upate|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/update/11.3/suse'
- Download (curl) error for 'http://download.opensuse.org/update/11.3/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'upate' because of the above error.
Retrieving repository 'update' metadata ..........................................................................................................................................................[error]
Repository 'update' is invalid.
[update|http://download.opensuse.org/update/11.3/suse] Valid metadata not found at specified URL
History:
- |] Error trying to read from 'http://download.opensuse.org/update/11.3/suse'
- Download (curl) error for 'http://download.opensuse.org/update/11.3/suse/content':
Error code: Curl error 56
Error message: Recv failure: Connection reset by peer




Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'update' because of the above error.
Some of the repositories have not been refreshed because of an error.
harry@localhost:~>

**2.When I browse http://download.opensuse.org/update/…ata/repomd.xml
The following error is :
**Resource is no longer available!
3. when I execute curl command.


harry@localhost:~> curl -v -o /tmp/repomd.xml [http://download.opensuse.org/update/...ata/repomd.xml](http://download.opensuse.org/update/leap/15.2/oss/repodata/repomd.xml)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 195.135.221.134:80...
* TCP_NODELAY set
* Connected to download.opensuse.org (195.135.221.134) port 80 (#0)
> GET /update/leap/15.2/oss/repodata/repomd.xml HTTP/1.1
> Host: download.opensuse.org
> User-Agent: curl/7.66.0
> Accept: */*
>
* Recv failure: Connection reset by peer
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
harry@localhost:~>


Thanks for the reply with all requested data

All 3 things you tried point at the connection being somehow broken, maybe because of the Great Firewall/防火长城 ?

If I click this link my browser will show something like the .XML I posted earlier.

As an alternative: I see there are some mirrors in China.
If you can also not open that mirrors page, try changing the http://download.opensuse.org/ part of the link into https://mirrors.bfsu.edu.cn/opensuse/ or NJU Mirror

When I execute curl -v -o /temp/repomd.xml https://mirrors.bfsu.edu.cn/opensuse/update/leap/15.2/oss/repodata/ . The error is following . But I can access it
by firefox. Are there dns issue ?


curl: (6) Could not resolve host: mirros.bfsu.edu.cn

I don’t know why no one has pointed this out but his repositories are all wrong - he’s trying to use 11.3 repos.

First order of business, please copy paste the output of;

cat /etc/os-release

If this fails, use;

cat /etc/SuSE-release

Which will tell us what your distribution really is.

Then we’ll go from there.

Good catch, yes I overlooked that.

Yes, based on the output of what zypper ref gave you are still on 11.3 but by answering the questions from @Miuku we know for sure.
If you are still on 11.3 it is I think best to do a fresh install of 15.2, you seem to have the .iso already (“openSUSE-Leap-15.2-DVD-x86_64.iso is my mirror.”)



harry@localhost:~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.2"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.2"
PRETTY_NAME="openSUSE Leap 15.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
harry@localhost:~> 



Now how to do it ?