# cat /etc/pkg.conf
installpath = http://ftp.openbsd.org/%m/
installpath += http://openbsd.cs.toronto.edu/%m/
installpath += http://athena.caslab.queensu.ca/%m/

# echo $PKG_PATH

PKG_PATH is empty as I use pkg.conf

> On Nov 3, 2016, at 3:43 PM, Ax0n <a...@h-i-r.net> wrote:
>
> Can we see the contents of /etc/pkg.conf and/or your $PKG_PATH variable from
inside root's session?
>
> On Wed, Nov 2, 2016 at 6:48 PM, Chris Huxtable <ch...@huxtable.ca
<mailto:ch...@huxtable.ca>> wrote:
> OpenBSD Community,
>
> I upgraded my OpenBSD router from 5.9 to 6.0 by clean install and copied a
> number of my old configs to the new install. I have almost everything in a
> working state except one program, pkg_add. I have tried to sort this out,
done
> another clean install, reviewed all my configs, and reached the end of my
> understanding. Below are tests I have preformed and their output and configs
I
> think may be relevant.
>
> # pkg_add nano
> Error from http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/
<http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/>
> ftp: ftp.openbsd.org <http://ftp.openbsd.org/>: no address associated with
name
> http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/
<http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/> is empty
> Error from http://openbsd.cs.toronto.edu/pub/OpenBSD/6.0/packages/amd64/
<http://openbsd.cs.toronto.edu/pub/OpenBSD/6.0/packages/amd64/>
> ftp: openbsd.cs.toronto.edu <http://openbsd.cs.toronto.edu/>: no address
associated with name
> http://openbsd.cs.toronto.edu/pub/OpenBSD/6.0/packages/amd64/
<http://openbsd.cs.toronto.edu/pub/OpenBSD/6.0/packages/amd64/> is empty
> Error from http://athena.caslab.queensu.ca/pub/OpenBSD/6.0/packages/amd64/
<http://athena.caslab.queensu.ca/pub/OpenBSD/6.0/packages/amd64/>
> ftp: athena.caslab.queensu.ca <http://athena.caslab.queensu.ca/>: no address
associated with name
> http://athena.caslab.queensu.ca/pub/OpenBSD/6.0/packages/amd64/
<http://athena.caslab.queensu.ca/pub/OpenBSD/6.0/packages/amd64/> is empty
> Can't find nano
>
> $ uname -a
> OpenBSD xyz.abc.def 6.0 GENERIC.MP#2319 <http://generic.mp/#2319> amd64
>
> $ host ftp.openbsd.org <http://ftp.openbsd.org/>
> ftp.openbsd.org <http://ftp.openbsd.org/> is an alias for
openbsd.sunsite.ualberta.ca <http://openbsd.sunsite.ualberta.ca/>.
> openbsd.sunsite.ualberta.ca <http://openbsd.sunsite.ualberta.ca/> has
address 129.128.5.191
>
> $ dig ftp.openbsd.com <http://ftp.openbsd.com/>
> […]
> ;; ANSWER SECTION:
> ftp.openbsd.com <http://ftp.openbsd.com/>.        21599   IN      CNAME
openbsd.sunsite.ualberta.ca <http://openbsd.sunsite.ualberta.ca/>.
> openbsd.sunsite.ualberta.ca <http://openbsd.sunsite.ualberta.ca/>. 21599 IN
A       129.128.5.191
>
> ;; Query time: 789 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> […]
>
> $ ping -c 1 google.com <http://google.com/>
> PING google.com <http://google.com/> (172.217.0.174): 56 data bytes
> 64 bytes from 172.217.0.174 <http://172.217.0.174/>: icmp_seq=0 ttl=59
time=5.488 ms
> --- google.com <http://google.com/> ping statistics ---
> 1 packets transmitted, 1 packets received, 0.0% packet loss
> round-trip min/avg/max/std-dev = 5.488/5.488/5.488/0.000 ms
>
> $ cat /etc/resolv.conf
> search abc.def ghi.jkl mno.pqr
> nameserver 127.0.0.1
> nameserver 8.8.8.8
> nameserver 8.8.4.4
> lookup bind file
>
> $ cat /etc/hostname.pppoe0
> inet 0.0.0.0 255.255.255.255 NONE \
>         pppoedev em1 authproto pap \
>         authname 'thisIsNotMyAuthName' authkey 'thisIsNotMyAuthKey' up
> dest 0.0.0.1
>
> group egress
>
> !/sbin/route add default -ifp pppoe0 0.0.0.1
>
> $ cat /etc/hostname.em1
> group egress
>
> up
>
> $ ftp -o /tmp/test.html
> http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/
<http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/>
> Trying 129.128.5.191...
> Requesting http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/
<http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/>
> 100% |**************************************************|  1171 KB    00:02
> 1199135 bytes received in 2.65 seconds (441.42 KB/s)
>
>
> Would anyone have insight as to why everything works except pkg_add? Any
help
> would be appreciated.
>
> Regards,
>
> Chris

Reply via email to