Error message
No package nginx available
Error:Nothing to do
solution:
method one,
replacement source
backup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Run Yum Makecache to generate the cache
Method 2:
use EPEL to install nginx:
sudo yum install epel-release
yum update
yum install nginx
Read More:
- Error: nothing to do in centos7’s Yum installation
- Error reporting in CentOS 7 using yum
- Linux uses open source Yum to report error performing checksums
- File contains no section headers. File: File: / / etc/ yum.repos .d/
- Alicloud CentOS 5 old version yum/ repomd.xml : [Errno 14] HTTP Error 404: Not Found
- CentOS uses Yum install to report errors
- How to Fix yum Install Error Loaded plugins: fastestmirror, refresh-packagekit, security
- Use yum to prompt Error: rpmdb open failed
- One of the configured repositories failed (Unknown), and yum doesn’t have enough cached data to cont
- Yum error: cannot retrieve repository metadata( repomd.xml )For repository solution
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- Fedora 14 yum Error: Cannot retrieve repository metadata (repomd.xml) for repository
- What to do if you repeatedly format a cluster
- What to do when idea Maven package appears could not find artifact xxxxx!
- Why do we not need to write implementation classes in mybatis to get the objects we need
- How do I download or save a YouTube video to my computer?
- Prompt error: rpmdb open failed using yum
- Do you want to get fired? Let’s take a look at the programmer’s resignation tips
- C language program running results flash back how to do
- Solution to Linux error loading mirror speeds from cached hostfile