FreeBSD pkg_update no longer supported on 6.1+

hicom

Well-Known Member
May 23, 2003
290
4
168
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 ?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
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.
 

hicom

Well-Known Member
May 23, 2003
290
4
168
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
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
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.