From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 16:30:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8682C16A4B3 for ; Thu, 2 Oct 2003 16:30:17 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id C870B43FA3 for ; Thu, 2 Oct 2003 16:30:16 -0700 (PDT) (envelope-from andrewter@comcast.net) Received: from comcast.net (209-77-207-234.prn.com[209.77.207.234]) by comcast.net (rwcrmhc11) with SMTP id <2003100223301601300kqn2de> (Authid: andrewter); Thu, 2 Oct 2003 23:30:16 +0000 Message-ID: <3F7CB508.2060403@comcast.net> Date: Thu, 02 Oct 2003 16:30:16 -0700 From: Andrew Terekhov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20031002040426.E97F316A4F5@hub.freebsd.org> <3F7BAE36.5040609@comcast.net> <20031002103215.GB17569@rot13.obsecurity.org> In-Reply-To: <20031002103215.GB17569@rot13.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Setting fetch URIs for portupgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 23:30:17 -0000 I am confused regarding where correct packages for 5.1 release are located. It seems that portupgrade is looking for correct names of the latest packages, but they are never located at the right URI. For example, armada# portupgrade -PP kde ---> Checking the availability of the latest package of 'x11/kde3' ---> Fetching the package(s) for 'kde-3.1.4' (x11/kde3) ---> Fetching kde-3.1.4 fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All/kde -3.1.4.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-5.1-rel ease/All/kde-3.1.4.tbz fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All/kde -3.1.4.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-5.1-rel ease/All/kde-3.1.4.tgz ** Failed to fetch kde-3.1.4 ** The following packages were not downloaded (*:skipped / !:failed) ! kde-3.1.4 (fetch error) ** No latest link for '' (x11/kde3) -- giving up ** Could not fetch the latest version '3.1.4' ** The package of 'x11/kde3' is not found. ** The following packages were not installed or upgraded (*:skipped / !:failed) ! x11/kde3 (kde-3.1.2) (package not found) It looks like kde-3.1.4 is the latest package and it is not found at this (supposedly correct) URI: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All/ OTOH I can see that kde-3.1.4 is located at this URI: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/All This happens to many of packages installed on my system, not only kde. Can I freely grab all I need from the above URI or I may be getting something compiled for a different platform? Thanks a lot, Andrew Kris Kennaway wrote: > On Wed, Oct 01, 2003 at 09:48:54PM -0700, Andrew Terekhov wrote: > >>Hi all, >> >>I am running FreeBSD 5.1 Release. I updated all sources, ports and docs >>by cvsup. I am trying to do a binary upgrade of my system by installing >>latest packages. I run: portupgrade -aPPR. fetch phase fails to get >>packages because it goes to a wrong site: >>ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All >> >>OTOH I can see that the latest packages that portupgrade trying to fetch >>are located here: >>ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All > > > Nope, those are the packages for RELENG_4; the 5.x packages are in > packages-5-current. However fetch is actually doing the right thing > in only fetching from the packages-5.1-release directory on your > 5.1-RELEASE, because packages built for newer versions of > FreeBSD-CURRENT are not guaranteed to work on 5.1-RELEASE. > > >>How can I change URIs where fetch is looking for the latest packages? > > > See the pkg_add manpage. > > >>Setting PKG_SITES environment variable doesn't have any effect. > > > Because that's not the right environment variable. > > Kris