f496 [Solved] Portupgrade can't find packages on server - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old October 15th, 2011, 19:34
RogerRoger RogerRoger is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default Portupgrade can't find packages on server

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 portsnap fetch && portsnap update without problem. When I try to run portupgrade -aPc I eventually get this error:

Code:
--->  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:
/pub/FreeBSD/ports/i386/packages-9-current/All
I then try to set both PACKAGESITE and PKG_PATH to:
ftp://ftp.freebsd.org//pub/FreeBSD/p...-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.

Last edited by DutchDaemon; October 15th, 2011 at 21:16. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old October 15th, 2011, 21:17
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,838
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

You don't want to run FreeBSD 9 packages on a FreeBSD 8 system. They're compiled against system libraries you don't have.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
RogerRoger (October 15th, 2011)
  #3  
Old October 15th, 2011, 22:06
RogerRoger RogerRoger is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Makes sense.

Any idea how to downgrade the port tree to version 8.2? I looked through the man page for portsnap and /etc/portsnap.conf but couldn't find any info on changing versions.

Last edited by DutchDaemon; October 16th, 2011 at 00:06.
Reply With Quote
  #4  
Old October 16th, 2011, 00:07
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,838
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

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 portsnap fetch extract will check out and installl a perfectly usable ports tree, and portsnap fetch update will keep it up to date thereafter.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
RogerRoger (October 16th, 2011)
  #5  
Old October 16th, 2011, 00:58
RogerRoger RogerRoger is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #6  
Old October 16th, 2011, 01:21
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,838
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

Yes.

E.g.

ftp://ftp.freebsd.org/pub/FreeBSD/po...nd98-9.8.1.tbz
ftp://ftp.freebsd.org/pub/FreeBSD/po...nd98-9.8.1.tbz
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
RogerRoger (October 16th, 2011)
Reply

Tags
ports, portsnap, portupgrade, upgrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find Asterisk packages in 7 and 8 stable. bfm Installation and Maintenance of FreeBSD Ports or Packages 5 March 31st, 2011 01:56
[Solved] Where to find ports & packages for FreeBSD andy8 Installation and Maintenance of FreeBSD Ports or Packages 4 October 27th, 2010 00:14
Problems with portupgrade and getting the most recent packages atarahas Installation and Maintenance of FreeBSD Ports or Packages 2 April 22nd, 2010 01:37
[Solved] [PCBSD] Problem using portupgrade with Cmake and some KDE Packages randy Installation and Maintenance of FreeBSD Ports or Packages 3 March 1st, 2010 06:42
portupgrade xorg-server failed ! fch Installation and Maintenance of FreeBSD Ports or Packages 2 January 28th, 2009 16:20


All times are GMT +1. The time now is 06:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0