pkg doesn't work anymore in 9.3 jails?

Status
Not open for further replies.

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
I had a jail with midnight commander in my earlier FreeNAS installations. After installing a fresh 9.3, I wanted to reinstall mc in a jail again.

pkg updates itself, but after fetching mc and its dependencies, I get:

Code:
Checking integrity...Assertion failed: (pkgdb_ensure_loaded(j->db, p2, PKG_LOAD_FILES|PKG_LOAD_DIRS) == EPKG_OK), function pkg_conflicts_need_conflict, file pkg_jobs_conflicts.c, line 211.
Child process pid=67935 terminated abnormally: Abort trap: 6

After some research, it turns out that the issue is discussed fairly recently on the FreeBSD forums: https://forums.freebsd.org/threads/is-this-a-problem-with-the-wget-package-my-system-or-me.49475/

It turns out that the gettext-runtime package is the offending one here; if a pkg install gettext is done manually, the subsequent installation of mc proceeds. BUT: It still doesn't work!

Now I get:
Code:
root@btsync_1:/var/cache/pkg # mc
Shared object "libiconv.so.2" not found, required by "libgmodule-2.0.so.0"

If I run a
Code:
ldd libgmodule*
now in /usr/local/lib, I get:
Code:
root@btsync_1:/usr/local/lib # ldd libgmodule*
ldd: libgmodule-2.0.a: not a dynamic executable
libgmodule-2.0.so:
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x801203000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x801500000)
        libthr.so.3 => /lib/libthr.so.3 (0x80170a000)
        libc.so.7 => /lib/libc.so.7 (0x80081b000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libiconv.so.2 => not found (0)
libgmodule-2.0.so.0:
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x801203000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x801500000)
        libthr.so.3 => /lib/libthr.so.3 (0x80170a000)
        libc.so.7 => /lib/libc.so.7 (0x80081b000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libiconv.so.2 => not found (0)
libgmodule-2.0.so.0.4200.1:
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x801203000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x801500000)
        libthr.so.3 => /lib/libthr.so.3 (0x80170a000)
        libc.so.7 => /lib/libc.so.7 (0x80081b000)
        libiconv.so.2 => not found (0)
        libpcre.so.1 => not found (0)
        libiconv.so.2 => not found (0)

At this point I threw in the towel. 5 libraries are missing. What has happened to FreeBSD (and by extension FreeNAS), that a simple install of midnight commander is abysmally broken? In the earlier releases, I could open a jail and simply install whatever package was desired, and never had problems.
 
Last edited:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I've said this to many people, and I really don't mean for it to sound like I'm punting you to someone else, but have you tried looking in the FreeBSD forums for that problem?

I'm asking because that error completely eludes me. I've never seen it before and I am genuinely stumped. As the jails are literally nothing but user-space for FreeBSD I'd bet that FreeBSD users would have better answers than this forum.
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
try "pkg install gettext" first and then try again installing MC
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
try "pkg install gettext" first and then try again installing MC
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
You guys are way quicker than I am. I have edited my first post to give more complete information.

@enemy85: did this, still doesn't work.
@cyberjock: I am looking on the FreeBSD forums, my complaint is more that simple things that worked flawlessly before are now completely broken. What happened?
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Other people on freebsd forums solved upgrading pkg to 1.4.2
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
Just as a progress report: I can install libiconv per pkg install libiconv. For libpcre however, I found on the PC-BSD forums from 1 year ago the advice to do a pkg -fR pcre, which installed the missing lib and solved my mc problem.

The issue remains why a simple install of a fairly popular package via pkg now requires such an amount of manual intervention, when before everything was smooth and automatic.
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
@enemy85: I tried earlier on and had 1.4.3 already. so this wasn't the issue. But thanks for your help!
 

DJ9

Contributor
Joined
Sep 20, 2013
Messages
183
Just a FYI but mc is installed by default in PC-BSD. (just thought I'd mention it)
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
Just a FYI but mc is installed by default in PC-BSD. (just thought I'd mention it)
This is exactly what I don't understand. How can a default program in PC-BSD be such a bitch to install in FreeNAS? The pkg package seems to be seriously broken since 9.3.
 

Nucshuco

Explorer
Joined
Aug 22, 2014
Messages
52
This fixed it for me

# pkg delete -f gettext

# pkg upgrade
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I just created a new jail and tried doing an install of mc. I've never used mc so I didn't try to set it up, but it seemed to grab all dependencies and install without any problems.
 

Pharfar

Dabbler
Joined
Jan 6, 2013
Messages
46
I had same problem, did a
Code:
pkg install libiconv

Problem solved
 

JKman

Explorer
Joined
Mar 23, 2014
Messages
52
I had same problem, did a
Code:
pkg install libiconv

Problem solved

i also had same problem, however i was trying to install nano in a new transmission pbi jail (ver 2.84_2). after running pkg install libiconv, nano worked okay!
 
  • Like
Reactions: emb
Status
Not open for further replies.
Top