Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2016 14:10:11 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        freebsd-ports@freebsd.org
Subject:   pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?
Message-ID:  <Pine.GSO.4.64.1602101353240.22071@sea.ntplx.net>

next in thread | raw e-mail | index | archive | help
I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

   /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

   vega: {
     url: "file://localhost/usr/local/poudriere/data/packages/11amd64-default",
     mirror_type: "srv",
     signature_type: "none"
     fingerprints: "/usr/share/keys/pkg",
     enabled: yes
   }

'pkg upgrade -r vega' yields this:

   #  pkg upgrade -r vega
   Updating vega repository catalogue...
   vega repository is up-to-date.
   All repositories are up-to-date.
   Checking for upgrades (360 candidates): 100%
   Processing candidates (360 candidates): 100%
   The following 139 package(s) will be affected (of 0 checked):

   New packages to be INSTALLED:
           cblas: 1.0_4 [vega]
           ...

   Installed packages to be UPGRADED:
           xterm: 320 -> 322 [vega]
           ...

   Installed packages to be REINSTALLED:
           yajl-2.1.0 [vega] (provided shared library changed)
           ...

   The operation will free 20 MiB.
   323 MiB to be downloaded.

   Proceed with this action? [y/N]: y
   Checking integrity... done (0 conflicting)
   pkg: archive_read_open_filename(localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz):
   Failed to open 'localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz'

Fetch however seems to work fine:

   $ fetch file://localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz
   pciids-20160116.txz                           100% of  191 kB  332 MBps 00m00s

Fetch also works fine using my hostname (vega) instead of localhost,
while 'pkg upgrade' still fails in the same way.  I am not using DNS
for local hosts, just /etc/hosts.

--
DE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.1602101353240.22071>