On Sun, Feb 21, 2016 at 01:06:37AM -0500, Ежи рыбы wrote: > Ah, the update seems to run smoothly now. Should PKG_PATH supersede the > settings in /etc/pkg.conf?
The command in your first report was run as root. Now you're running every command as a regular user. The http:// mirror doesn't fail because ftp is not trying to read the netrc file. > > Thanks > > On 2/21/2016 12:16 AM, [email protected] wrote: > >Sat, 20 Feb 2016 22:59:59 -0500 Ежи рыбы <[email protected]> > >>$ printenv PKG_PATH > >>ftp://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/amd64 > >>$ egrep -v '(^#|^$)' /etc/{,examples/}pkg.conf > >>/etc/pkg.conf:installpath = > >>http://ftp5.usa.openbsd.org/pub/OpenBSD/%c/packages/%a/ > > > >Try setting this in ~/.profile to match what you have in /etc/pkg.conf > > > >export > >PKG_PATH=http://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/`arch > >-s`/ > > > >NB: use plain text message to reply > > > >20.02.2016, 22:19, <[email protected]>: > >> > >>>Sat, 20 Feb 2016 17:45:02 -0500 Ежи рыбы <[email protected]> > >>> > >>>When attempting to update packages with: # pkg_add -vui > >>>the update fails, with a series of error messages > >>>ftp: /root/.netrc: Permission denied > >> > >>1) What does this printenv(1) produce? > >> > >>$ printenv PKG_PATH > >> > >>2) What do you have in pkg.conf(5)? > >> > >>$ egrep -v '(^#|^$)' /etc/{,examples/}pkg.conf > >> > >>3) Compare this with the mirrors list: > >> > >>http://www.openbsd.org/ftp.html > >>http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/build/mirrors.dat > >>http://spacehopper.org/mirmon/ > >> > >>4) Try ftp(1) connect manually with the results from 1) & 2) like > >>this > >> > >>$ ftp -d \ > >> ftp://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ > -- Juan Francisco Cantero Hurtado http://juanfra.info
