problem installing mysql jail - pkg.conf is no longer supported

Status
Not open for further replies.

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
hello there.

i have been having a few problems installing mysql in a jail.

i had problems on my 9.2.1.5 freenas so i did a brand new install (9.2.1.8) - the only thing that is the same is the volume that i imported.

i created a normal jail and jexec into it when i tried to install mysql55-server it said that i needed to install the package program which i think worked. in a shell the pkg command is recognized. now when i try to install mysql55-server i get the error -

pkg: PACKAGESITE in pkg.conf is no longer supported. Convert to the new reposit
ory style. See pkg.conf(5)
pkg: Cannot parse configuration file!

i did find a thread that metions an error similar to mine. but their help says to use pkg -vv to get some information to help. if i type pkg -vv i get the error above.

what do i need to do to install mysql into a jail?

thank you
 

sysfu

Explorer
Joined
Jun 16, 2011
Messages
73
vi /usr/local/etc/pkg/repos/FreeBSD.conf # remove pkg+ from address
mv /usr/local/etc/pkg.conf /usr/local/etc/pkg.conf.whatever # rename pkg.conf file to get rid of packagesite error
pkg install -y pkg
vi /usr/local/etc/pkg/repos/FreeBSD.conf # replace pkg+ in address

That should fix it.
 
Last edited:

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
thank you for your reply

vim command not found
 

sysfu

Explorer
Joined
Jun 16, 2011
Messages
73
Sorry about that, you can use plain old 'vi' or another text editor such as 'ee'.
 

sysfu

Explorer
Joined
Jun 16, 2011
Messages
73
Did some more testing on this, the problem manifests itself differently depending on what type of jail is created.

1) Create new portjail, login via jexec jailname tcsh, run pkg upgrade, works without issue.
2) Create new standard jail, login via jexec jailname tcsh, run pkg upgrade, gives this error:
root@test1:/ # pkg upgrade
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg please wait
_http._tcp.pkg.FreeBSD.org
[test1] Installing pkg-1.3.8_3: 100%
Message for pkg-1.3.8_3:
If you are upgrading from the old package format, first run:

# pkg2ng
pkg: PACKAGESITE in pkg.conf is no longer supported. Convert to the new repository style. See pkg.conf(5)
pkg: Cannot parse configuration file!

rm /usr/local/etc/pkg.conf

Re-run pkg upgrade or pkg install, and they work without errors.

3) create new pluginjail, login via jexec jailname tcsh, run pkg upgrade, gives this
root@test2:/ # pkg upgrade
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg please wait
_http._tcp.pkg.FreeBSD.org
[test2] Installing pkg-1.3.8_3: 100%
Message for pkg-1.3.8_3:
If you are upgrading from the old package format, first run:

# pkg2ng
pkg: PACKAGESITE in pkg.conf is no longer supported. Convert to the new repository style. See pkg.conf(5)
pkg: Cannot parse configuration file!

# rm /usr/local/etc/pkg.conf
and re-run pkg upgrade, errors go away.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
thank you very much.

i entered my jail and ran - rm /usr/local/etc/pkg.conf - as you said, then installed mysql55-server with no problems:D
 
Status
Not open for further replies.
Top