Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centOS does not support downloading java and installing it since 31st Dec, 2021 #54

Open
arvipDev opened this issue Mar 16, 2022 · 1 comment

Comments

@arvipDev
Copy link

Hi Shankar,

Brilliant course so far, learning a lot.
I would like to inform you that running yum install java -y in the Dockerfile throws the follows error -
Error - "Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist"
The mirror appears to be broker since centOS stopped supporting
CentOS Linux 8 had reached the End Of Life (EOL)](https://www.centos.org/centos-linux-eol/) on December 31st, 2021. It means that CentOS 8 will no longer receive development resources from the official CentOS project.

Can you please provide a workaround for this.

Thanks in advance.

@arvipDev
Copy link
Author

SOLUTION -
We should add the following command to convert centOS Linux 8 to centOS Stream
RUN dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos -y
RUN dnf distro-sync -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant