pkg update doesn't work on my FreeNAS

Status
Not open for further replies.

Fabbat

Dabbler
Joined
Oct 24, 2013
Messages
46
Hi guys,
I'm not very expert on Freenas so sorry in advance for my potential stupid things that I can say...
I have a Freenas 9.2.1.8 and I'm tring to install Domoticz on it. I found this official guide on how to install it on Freenas. I've created a portjail following the instruction founded here. Then I started with pkg update and this was the result:

root@domotics:/ # pkg update
Updating repository catalogue
digests.txz 100% 2085KB 417.0KB/s 874.9KB/s 00:05
packagesite.txz 100% 5391KB 599.0KB/s 401.2KB/s 00:09
pkg: package field incomplete: comment
Incremental update completed, 24536 packages processed:
0 packages updated, 0 removed and 24536 added.
pkg: Unable to find catalogs

Continuing looking at forum I found this post and I followed the instruction on how to modify the FrreBSD.conf. I tried by replaceing "pkg+http://pkg.FreeBSD.org/${ABI}/latest" and also removing pkg from pkg+http but again nothing has changed in the final result pkg: Unable to find catalogs.

Can someone give me any ideas? Thank you
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Also try "pkg upgrade"
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Oh you're still on 9.2??!? Thats likely your problem

Do yourself a favor and upgrade to 9.3. It's wayyyyy more stable than anything in 9.2.
 

Fabbat

Dabbler
Joined
Oct 24, 2013
Messages
46
I tried with pkg upgrade with same result. Ok I will try to upgrade
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Don't install any packages on the root file system, you're going to break things.

Do the pkg update and pkg upgrade in the jail you created.
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Ahhh missed that

Fabat, to enter jail from command line type

"jls"

And then enter the # of the corresponding jail

"jexec # tcsh"
 

rsquared

Explorer
Joined
Nov 17, 2015
Messages
81
Looking at the command prompt from the OP, I think he was in a jail already. He's at the root directory, which is where jexec typically starts you, and the host name matches the package he's installing.

OP, have you made sure you can connect to the internet (e.g. you can ping google.com) if that's working, can you post the contents of the /usr/local/etc/pkg/repos/FreeBSD.conf file within your jail?
 

trevorb

Dabbler
Joined
Aug 13, 2013
Messages
24
Hi all,
I have the same problem in an old jail, but running 9.3

root@downloaders:/ # pkg -vv
Version : 1.2.5
PACKAGESITE :
PKG_DBDIR : /var/db/pkg
PKG_CACHEDIR : /var/cache/pkg
PORTSDIR : /usr/ports
PUBKEY :
HANDLE_RC_SCRIPTS : no
ASSUME_ALWAYS_YES : no
REPOS_DIR : [
/etc/pkg/,
/usr/local/etc/pkg/repos/,
]
PLIST_KEYWORDS_DIR :
SYSLOG : yes
AUTODEPS : yes
ABI : freebsd:9:x86:64
DEVELOPER_MODE : no
PORTAUDIT_SITE : http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE : http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE : SRV
FETCH_RETRY : 3
PKG_PLUGINS_DIR : /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS : yes
PLUGINS : [
]
DEBUG_SCRIPTS : no
PLUGINS_CONF_DIR : /usr/local/etc/pkg/
PERMISSIVE : no
REPO_AUTOUPDATE : yes
NAMESERVER :
EVENT_PIPE :
FETCH_TIMEOUT : 30
UNSET_TIMESTAMP : no
SSH_RESTRICT_DIR :
PKG_SSH_ARGS :
PKG_ENV : {
}
DISABLE_MTREE : no
DEBUG_LEVEL : 0
ALIAS : {
}

Repositories:
FreeBSD: {
url : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
enabled : yes,
mirror_type : "SRV"
}

root@downloaders:/ # pkg update
Updating repository catalogue
digests.txz 100% 2088KB 232.0KB/s 218.4KB/s 00:09
packagesite.txz 100% 5409KB 257.6KB/s 399.1KB/s 00:21
pkg: package field incomplete: comment
Incremental update completed, 24593 packages processed:
0 packages updated, 0 removed and 24593 added.
pkg: Unable to find catalogs

I have tried the
pkg update -f
and then
pkg upgrade
to no effect.

I can ping pkg.FreeBSD.org
 
Last edited:

trevorb

Dabbler
Joined
Aug 13, 2013
Messages
24
I tried a number of options, but ended up compiling a later version of pkg from ports (1.6.3).

All working OK now.

I wonder if deinstalling and reinstalling would have fixed it (having to recreate the database)?
 

spencerisadog

Dabbler
Joined
Jan 30, 2016
Messages
11
I'm trying to get MineOS working and I can't get openjdk8, so I tried pkg update and that bombs too. Any ideas why this is happening? I can't seem to do any downloading. pkg upgrade, portsnap fetch update doesn't work either. I can ping google and the pkg.freebsd.org

Code:
[mineos_1] Fetching meta.txz: 100%	944 B   0.9kB/s	00:01																	 
[mineos_1] Fetching packagesite.txz: 100%	3 MiB  94.8kB/s	00:35															   
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: Operation timed out										   
Unable to update repository FreeBSD																								 
root@mineos_1:/ # portsnap fetch update																							 
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.																		 
Fetching public key from your-org.portsnap.freebsd.org... done.																	 
Fetching snapshot tag from your-org.portsnap.freebsd.org... done.																   
Fetching snapshot metadata... done.																								 
Fetching snapshot generated at Sat Oct 14 20:00:43 EDT 2017:																		
218fe1388e35dc2891ec52d4a849245f3ad6091b90027a  2% of   77 MB 9866  Bps 02h12m													 
fetch: transfer timed out																										   
fetch: 218fe1388e35dc2891ec52d4a849245f3ad6091b90027a4f92a3d0bee722006f.tgz appears to be truncated: 1851577/80846990 bytes		 
root@mineos_1:/ # ping google.com																								   
PING google.com (172.217.9.46): 56 data bytes																					   
64 bytes from 172.217.9.46: icmp_seq=0 ttl=52 time=27.664 ms																		
64 bytes from 172.217.9.46: icmp_seq=1 ttl=52 time=27.838 ms																		
64 bytes from 172.217.9.46: icmp_seq=2 ttl=52 time=27.482 ms																		
64 bytes from 172.217.9.46: icmp_seq=3 ttl=52 time=28.065 ms																		
64 bytes from 172.217.9.46: icmp_seq=4 ttl=52 time=27.874 ms																		
^C																																 
--- google.com ping statistics ---																								 
5 packets transmitted, 5 packets received, 0.0% packet loss																		 
round-trip min/avg/max/stddev = 27.482/27.785/28.065/0.198 ms																	   
root@mineos_1:/ # pkg upgrade																									   
Updating FreeBSD repository catalogue...																							
Repository FreeBSD has a wrong packagesite, need to re-create database															 
[mineos_1] Fetching meta.txz: 100%	944 B   0.9kB/s	00:01																	 
[mineos_1] Fetching packagesite.txz: 100%   22 KiB   0.7kB/s	00:31															   
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: Operation timed out										   
Unable to update repository FreeBSD																								 
All repositories are up-to-date.																									
Repository FreeBSD has a wrong packagesite, need to re-create database															 
pkg: Repository FreeBSD cannot be opened. 'pkg update' required																	 
Checking for upgrades (0 candidates): 100%																						 
Processing candidates (0 candidates): 100%																						 
Checking integrity... done (0 conflicting)																						 
Your packages are up to date.																									   
root@mineos_1:/ # ping pkg.freebsd.org																							 
PING pkgmir.geo.freebsd.org (149.20.1.201): 56 data bytes																		   
64 bytes from 149.20.1.201: icmp_seq=0 ttl=51 time=77.425 ms																		
64 bytes from 149.20.1.201: icmp_seq=3 ttl=51 time=77.532 ms																		
64 bytes from 149.20.1.201: icmp_seq=4 ttl=51 time=78.049 ms																		
64 bytes from 149.20.1.201: icmp_seq=6 ttl=51 time=77.527 ms																		
64 bytes from 149.20.1.201: icmp_seq=7 ttl=51 time=77.119 ms																		
^C																																 
--- pkgmir.geo.freebsd.org ping statistics ---																					 
8 packets transmitted, 5 packets received, 37.5% packet loss																		
round-trip min/avg/max/stddev = 77.119/77.530/78.049/0.300 ms																	   
root@mineos_1:/ #
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Please start a new thread rather than bringing back threads that ended a year ago. Situations have likely changed since then.
 
Status
Not open for further replies.
Top