SOLVED Unable to install py27-sqlite3 in jail

Status
Not open for further replies.
Joined
Jan 10, 2015
Messages
10
I'm unable to install py27-sqlite3 in a jail.

When I run pkg_add py27-sqlite3, I get the following error:


This matches what I can see at http://pkg.freebsd.org/freebsd:9:x86:64/latest/All/ - py27-sqlite3-2.7.9_5.txz is there, and not py27-sqlite3-2.7.8_5.txz

I've run portsnap fetch update and portsnap extract, and I've stopped and started the jail, but I still see the same problem.

Can someone please advise what I'm doing wrong here please ?

Thanks,
 
Joined
Jan 10, 2015
Messages
10
For starters, don't use pkg_add. From http://doc.freenas.org/9.3/freenas_jails.html#installing-freebsd-packages:

Warning: do not use the pkg_add command in a FreeNAS® jail as it will cause inconsistencies in your package management database.

Apologies - force of habit when I was writing this up. I am using pkg install :

# pkg install py27-sqlite3
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 3 packages will be affected (of 0 checked):

New packages to be INSTALLED:
py27-sqlite3: 2.7.8_5
python27: 2.7.8_4
py27-setuptools27: 5.5.1

The process will require 64 MB more space.
314 kB to be downloaded.

Proceed with this action? [y/N]: y
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/All/py27-sqlite3-2.7.8_5.txz: Not Found

Could this be because I used pkg_add at an earlier time ?

*EDIT* - Yep - that was the cause. I've recreated the jail and just used pkg install and it now works.

Sorry for the time waster...
 
Last edited:
Status
Not open for further replies.
Top