Solved Problem about pkg

Hi,
I try update pkg, and get below error, what's the problem?
 

Attachments

  • Capture.JPG
    Capture.JPG
    23.2 KB · Views: 327
A "No address record" error is usually a DNS issue. Make sure you have the correct DNS servers configured in /etc/resolv.conf.
 
Welcome to FreeBSD and the forums. The "no address record" error indicates that your FreeBSD machine has not been able to connect to a domain name server. Did you configure /etc/resolv.conf? There is information on name resolution in section 12.8.2 of the FreeBSD handbook.

Alternatively, you may have a firewall configured on your host system (in your screenshot it looks like you might be using a virtual machine) or on your network that is blocking DNS queries (or indeed all traffic) from your FreeBSD machine. Have you tested that you can connect to your router (with ping(8) for example)?

You can use drill(1)* to test you can connect to your resolving name server and that it is working (for example drill www.freebsd.org @192.168.1.1, substituting the IP address for your name server's IP address).

*Edited to correct man section for drill(1) from 8 to 1.
 
It's solved, thanks a lot.

I got another error when I install vsftpd
Code:
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'vsftpd' have been found in the repositories
 
Last edited by a moderator:
Back
Top