Bird
0
0

You run yum install httpd but get an error: Could not resolve host: httpd. What is the likely cause?

medium📝 Debug Q6 of 15
Linux CLI - Package Management
You run yum install httpd but get an error: Could not resolve host: httpd. What is the likely cause?
AThe system has no internet connection or DNS issue
BYou typed the command incorrectly; 'httpd' is not a hostname
Chttpd package is already installed
Dyum is not installed on the system
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    Could not resolve host means the system cannot translate a hostname, indicating network or DNS problems.
  2. Step 2: Relate error to yum usage

    yum tries to reach repositories online. Without internet or DNS, it cannot resolve repo hosts, causing this error.
  3. Final Answer:

    The system has no internet connection or DNS issue -> Option A
  4. Quick Check:

    Network/DNS issues cause 'Could not resolve host' errors [OK]
Quick Trick: Check network and DNS if yum says 'Could not resolve host' [OK]
Common Mistakes:
  • Thinking 'httpd' is a hostname
  • Assuming package installed causes error
  • Believing yum missing causes this error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes