Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Oct 2003 16:30:16 -0700
From:      Andrew Terekhov <andrewter@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting fetch URIs for portupgrade
Message-ID:  <3F7CB508.2060403@comcast.net>
In-Reply-To: <20031002103215.GB17569@rot13.obsecurity.org>
References:  <20031002040426.E97F316A4F5@hub.freebsd.org> <3F7BAE36.5040609@comcast.net> <20031002103215.GB17569@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F7CB508.2060403>