This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SOLVED] How Do I Update Package Manager in Jail (pkg_tools to pkg)

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jay610
Starter
Starter
Posts: 22
Joined: 07 Jan 2013 17:19
Status: Offline

[SOLVED] How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by jay610 »

I have been grappling with this and read some BSD how-tos but with no luck. I have some jails created with TheBrig that need converting from pkg_ tools to pkg as they now throw an error when trying to add packages.

I am running 9.2.0.1 (972) with TheBrig and jails based on FreeBSD-amd64-9.2-RELEASE-base.txz

As I said, I have tried a variety of update methods including https://forums.freebsd.org/threads/pkg- ... ted.43506/ and https://www.freebsd.org/doc/handbook/pkgng-intro.htmland http://freebsd.pro/topic/29/.


I have looked on the wiki: https://wiki.freebsd.org/pkgng. I have looked at some clues from a post in our own Brig plex thread viewtopic.php?f=79&t=4971&p=45055&hilit=pkg2ng#p45055. That helped me update plex from ports but I still get a fail anytime I try to 'pkg install'.

This seems to have the most potential https://www.freebsd.org/security/adviso ... 03.pkg.asc but I get stuck there applying the patch as well.

I'm all out of ideas and certainly out of skills. I've tried it all and mostly I still end up at 'No valid repository found'. Could anyone give me a step-by-step guide to doing this so that I can continue to install packages to jails? I would be very grateful.
Last edited by jay610 on 15 Dec 2014 17:51, edited 1 time in total.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by MikeMac »

I had the same done. See https://translate.google.ru/translate?s ... edit-text=

it is google translation from Russian, but hope understandable
Proceide with pp 1-10

jay610
Starter
Starter
Posts: 22
Joined: 07 Jan 2013 17:19
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by jay610 »

Thanks so much for this! I still get stuck at

pkg update -f


but this is a great resource to have all the relevant steps in one place and gives me a good base to work from.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by MikeMac »

jay610 wrote:Thanks so much for this! I still get stuck at

pkg update -f
That is exact this command output?

locslikes
NewUser
NewUser
Posts: 10
Joined: 30 Mar 2013 01:50
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by locslikes »

Thanks for the link.

I also followed the guide and had to make the following change before it would work from the original guessing it had something to do with the translation. Note the url line.

FreeBSD: { 
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest ", 
mirror_type: "srv", 
enabled: yes 


Hope it helps.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by MikeMac »

locslikes wrote:Note the url line.
Yeah, thank you. It is my Russian blog at and I even could not correct the typo... Because it is not mine, but inserted by Google translator
Please compare - Google English translation, Google false "original", real Russian original

Code: Select all

url: "+ pkg http://pkg.FreeBSD.org/${ABI}/late ST ", 

url: "pkg+ http://pkg.FreeBSD.org/${ABI}/late st ", 

url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",

jay610
Starter
Starter
Posts: 22
Joined: 07 Jan 2013 17:19
Status: Offline

Re: How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by jay610 »

I totally blanked on the typo. That fixed it. Thanks to both of you! There was several hours of teeth-gnashing put into this before I opened a topic. Hopefully this helps future passersby as well.


Also, locslikes -- additional thanks to you for your site and your Youtube channel, which I have found to be an excellent resource.

oleost
NewUser
NewUser
Posts: 12
Joined: 11 Sep 2012 10:15
Status: Offline

Re: [SOLVED] How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by oleost »

So, just wondering. When will the jail come preinstalled with pkg?

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: [SOLVED] How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by fsbruva »

FreeBSD (Nas4Free) 10.0. Right around the time that pkg could have been released on 9.1, there was a big issue with an intrusion on the official FreeBSD build cluster. They had to postpone building the binary pkg, because they had to rebuild the entire port tree for every supported version of FreeBSD. By the time they got the build cluster all sorted it, it was just going to be easier to wait and make it a major version change in 10.0

An upside of this is that with 10.0, code signing is checked and fingerprinted, so you can be sure you have the official FreeBSD software.

thermion
NewUser
NewUser
Posts: 13
Joined: 18 Jan 2013 11:28
Status: Offline

Re: [SOLVED] How Do I Update Package Manager in Jail (pkg_tools to pkg)

Post by thermion »

Above solution worked like a charm for me. My thanks to MikeMac for sharing initial work, and to all other contributors. This was exactly what I needed :)
FreeBSD 12 RootOnZFS Mirror, MB Asus Prime X470-Pro, AMD Ryzen 7 2700 (65W), 2x16GB Kingston KSM26ED8/16ME DDR4 ECC unbuffered, 2x500GB WD Blue M2 NVMe SSD, 3x2TB WD20EFRX RAIDZ1

Post Reply

Return to “Jails”