question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2nd Ed, PDF p35, 'package' command has yum servers issue (CentOS 8 EOL)

See original GitHub issue

On p35 of 2nd Ed.: ansible app -b -m package -a "name=git state=present"

192.168.57.4 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
    "rc": 1,
    "results": []
}
192.168.57.5 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
    "rc": 1,
    "results": []
}

Servers created as CentOS8s.

In the machine:

[vagrant@orc-app1 ~]$ sudo yum update -y
CentOS Linux 8 - AppStream                                          152  B/s |  38  B     00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Stackexchange suggests this is a resolv.conf issue, but even replacing resolv.conf with

nameserver 8.8.8.8
nameserver 8.8.4.4

Same error results.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
geerlingguycommented, Feb 3, 2022

This seems to be the result of CentOS 8’s EOL. At some point I may switch the examples to Rocky Linux 8 instead. (Yet another effect of the CentOS 8 rug-pull, grr…).

This seems to have started happening within the past week.

0reactions
geerlingguycommented, Apr 15, 2022

I have these references fixed in the manuscript. I hope to have an update out tonight!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix dnf after CentOS 8 went EOL - GetPageSpeed
It's the year 2022 and RedHat has stopped the development of CentOS 8 by removing packages from its primary servers.
Read more >
CentOS 8 is end-of-life: Now what? - Puppet
centos8migrate::to_centos_vault This task will update YUM repos to point to the CentOS 8 vault so you can update to the last available updates....
Read more >
Failing to run yum update in CentOS 8 - Server Fault
It is for archived community version of their primary OS, the very same community version that was made EOL in favor of CentOS...
Read more >
Extra Packages for Enterprise Linux (EPEL) - Fedora Docs
NOTE for CentOS users: You can install EPEL by running yum install epel-release. The package is included in the CentOS Extras repository, enabled...
Read more >
2.5.1 Installing MySQL on Linux Using the MySQL Yum ...
The MySQL Yum repository for Oracle Linux, Red Hat Enterprise Linux, CentOS, and Fedora provides RPM packages for installing the MySQL server, client, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found