Jail 9.3

Status
Not open for further replies.

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
I'm trying to install nano on my jail. but pkg doesn't find nano in list.

Code:
# pkg install nano
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[Sonarr] Fetching meta.txz: 100%    968 B   1.0kB/s    00:01
[Sonarr] Fetching packagesite.txz: 100%    5 MiB   5.4MB/s    00:01
Processing entries:   0%
pkg: wrong architecture: freebsd:9:x86:32 instead of FreeBSD:9:amd64
pkg: repository FreeBSD contains packages with wrong ABI: freebsd:9:x86:32
Processing entries: 100%
pkg: Unable to update repository FreeBSD
All repositories are up-to-date.
pkg: No packages available to install matching 'nano' have been found in the repositories


This is what my Jail Template looks like.
noname.jpg


am i using the wrong Repository? how can i change it so I can install correctly again. Been having this issue for about a week trying to googleit to find a sollution.

Code:
# pkg install mono
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'mono' have been found in the repositories
# pkg install mediainfo
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'mediainfo' have been found in the repositories


been trying to update pkg

Code:
 # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.


Internett works

Code:
ping google.com
PING google.com (80.202.12.245): 56 data bytes
64 bytes from 80.202.12.245: icmp_seq=0 ttl=57 time=8.608 ms
64 bytes from 80.202.12.245: icmp_seq=1 ttl=57 time=8.091 ms
64 bytes from 80.202.12.245: icmp_seq=2 ttl=57 time=7.986 ms
64 bytes from 80.202.12.245: icmp_seq=3 ttl=57 time=7.908 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.908/8.148/8.608/0.273 ms
 
D

dlavigne

Guest
pkg: wrong architecture: freebsd:9:x86:32 instead of FreeBSD:9:amd64
pkg: repository FreeBSD contains packages with wrong ABI: freebsd:9:x86:32

Just to be clear, did you install the jail using 9.3 or was it migrated from an earlier (32-bit version) of FreeNAS?

If you've never been on a 32-bit FreeNAS, this should not be happening and is a bug.
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
This is a new install from 9.3 not migrated from 9.2.
had a crash a couple of month ago so i had to do a full reinstall with a new USB memory stick
 
D

dlavigne

Guest
Please create a bug report and post the issue number here. If you use the Support tab, it will include all of the debug info the devs need. Note that you still need to have a login account at bugs.freenas.org to use the Support tab.
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
I found the problem my self. by looking trough the folder
Code:
/usr/local/etc/pkg/repos

i found the file FreeBSD.conf

inside i found this
Code:
FreeBSD: {

  url: "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:32/latest",
  mirror_type: "srv",
  enabled: yes
}


as default the architecture was put on 32bit. so everytime i tried to update i got this error

Code:
kg: wrong architecture: freebsd:9:x86:32 instead of FreeBSD:9:amd64
pkg: repository FreeBSD contains packages with wrong ABI: freebsd:9:x86:32


So ive edited the file so it looked like this
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}

Saved and tried to update the Repo again.

Code:
 pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[Downloads] Fetching meta.txz: 100%    968 B   1.0kB/s    00:01
[Downloads] Fetching packagesite.txz: 100%    5 MiB   5.3MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 24020 packages processed


now its working.

This should be updated in the jails so that the repo is right


 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
The only thing in my jail templates is a virtual box.

Did you add the template addresses?
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94

JohnnyFreeNAS

Dabbler
Joined
Feb 11, 2016
Messages
24
if you see X64 and it still fails make sure you have in IP and not DHCP for the jail. DHCP or blank IP will fail.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Same issue with FreeNAS 9.10 STABLE

1st jail created, no problem :
Code:
root@ZeJail:~ # cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}


2nd jail created, PKG points to freebsd 9 instead of 10 :
Code:
root@MiniDLNA:~ # cat /usr/local/etc/pkg
pkg.conf.sample  pkg/            
root@MiniDLNA:~ # cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}


So I got this issue :
Code:
root@MiniDLNA:~ # pkg install minidlna
Updating FreeBSD repository catalogue...
Repository FreeBSD has a wrong packagesite, need to re-create database
[MiniDLNA] Fetching meta.txz: 100%    968 B   1.0kB/s    00:01   
[MiniDLNA] Fetching packagesite.txz: 100%    5 MiB 253.9kB/s    00:22   
Processing entries:   0%
pkg: wrong architecture: freebsd:9:x86:64 instead of FreeBSD:10:amd64
pkg: repository FreeBSD contains packages with wrong ABI: freebsd:9:x86:64
Processing entries: 100%
Unable to update repository FreeBSD
All repositories are up-to-date.



Maybe this info is relevant : 1st thing I did after creating the jail wasn't a "pkg update", but directly a "pkg install minidlna"
 

TigerXtrm

Dabbler
Joined
Apr 26, 2012
Messages
36
I can't believe this hasn't been fixed yet... spent ages wondering why a simple pkg install wouldn't work...
 
Joined
Dec 2, 2015
Messages
730
Is this related to issue# 14211?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Related yes, but in my case I had completely nuked the old jail dataset before doing a clean install of freenas 9.10 and importing zfs pool.

And as mentioned the first jail was correctly set for FreeBSD.conf
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
I found the problem my self. by looking trough the folder
Code:
/usr/local/etc/pkg/repos

i found the file FreeBSD.conf

inside i found this
Code:
FreeBSD: {

  url: "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:32/latest",
  mirror_type: "srv",
  enabled: yes
}

So ive edited the file so it looked like this
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
  mirror_type: "srv",
  enabled: yes
}

Saved and tried to update the Repo again. now its working.
Thank you!!! That was driving me nuts trying to figure out why I couldn't get simple commands to install / update.
 

omcn7

Dabbler
Joined
May 19, 2015
Messages
20
I ran into an issue also.
I was unable to create a jail as indicated in the 9.10 documentation

This is a 404 site that the config of jails for freenas is pointing to
http://download.freenas.org/latest/RELEASE/x64/jails
I didn't change this, but I did have to add my own template.
This runs freeBSD
I added a template which pointed to the right url
http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.tgz
and also mtree
http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.mtree

I was able to get a jail installed it is running

uname -a

FreeBSD xmpp 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+07c41cd(9.10-STABLE): We
d Nov 9 00:19:25 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freen
as-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64

I was then able to pkg install name_of_package

If there was a bug, I haven't run into it. Other than the documentation for 9.10 says you can add a FreeBSD jail simply by naming it. This fails due to it pointing to a url that is not active. The default file pointers are incorrect.
 
D

dlavigne

Guest
If there was a bug, I haven't run into it. Other than the documentation for 9.10 says you can add a FreeBSD jail simply by naming it. This fails due to it pointing to a url that is not active. The default file pointers are incorrect.

If the default URL is incorrect, that is a software bug. Was your system originally installed using a 9.3 or 9.10 image?
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
Thank you! This fixed my issue in 9.10 as well. the conf file was on x86:32 and I was able to update:upgrade by changing it to x86:64.
 

Krist8

Dabbler
Joined
Mar 27, 2017
Messages
26
I am running 9.10.2-U3.
Created a jail for OpenVPN, but when I do
Code:
pkg update

it gave me this error. I have never installed 32 bit system. This is a completely new install. Any ideas. Thanks.
Code:
Repository FreeBSD has a wrong packagesite, need to re-create database


How to go about re-creating database?
 
Status
Not open for further replies.
Top