Portupgrade can't find packages on server

Installing and upgrading FreeBSD.

Portupgrade can't find packages on server

Postby RogerRoger » 15 Oct 2011, 18:34

Hi

I'm running FreeBSD 8.2-RELEASE-p3, and now I'm trying to upgrade all programs installed via ports on my system. I have done [CMD=" "]portsnap fetch && portsnap update[/CMD] without problem. When I try to run [CMD=" "]portupgrade -aPc[/CMD] I eventually get this error:

Code: Select all
--->  Checking for the latest package of 'security/openvpn'
--->  Fetching the package(s) for 'openvpn-2.2.1_1' (security/openvpn)
--->  Fetching openvpn-2.2.1_1
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.2-release/All/openvpn-2.2.1_1.tbz: Syntax error, command unrecognized
** The command returned a non-zero exit status: 1
** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.2-release/All/openvpn-2.2.1_1.tbz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.2-release/All/openvpn-2.2.1_1.txz: Syntax error, command unrecognized
** The command returned a non-zero exit status: 1


Portupgrade will continue but it takes a very long time to compile all packages so I'd rather find binary packages.

Browsing ftp.freebsd.org I find the binary package that portupgrade is looking for in:
[FILE]/pub/FreeBSD/ports/i386/packages-9-current/All[/FILE]
I then try to set both [FILE]PACKAGESITE[/FILE] and [FILE]PKG_PATH[/FILE] to:
ftp://ftp.freebsd.org//pub/FreeBSD/ports/i386/packages-9-current/All
but this doesn't change anything. Portupgrade still looks in 8.2 directory.

Is my ports directory somehow synced to the version 9 of FreeBSD? Can I sync it back to 8.2? Or can I somehow make portupgrade look in the version 9 directory?

Thanks in advance.
RogerRoger
Junior Member
 
Posts: 3
Joined: 15 Oct 2011, 18:15

Postby DutchDaemon » 15 Oct 2011, 20:17

You don't want to run FreeBSD 9 packages on a FreeBSD 8 system. They're compiled against system libraries you don't have.
User avatar
DutchDaemon
Old Fart
 
Posts: 10467
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby RogerRoger » 15 Oct 2011, 21:06

Makes sense.

Any idea how to downgrade the port tree to version 8.2? I looked through the man page for [FILE]portsnap[/FILE] and [FILE]/etc/portsnap.conf[/FILE] but couldn't find any info on changing versions.
RogerRoger
Junior Member
 
Posts: 3
Joined: 15 Oct 2011, 18:15

Postby DutchDaemon » 15 Oct 2011, 23:07

The ports tree is the same for every version of FreeBSD, i.e. there is only one. Since ports are compiled, you're compiling them on the FreeBSD you currently have. against the libraries you currently have, which is why the ports tree itself can be "version-less". In other words, a [cmd=]portsnap fetch extract[/cmd] will check out and installl a perfectly usable ports tree, and [cmd=]portsnap fetch update[/cmd] will keep it up to date thereafter.
User avatar
DutchDaemon
Old Fart
 
Posts: 10467
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby RogerRoger » 15 Oct 2011, 23:58

Does that mean that two packages (.tbz files) can be different because they are compiled on different BSD versions but still have the same version number and thus the exact same name?
RogerRoger
Junior Member
 
Posts: 3
Joined: 15 Oct 2011, 18:15



Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 0 guests