Getting "pkg Not found" Error in Jails

Status
Not open for further replies.

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
I'm running freenas 9.10, on a machine that was installed fresh from 9.10 and today when I tried to update some old jails I got these errors:

Code:
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/All/subversion-1.9.4.txz: Not Found


I'm not sure why I'm getting these errors and what I can do about it. I tried making a brand-new jail but when I tried to pkg update && pkg upgrade I got:

Code:
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/All/subversion-1.9.4.txz: Not Found


Here is what I get with pkg -vv in the brand new jail:

Code:
root@podder:/ # pkg -vv
Version				 : 1.9.1
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-10";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
	"/etc/pkg/",
	"/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:10:amd64";
ALTABI = "freebsd:10:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/1.9.1";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
	all-depends = "query %dn-%dv";
	annotations = "info -A";
	build-depends = "info -qd";
	cinfo = "info -Cx";
	comment = "query -i \"%c\"";
	csearch = "search -Cx";
	desc = "query -i \"%e\"";
	download = "fetch";
	iinfo = "info -ix";
	isearch = "search -ix";
	prime-list = "query -e '%a = 0' '%n'";
	leaf = "query -e '%#r == 0' '%n-%v'";
	list = "info -ql";
	noauto = "query -e '%a == 0' '%n-%v'";
	options = "query -i \"%n - %Ok: %Ov\"";
	origin = "info -qo";
	provided-depends = "info -qb";
	raw = "info -R";
	required-depends = "info -qr";
	roptions = "rquery -i \"%n - %Ok: %Ov\"";
	shared-depends = "info -qB";
	show = "info -f -k";
	size = "info -sq";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
	"pkg+http",
	"pkg+https",
	"https",
	"http",
	"file",
	"ssh",
	"ftp",
	"ftps",
	"pkg+ssh",
	"pkg+ftp",
	"pkg+ftps",
]
ALLOW_BASE_SHLIBS = false;
WARN_SIZE_LIMIT = 1048576;
METALOG = "";


Repositories:
  FreeBSD: { 
	url			 : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
	enabled		 : yes,
	priority		: 0,
	mirror_type	 : "SRV",
	signature_type  : "FINGERPRINTS",
	fingerprints	: "/usr/share/keys/pkg"
  }


And did my old jail:

Code:
root@pod:/ # pkg -vv
Version				 : 1.7.2
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-10";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
	"/etc/pkg/",
	"/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:10:amd64";
ALTABI = "freebsd:10:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/1.7.2";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
	all-depends = "query %dn-%dv";
	annotations = "info -A";
	build-depends = "info -qd";
	cinfo = "info -Cx";
	comment = "query -i \"%c\"";
	csearch = "search -Cx";
	desc = "query -i \"%e\"";
	download = "fetch";
	iinfo = "info -ix";
	isearch = "search -ix";
	prime-list = "query -e '%a = 0' '%n'";
	leaf = "query -e '%#r == 0' '%n-%v'";
	list = "info -ql";
	noauto = "query -e '%a == 0' '%n-%v'";
	options = "query -i \"%n - %Ok: %Ov\"";
	origin = "info -qo";
	provided-depends = "info -qb";
	raw = "info -R";
	required-depends = "info -qr";
	roptions = "rquery -i \"%n - %Ok: %Ov\"";
	shared-depends = "info -qB";
	show = "info -f -k";
	size = "info -sq";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
	"pkg+http",
	"pkg+https",
	"https",
	"http",
	"file",
	"ssh",
	"ftp",
	"ftps",
	"pkg+ssh",
	"pkg+ftp",
	"pkg+ftps",
]
ALLOW_BASE_SHLIBS = false;
WARN_SIZE_LIMIT = 1048576;


Repositories:
  FreeBSD: { 
	url			 : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
	enabled		 : yes,
	priority		: 0,
	mirror_type	 : "SRV",
	signature_type  : "FINGERPRINTS",
	fingerprints	: "/usr/share/keys/pkg"
  }
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
I'd rather stay away from ports.

Internet is working fine and i cant imagine pkg would be unavailable, are you sure it couldn't be my setup?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You have a networking issue. Do you have your jails networking set correctly in the configuration tab? Static IP or DHCP?

Do you have a default gateway defined in your Global configuration tab?
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
You have a networking issue. Do you have your jails networking set correctly in the configuration tab? Static IP or DHCP?

Do you have a default gateway defined in your Global configuration tab?
Static ip, I have no connection issues and I can ping the mirror. Yes I have my gateway set.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
disable vimage and try again.
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
Not sure what changed but its working now :S

I think I need to do a reinstall, FreeNAS has been acting funky for awhile now, so many bugs <_<
 
Last edited:
Status
Not open for further replies.
Top