Solved I can't upgrade Perl in jail

Hello,

I need to upgrade one old system with jails:
Code:
[11:23]root@company# uname -a
FreeBSD company.com 9.3-RELEASE-p6 FreeBSD 9.3-RELEASE-p6 #0 r275681: Wed Dec 10 18:48:58 EET 2014     root@company.com:/usr/obj/nanobsd.full/usr/src/sys/KERNEL  amd64
[11:24]root@company# pkg version -v | grep perl
perl-threaded-5.12.4_5             ?   orphaned: lang/perl5.12

I've got errors when I tried upgrade Perl in jail:
Code:
[11:26]root@company#   portupgrade -o lang/perl5.20 -f lang/perl5.12
...
--->  Installing the new version via the port
===>  Installing for perl5-5.20.3_8
===>   Registering installation for perl5-5.20.3_8
[company.com] Installing perl5-5.20.3_8...
pkg-static: perl5-5.20.3_8 conflicts with p5-JSON-PP-2.27200_1 (installs files into the same place).  Problematic file: /usr/local/bin/json_pp
*** [fake-pkg] Error code 70

Stop in /basejail/usr/ports/lang/perl5.20.
*** [install] Error code 1

Stop in /basejail/usr/ports/lang/perl5.20.
*** [reinstall] Error code 1

Stop in /basejail/usr/ports/lang/perl5.20.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20160125-56206-1d65mq5 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=perl-threaded-5.12.4_5 UPGRADE_PORT_VER=5.12.4_5 make -DFORCE_PKG_REGISTER reinstall
--->  Restoring the old version
[company.com] Installing perl-threaded-5.12.4_5...
[company.com] Extracting perl-threaded-5.12.4_5: 100%
Removing stale symlinks from /usr/bin...
    Removing /usr/bin/perl
rm: /usr/bin/perl: Read-only file system
    Skipping /usr/bin/perl5
Done.
Creating various symlinks in /usr/bin...
    Backing up /usr/bin/perl as /usr/bin/perl.freebsd
mv: rename /usr/bin/perl to /usr/bin/perl.freebsd: Read-only file system
    *** /usr/bin/perl is still there, which should not happen
    Symlinking /usr/local/bin/perl5.12.4 to /usr/bin/perl5
ln: /usr/bin/perl5: Read-only file system
Done.
Cleaning up /etc/make.conf... Done.
Spamming /etc/make.conf... Done.
Message from perl-threaded-5.12.4_5:

** Fix the installation problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
    ! lang/perl5.20 (perl-threaded-5.12.4_5)    (install error)

How can I upgrade Perl?
 
You probably use Ezjail's uglyperlhack. This creates an ugly symlink for Perl.
If this is the case edit your /usr/local/etc/ezjail.conf on the jailhost.
If you use another jailmanager try to remove the symlink.
 
You probably use Ezjail's uglyperlhack. This creates an ugly symlink for Perl.
If this is the case edit your /usr/local/etc/ezjail.conf on the jailhost.
If you use another jailmanager try to remove the symlink.

You're absolutely right! Thanks!
 
Back
Top