[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    Re: Package update fails with permission errors
From:       Juan Francisco Cantero Hurtado <iam () juanfra ! info>
Date:       2016-02-21 22:25:29
Message-ID: 20160221222529.GA552 () edda
[Download RAW message or body]

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, lists@wrant.com wrote:
> >Sat, 20 Feb 2016 22:59:59 -0500 Ежи рыбы <diodontidae@yandex.ru>
> >>$ 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, <lists@wrant.com>:
> >>
> >>>Sat, 20 Feb 2016 17:45:02 -0500 Ежи рыбы <diodontidae@yandex.ru>
> >>>
> >>>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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic