OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: moonmoonbird on October 26, 2020, 04:33:55 AM

Title: pkg install vim error: no address record
Post by: moonmoonbird on October 26, 2020, 04:33:55 AM
after install opnsense, i ran 'pkg install vim', showed messages below:

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating OPNsense repository catalogure...
pkg:https://pkg.opnsense.org/FreeBSD:12:amd64/latest/meta.txz:no address record
repository OPNsense has no meta file, using default settings
pkg:https://pkg.opnsense.org/FreeBSD:12:amd64/latest/packagesite.txz: No address record
Unable to upgrade repository OPNsense
Error updating repositories!


how to install packages on opnsense or what config to rewrite to enable it and how to install linux_base-c7 to enbale IDA to debug it?
Title: Re: pkg install vim error: no address record
Post by: littlepepper on October 26, 2020, 05:51:13 AM
First your opnsense is not resolving DNS correctly. (hence no address record error)

so make sure /etc/resolv.conf has something like name server entry like Quad9 or Cloudflare in there.

Second it is vim-console for vim, also make sure to use sudo if you are not root.
Title: Re: pkg install vim error: no address record
Post by: moonmoonbird on October 26, 2020, 06:50:43 AM
thanks ,after config dns in /etc/resolv.conf, everything is ok. Thanks you very much..