Trying to update jail - pkg error no repodata

Status
Not open for further replies.

anika200

Contributor
Joined
Mar 18, 2013
Messages
113
I am trying to upgrade a jail on FreeNAS 9.2.1.6 and am getting an error and am not sure it is working correctly. Can someone suggest how to resolve this problems? Previous to the output below pkg was upgraded via ports to newest version and the old pkg 1.1.4 repo was removed then pkg2ng was run.
Code:
root@subsonic:/home/sonic # pkg update
Updating repository catalogue
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/meta.txz: Not Found
pkg: repository FreeBSD has no meta file, using default settings
FreeBSD repository is up-to-date
All repositories are up-to-date
root@subsonic:/home/sonic # pkg upgrade
Updating repository catalogue
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/meta.txz: Not Found
pkg: repository FreeBSD has no meta file, using default settings
FreeBSD repository is up-to-date
All repositories are up-to-date
pkg: Repository FreeBSD contains no repodata table, need to re-create database
Checking for upgrades: 100%
Checking integrity... done (0 conflicting)
root@subsonic:/home/sonic #


Here is pkg -v
Code:
root@subsonic:/home/sonic # pkg -vv
Version                 : 1.3.5.1
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-9";
HANDLE_RC_SCRIPTS = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
    "/etc/pkg/",
    "/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "freebsd:9:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://www.vuxml.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 = "";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
DISABLE_MTREE = false;
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
}
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;


Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
    enabled         : yes,
    mirror_type     : "SRV"
  }
root@subsonic:/home/sonic #

I also have this which seems fine
Code:
root@subsonic:/home/sonic # cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  enabled: yes
}


I know there are updates but nothing gets done
Code:
root@subsonic:/home/sonic # pkg version
alsa-lib-1.0.26                    <
apr-1.4.8.1.5.2                    <
aria2-1.17.1                       <
autoconf-2.69                      =
autoconf-wrapper-20130530          <
automake-1.14                      =
automake-wrapper-20130530          <
bash-4.2.45                        <
binutils-2.23.2                    <
bison-2.7.1,1                      =
ca_root_nss-3.15.1                 <
cmake-2.8.11.2                     <
cmake-modules-2.8.11.2             <
db42-4.2.52_5                      =
debootstrap-1.0.53                 =
dejavu-2.33                        <
dialog4ports-0.1.5_1               <
expat-2.1.0                        <
faac-1.28_2                        <
ffmpeg-2.2.4_3,1                   =
fftw3-3.3.3_1                      =
fftw3-float-3.3.3_1                =
fixesproto-5.0                     =
flac-1.2.1_3                       <
fontconfig-2.10.93,1               <
freetype2-2.4.9_1                  <
frei0r-1.3_1                       =
gamin-0.1.10_5                     <
gdbm-1.10                          <
gettext-0.18.3                     <
glib-2.34.3                        <
gmake-3.82_1                       =
gmp-5.1.2                          <
gnutls-2.12.23_1                   <
gpac-libgpac-0.4.5_6,1             <
help2man-1.43.3                    <
htop-1.0.2                         <
inputproto-2.0.2                   <
java-zoneinfo-2012.h               <
javavmwrapper-2.4_2                <
jbigkit-1.6                        <
jpeg-8_4                           <
kbproto-1.0.5                      <
lame-3.99.5_1                      =
lcms2-2.5                          <
libICE-1.0.7,1                     <
libSM-1.2.0,1                      <
libX11-1.4.4,1                     <
libXau-1.0.6                       <
libXdmcp-1.1.0                     <
libXext-1.3.0_1,1                  <
libXfixes-5.0.1                    <
libXi-1.4.5,1                      <
libXrender-0.9.6                   <
libXt-1.1.1,1                      <
libXtst-1.2.0                      <
libaacplus-2.0.2_2                 <
libexecinfo-1.1_3                  =
libffi-3.0.13                      <
libgpg-error-1.12                  <
libiconv-1.14                      <
libidn-1.27                        <
libogg-1.3.0,4                     <
libpthread-stubs-0.3_3             <
libsigsegv-2.10                    =
libslang2-2.2.4_4                  <
libtasn1-2.14                      <
libtheora-1.1.1_3                  <
libtool-2.4.2_1                    <
libvorbis-1.3.3_1,3                <
libvpx-1.1.0                       <
libxcb-1.7                         <
libxml2-2.8.0_2                    <
lsof-4.88.d,8                      <
lzo2-2.06                          <
m4-1.4.16_1,1                      <
mc-4.8.8                           <
mp4v2-1.9.1                        <
mpfr-3.1.2                         <
nano-2.2.6                         =
nasm-2.10.03,1                     <
neon29-0.29.6_4                    <
nettle-2.7.1                       =
opencv-core-2.3.1_7                <
openjdk-7.9.05_1                   <
openjpeg-1.5.0_2                   <
orc-0.4.18                         <
p11-kit-0.16.3                     <
p5-Locale-gettext-1.05_3           =
pcre-8.33                          <
perl-5.14.4                        <
pkg-1.3.5.1                        =
pkgconf-0.8.9                      <
png-1.5.17                         <
python27-2.7.5_1                   <
recordproto-1.14.1                 <
renderproto-0.11.1                 =
schroedinger-1.0.11_1              <
serf-1.2.1_1                       <
sqlite3-3.7.17_1                   <
squashfs-tools-4.2                 =
subversion-1.8.1                   <
texi2html-5.0_1,1                  =
tiff-4.0.3                         <
tmux-1.8                           <
wget-1.14_2                        <
x264-0.125.2201                    <
xextproto-7.2.0                    <
xproto-7.0.22                      <
xtrans-1.2.7                       <
xvid-1.3.2,1                       =
yasm-1.2.0                         =
root@subsonic:/home/sonic #
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I am trying to upgrade a jail on FreeNAS 9.2.1.6 and am getting an error and am not sure it is working correctly. Can someone suggest how to resolve this problems? Previous to the output below pkg was upgraded via ports to newest version and the old pkg 1.1.4 repo was removed then pkg2ng was run.
[/CODE]
That's probably your problem. Keep your installation consistent. Either use the ports tree or packages, not both.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I'm having this problem on my jails. I haven't had time to figure out the problem and fix it.. hopefully this weekend.
 

anika200

Contributor
Joined
Mar 18, 2013
Messages
113
So I decided to upgrade all ports installIed with "portmaster -a" and that mostly went fine, it took a couple of hours with 112 packages to upgrade. There were a couple hiccups with lsof and htop but you can use the option -x lsof to exclude some packages.

In the end after all the updates and a reboot pkg-ng or pkg now seems to be working again but I have no idea what fixed the issue. Now I do not need it anyway since everything is up to date.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
For future readers I solved my problem with "pgk update -f".
 

Dennis.kulmosen

Explorer
Joined
Aug 13, 2013
Messages
96
I didn't have any success with "pkg update -f"

So here is my solution to pkg issues in the jails.

For those using pre FreeNAS 9.3.x, the jails are having a pkg installation that is too old. So doing
portsnap fetch extract

and go to

cd /usr/ports/ports-mgmt/pkg

and do a

make install
make deinstall
make reinstall

Will do the trick. :smile:
 
Status
Not open for further replies.
Top