View Full Version : portupgrade issue

02-05-2007, 05:39 PM
I get this message when installing via ports -
cd: can't cd to /usr/ports/sysutils/portupgrade

I also can't seem to find it in ports. I get a message that it isn't in poirts. Ports ARE installed but portupgrade is missing.

I was thinking of running portsnap again but I worry that it will create duplicates of all ports. I was also thinking of deleting all ports THEN running portsnap.

Any suggestions?

02-05-2007, 06:53 PM
%portsnap fetch && portsnap update

Will fetch and update the ports tree you installed with portsnaps extract command.

02-05-2007, 07:07 PM
tried that.. no dice. :cry: :shock:

Will likely reinstall PCBSD tuesday.

02-06-2007, 11:46 AM
re-install ? wtf !!! You should be needed to re-install for such thing

02-06-2007, 04:54 PM
Portupgrade was moved yesterday along with some other things. Do a pkgdb -F to clean up the mess, then you can portupgrade -r portupgrade and things should start working again.

02-06-2007, 07:45 PM
Just don't shoot your self in the foot when it upgrades the database/ruby dep.

02-06-2007, 08:43 PM
Here's the 'HEADS UP' on portupgrade and the others that moved, mainly from sysutils to a new port name ports-mgmt.
Hey folks,

want to inform you, that a new category called `ports-mgmt' was created.
It will hold all port management and authoring tools, which so far lived
mostly in sysutils.

As a part of initially populating this category, we have moved 47 ports,
most prominently portupgrade.

Here is a complete list:

devel/portcheckout -> ports-mgmt/portcheckout
devel/portlint -> ports-mgmt/portlint
devel/portmk -> ports-mgmt/portmk
devel/porttools -> ports-mgmt/porttools
misc/instant-tinderbox -> ports-mgmt/instant-tinderbox
misc/porteasy -> ports-mgmt/porteasy
misc/portell -> ports-mgmt/portell
misc/portless -> ports-mgmt/portless
misc/tinderbox -> ports-mgmt/tinderbox
security/jailaudit -> ports-mgmt/jailaudit
security/portaudit -> ports-mgmt/portaudit
security/portaudit-db -> ports-mgmt/portaudit-db
security/vulnerability-test-port -> ports-mgmt/vulnerability-test-port
sysutils/barry -> ports-mgmt/barry
sysutils/bpm -> ports-mgmt/bpm
sysutils/kports -> ports-mgmt/kports
sysutils/managepkg -> ports-mgmt/managepkg
sysutils/newportsversioncheck -> ports-mgmt/newportsversioncheck
sysutils/pib -> ports-mgmt/pib
sysutils/pkgfe -> ports-mgmt/pkgfe
sysutils/pkg-orphan -> ports-mgmt/pkg-orphan
sysutils/pkg_cutleaves -> ports-mgmt/pkg_cutleaves
sysutils/pkg_install -> ports-mgmt/pkg_install
sysutils/pkg_install-devel -> ports-mgmt/pkg_install-devel
sysutils/pkg_remove -> ports-mgmt/pkg_remove
sysutils/pkg_rmleaves -> ports-mgmt/pkg_rmleaves
sysutils/pkg_trackinst -> ports-mgmt/pkg_trackinst
sysutils/pkg_tree -> ports-mgmt/pkg_tree
sysutils/portbrowser -> ports-mgmt/portbrowser
sysutils/portconf -> ports-mgmt/portconf
sysutils/portdowngrade -> ports-mgmt/portdowngrade
sysutils/portcheck -> ports-mgmt/portcheck
sysutils/portmanager -> ports-mgmt/portmanager
sysutils/portmaster -> ports-mgmt/portmaster
sysutils/portscout -> ports-mgmt/portscout
sysutils/portsearch -> ports-mgmt/portsearch
sysutils/portsman -> ports-mgmt/portsman
sysutils/portsnap -> ports-mgmt/portsnap
sysutils/portsopt -> ports-mgmt/portsopt
sysutils/portupgrade -> ports-mgmt/portupgrade
sysutils/portupgrade-devel -> ports-mgmt/portupgrade-devel
sysutils/port-authoring-tools -> ports-mgmt/port-authoring-tools
sysutils/port-maintenance-tools -> ports-mgmt/port-maintenance-tools
sysutils/psearch -> ports-mgmt/psearch
sysutils/p5-FreeBSD-Portindex -> ports-mgmt/p5-FreeBSD-Portindex
sysutils/qtpkg -> ports-mgmt/qtpkg
textproc/p5-FreeBSD-Ports -> ports-mgmt/p5-FreeBSD-Ports

If you think I have missed a port, let me know!

Pav Lucistnik <pav@oook.cz>

Galactic Dominator
02-06-2007, 08:52 PM
cd /usr/ports/ports-mgmt/portupgrade
make install clean

02-06-2007, 11:23 PM
At least they are reasonbly consistant in naming the catagories.

02-07-2007, 12:40 PM
Thanks folks, got it working 8)

03-07-2007, 02:42 PM
UPDATE: March 7,2007

Due to a HDD failure I had to start over from scratch. Happily, nothing lost but the system. I'm happy that I keep all my docs on 2nd HDD.

I am, however, faced with the same portupgrade issue - (used DBSD Tools to try to fix it)

---> Checking for the latest package of 'ports-mgmt/portupgrade'
---> Fetching the package(s) for 'portupgrade-2.2.6_2,2' (ports-mgmt/portupgrade)
cd: can't cd to /usr/ports/sysutils/portupgrade
---> Fetching portupgrade-2.2.6_2,2
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/portupgrade-2.2.6_2,2.tbz: File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/portupgrade-2.2.6_2,2.tbz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/portupgrade-2.2.6_2,2.tgz: File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/portupgrade-2.2.6_2,2.tgz
** Failed to fetch portupgrade-2.2.6_2,2
** Listing the failed packages (*:skipped / !:failed)
! portupgrade-2.2.6_2,2 (fetch error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
---> Fetching the latest package(s) for 'portupgrade' (ports-mgmt/portupgrade)
cd: can't cd to /usr/ports/sysutils/portupgrade
---> Fetching portupgrade
/var/tmp/portupgrademWgimdPZ/portupgrade.tbz 100% of 119 kB 82 kBps
---> Downloaded as portupgrade.tbz
---> Identifying the package /var/tmp/portupgrademWgimdPZ/portupgrade.tbz
---> Saved as /usr/ports/packages/All/portupgrade-2.0.1_1,1.tbz
** Could not find the latest version (2.2.6_2,2)
** No package available: ports-mgmt/portupgrade
** Listing the failed packages (*:skipped / !:failed)
! ports-mgmt/portupgrade (portupgrade-2.2.2,2) (package not found)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

03-07-2007, 03:04 PM
cd: can't cd to /usr/ports/sysutils/portupgrade

Because it doesn't live there anymore. Fetch your sources and if you do it from the command line then for the first time do a portsnap fetch extract and if not the first then portsnap fetch update

This should update everything and rebuild the index so that everything knows where portupgrade lives, then you can try the pkg_add

03-07-2007, 03:17 PM
portupgrade was just moved to a different category which is ports-mgmt from sysutils.

Just get your ports updated and then do this and it will work fine.

cd /usr/ports/ports-mgmt/portupgrade ; make deinstall ; make install clean

You cannot use portupgrade or other ports manager software to upgrade portupgrade after the category change.