ChenSammi commented on PR #6587:
URL: https://github.com/apache/ozone/pull/6587#issuecomment-2208465040
Looks like the problem is
```
> [om 2/15] RUN sudo yum install -y openssh-clients openssh-server:
#0 0.519 Loaded plugins: fastestmirror, ovl
#0 0.783 Determining fastest mirrors
#0 1.328 Could not retrieve mirrorlist
http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=os&infra=container
error was
#0 1.328 14: curl#6 - "Could not resolve host: mirrorlist.centos.org;
Unknown error"
#0 1.338
#0 1.338
#0 1.338 One of the configured repositories failed (Unknown),
#0 1.338 and yum doesn't have enough cached data to continue. At this point
the only
#0 1.338 safe thing yum can do is fail. There are a few ways to work "fix"
this:
#0 1.338
#0 1.338 1. Contact the upstream for the repository and get them to fix
the problem.
#0 1.338
#0 1.338 2. Reconfigure the baseurl/etc. for the repository, to point
to a working
#0 1.338 upstream. This is most often useful if you are using a newer
#0 1.338 distribution release than is supported by the repository
(and the
#0 1.338 packages for the previous distribution release still work).
#0 1.338
#0 1.338 3. Run the command with the repository temporarily disabled
#0 1.338 yum --disablerepo=<repoid> ...
#0 1.338
#0 1.338 4. Disable the repository permanently, so yum won't use it by
default. Yum
#0 1.338 will then just ignore the repository until you permanently
enable it
#0 1.338 again or use --enablerepo for temporary usage:
#0 1.338
#0 1.338 yum-config-manager --disable <repoid>
#0 1.338 or
#0 1.338 subscription-manager repos --disable=<repoid>
#0 1.338
#0 1.338 5. Configure the failing repository to be skipped, if it is
unavailable.
#0 1.338 Note that yum will try to contact the repo. when it runs
most commands,
#0 1.338 so will have to try and fail each time (and thus. yum will
be be much
#0 1.338 slower). If it is a very temporary problem though, this is
often a nice
#0 1.338 compromise:
#0 1.338
#0 1.338 yum-config-manager --save
--setopt=<repoid>.skip_if_unavailable=true
#0 1.338
#0 1.338 Cannot find a valid baseurl for repo: base/7/aarch64
------
failed to solve: process "/bin/sh -c sudo yum install -y openssh-clients
openssh-server" did not complete successfully: exit code: 1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]