Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

New in FreeNAS - unable to do pkg update

Joined
Sep 13, 2016
Messages
6
Hi,
When I'm trying to do a pkg update I'm getting an error
Code:
[root@freenas] ~# pkg update
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local

I looked on the internet for an answer but I couldn't find any.
Please help me.
 
Last edited by a moderator:

snaptec

FreeNAS Experienced
Joined
Nov 30, 2015
Messages
502
dns and gateway set ?
please open a shell and post the output of
netstat -nr
and from
dig google.com
 
Last edited by a moderator:
Joined
Sep 13, 2016
Messages
6
yes they are set
netstat:
Code:
[root@freenas] ~# netstat -nr
Routing tables

Internet:
Destination		Gateway			Flags	  Netif Expire
default			192.168.0.1		UGS		 em0
127.0.0.1		  link#2			 UH		  lo0
192.168.0.0/24	 link#1			 U		   em0
192.168.0.103	  link#1			 UHS		 lo0

Internet6:
Destination					   Gateway					   Flags	  Netif																																							  Expire
::/96							 ::1						   UGRS		lo0
::1							   link#2						UH		  lo0
::ffff:0.0.0.0/96				 ::1						   UGRS		lo0
fe80::/10						 ::1						   UGRS		lo0
fe80::%lo0/64					 link#2						U		   lo0
fe80::1%lo0					   link#2						UHS		 lo0
ff01::%lo0/32					 ::1						   U		   lo0
ff02::/16						 ::1						   UGRS		lo0
ff02::%lo0/32					 ::1						   U		   lo0

dig google:
Code:
[root@freenas] ~# dig google.com

; <<>> DiG 9.10.4-P1 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63806
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.					IN	  A

;; ANSWER SECTION:
google.com.			 299	 IN	  A	   213.57.23.39
google.com.			 299	 IN	  A	   213.57.23.49
google.com.			 299	 IN	  A	   213.57.23.20
google.com.			 299	 IN	  A	   213.57.23.45
google.com.			 299	 IN	  A	   213.57.23.50
google.com.			 299	 IN	  A	   213.57.23.25
google.com.			 299	 IN	  A	   213.57.23.40
google.com.			 299	 IN	  A	   213.57.23.24
google.com.			 299	 IN	  A	   213.57.23.54
google.com.			 299	 IN	  A	   213.57.23.34
google.com.			 299	 IN	  A	   213.57.23.35
google.com.			 299	 IN	  A	   213.57.23.44
google.com.			 299	 IN	  A	   213.57.23.59
google.com.			 299	 IN	  A	   213.57.23.29
google.com.			 299	 IN	  A	   213.57.23.55
google.com.			 299	 IN	  A	   213.57.23.30

;; Query time: 83 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jan 17 02:40:54 PST 2017
;; MSG SIZE  rcvd: 295
 
Last edited by a moderator:

m0nkey_

FreeNAS Expert
Joined
Oct 27, 2015
Messages
2,736
It is not possible to update or install packages within the FreeNAS base OS. FreeNAS is an appliance and should be treated as such.

If you want to install custom software, you do this in a jail. This is covered in the documentation.
 
Joined
Sep 13, 2016
Messages
6
i did not know that thank you
but this is what happen when i want to pkg update inside a jail
Code:
root@Mysql_db:/ # pkg update
Updating FreeBSD repository catalogue...
Repository FreeBSD has a wrong packagesite, need to re-create database
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: No address record
Unable to update repository FreeBSD

 

nojohnny101

FreeNAS Expert
Joined
Dec 3, 2015
Messages
1,455
What are you trying to do exactly? Why type of jail did you create?
 
Joined
Sep 13, 2016
Messages
6
i want to install apache mysql and phpmyadmin inside this jail
i gave this jail an IP address and dfault gateway
 

wblock

Documentation Engineer
Administrator
Moderator
iXsystems
Joined
Nov 14, 2014
Messages
1,397
In the jail, set up DNS in /etc/resolv.conf.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
5,897
In the jail, set up DNS in /etc/resolv.conf.
That will get reset with what the GUI has configured won't it?

Sent from my Nexus 5X using Tapatalk
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
5,897
Please provide your hardware specs and freenas version. This is required for all new threads. The url in the error resolves just fine on my machine but you say dns is working so one of us is wrong.
 
Joined
Aug 23, 2018
Messages
8
It is not possible to update or install packages within the FreeNAS base OS. FreeNAS is an appliance and should be treated as such.
Thanks, I was trying to mount an NTFS USB drive to copy some data off it and was having all sorts of problems.
But we I read your comment, I changed my thinking about it, had a look around the web interface and low and behold theres an option to import the disk!
Some I'm trying that now....

I'm guessing I'll then be able copy the data off and detach the disk.
 
Top