Can't use pkg

Thx for answer I actually run into problem in VBox on windows host I created FreeBSD guest and when I try to install(e.g. pkg) or like portsnap fetch system says it can't find mirror and exits with exit code 1 so what do I have to do to make it running with no problems???
 
Error code 1 is just a generic error. It doesn't tell us anything. Please post the full error message.
 
2016-06-23_08h30_38.png


When try to install yii package from ports folder in
Code:
 /usr/ports

2016-06-23_08h32_49.png






Portsnap fetch result:
portsnap.png


if You need something more just let me know how to do it and You get it :)
 
"No address record" is an indication that your DNS settings are not correct.
 
Your VM probably doesn't have a network connection or your VM is not correctly configured.
 
well there is actually nothing to worry about config of my network I actually have UPC 240Mb/s with no limits. computer connected vie cat6 eth cable, 2 phones via WiFi and laptop via WiFi. Everything set to auto ip via DHCP on my pc and other devices in netwk. And there is a thing that every other linux/BSD(testing out PC-BSD and FreeBSD) VM has connection.
 
Then it's a configuration issue on the VM itself. Does it actually have a network connection? Can you, for example, ping the default gateway? Can you ping the IP address of the DNS server? Does this server actually resolve anything?
 
Then it's a configuration issue on the VM itself. Does it actually have a network connection? Can you, for example, ping the default gateway? Can you ping the IP address of the DNS server? Does this server actually resolve anything?

Yeah 16 out of 16 went in no time to lo0 and I'm not sure where to find dns.Can You tell me how to get it or if ifconfig than which thing I should test??

EDIT: When I use cat /etc/resolv.conf I get:
Code:
nameserver 127.0.0.1
options edns0
 
So your VM is set up to be running its own nameserver. Is it? Apparently not. Is this a preconfigured VM image, or did you set these options? If you set them, why?
 
So your VM is set up to be running its own nameserver. Is it? Apparently not. Is this a preconfigured VM image, or did you set these options? If you set them, why?
actually it was auto configured by os installer and no I actually installed it myself.
 
Post the following outputs:
ifconfig
netstat -rn
cat /etc/resolv.conf
cat /etc/rc.conf
 
netstat.png

rc.conf.png

ifconfig_and_cat_resolv.png



@wblock I used one that is default in fbsd 10.3 and then it entered into internet settings I just used Yes to set both ipv4/v6 via DHCP/SLAAC and that is what I get after using it.
 
Check if you have a file /etc/resolvconf.conf, remove it if found and try the service restart again.

The problem is probably local_unbound messing with the standard /etc/resolv.conf creation from the information provided from DHCP.
 
Check if you have a file /etc/resolvconf.conf, remove it if found and try the service restart again.

The problem is probably local_unbound messing with the standard /etc/resolv.conf creation from the information provided from DHCP.
still the same :( I'm really thinking about going with PC-BSD where everything work with no problem btw.
 
Back
Top