0

this is what is displayed when i uuse the yum command to install or do any other manipulation

Toda, i tried to install samba with yum, but i got an error and a series of instruction which i don't understand because it's the first time i'm working in this environment; the error and instructions are listed in the screenshot

  • 2
    Check internet connection: ping google.com – Tuyen Pham Jan 16 at 4:49
  • unknown service or name – KOOH KOOH Sarah Jan 16 at 5:33
  • Set DNS and routing – Romeo Ninov Jan 16 at 5:38
  • @KOOHKOOHSarah You need to be able to access the internet from your VM so that yum can pull the package details from an online repository. You can do this by adding a NAT network adapter to your VM. Some additional configuration may be required on your guest OS (CentOS) side as well. – Haxiel Jan 16 at 6:45
0
  1. confirm you network is work. You can ping www.google.com or check nerwork config. For example:

    cd /etc/sysconfig/network-scripts

    ls -a enter image description here

    vi ifcfg-enp3s0 enter image description here

set REBOOT argument is yes. then restart the network service network restart.

now. you can reinstall the package.

  • Try running dhclient and check internet access like said in upper comments. If it works, try yum. – Atul Jan 16 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.