The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FreeBSD pkg_update no longer supported on 6.1+

Discussion in 'General Discussion' started by hicom, Jan 11, 2007.

  1. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    272
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    We've noticed on FreeBSD 6.1+ that pkg_update is no longer available nor used. However, cPanel still appearently attempts to use it.

    We noticed this while updating mySQL server from 4.0 to 4.1 on FreeBSD 6.1 with cPanel 10.9-S114

    This is the output:

    sonata# /scripts/mysqlup --force
    MySQL Setup Script Version 7.0
    This is the MySQL installer for OS FreeBSD
    Dependency: libtool-1.5.22_2 (1.5.22_2) is already installed
    Source: packages-6.1-release
    looking up ftp1.us.freebsd.org
    connecting to ftp1.us.freebsd.org:21
    setting passive mode
    opening data connection
    initiating transfer
    remote size / mtime: 773942 / 1142425076
    /var/spool/cpbsdpkgs/mysql-client-4.1.18_1.tbz 755 kB 2444 kBps
    open3: exec of pkg_update -v /var/spool/cpbsdpkgs/mysql-client-4.1.18_1.tbz failed at /scripts/installport.pl line 650
    Running post install scripts for mysql-client-4.1....Done
    Dependency: libtool-1.5.22_2 (1.5.22_2) is already installed
    Dep: mysql-client-4.1.18_1. Required: 4.1.18-1. Installed: 4.0.26-1 (-1)
    Source: packages-6.1-release
    looking up ftp1.us.freebsd.org
    connecting to ftp1.us.freebsd.org:21
    setting passive mode
    opening data connection
    initiating transfer
    remote size / mtime: 773942 / 1142425076
    /var/spool/cpbsdpkgs/mysql-client-4.1.18_1.tbz 755 kB 2546 kBps
    open3: exec of pkg_update -v /var/spool/cpbsdpkgs/mysql-client-4.1.18_1.tbz failed at /scripts/installport.pl line 650
    Source: packages-6.1-release
    looking up ftp1.us.freebsd.org
    connecting to ftp1.us.freebsd.org:21
    setting passive mode
    opening data connection
    initiating transfer
    remote size / mtime: 4020192 / 1142443544
    /var/spool/cpbsdpkgs/mysql-server-4.1.18_2.tbz 3925 kB 2752 kBps
    open3: exec of pkg_update -v /var/spool/cpbsdpkgs/mysql-server-4.1.18_2.tbz failed at /scripts/installport.pl line 650
    Running post install scripts for mysql-server-4.1....Done


    Will cPanel update their installer for FBSD 6.x ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No idea, you'll have to ask cPanel. Check bugzilla to see if it's already been adressed and if not, log a new entry so that cPanel are aware of the issue.
     
  3. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    272
    Likes Received:
    0
    Trophy Points:
    16
    Actually, I found the solution to it (pretty simple too).

    You need to have portupgrade installed:

    /usr/ports/sysutils/portupgrade

    This probably will be useful for people upgrading from FreeBSD 5.x to 6.x
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You can also remove the file /var/cpanel/userbsdpkgs if it exists, that will force cPanel to use the ports system, rather than binary packages.
     

Share This Page