pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

Daniel Eischen deischen at freebsd.org
Wed Feb 10 19:19:14 UTC 2016


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


More information about the freebsd-ports mailing list