On 2017-05-11, Ajitabh Pandey <[email protected]> wrote:
> I got a similar message when I try to install python, but upong
> investigating I realise that python was already installed - perhaps as a
> pre-requisite for glib2. I am not using PKG_PATH, rather I use
> /etc/installurl for specifying a list of my mirrors (man installurl(5) for
> details)

/etc/installurl is for specifying a *single* mirror, not a list. As the
manual says, "The /etc/installurl file contains a single line specifying
an OpenBSD mirror..."

> $ doas pkg_add python-2.7.13p0
> quirks-2.304 signed on 2017-04-02T15:01:33Z
> https://ftp.openbsd.org/pub/OpenBSD/6.1/packages-stable/amd64/python-2.7.13p0.tgz:
> ftp: Error retrieving file: 404 Not Found
> signify: gzheader truncated

Error text could be improved, but this error is occurring because you
have specified a full package name including version, and that doesn't
exist (in 6.1, it's 2.7.13p1).

I suggest either "pkg_add python%2.7" as shown in the pkg_add(1) manual,
or just "pkg_add python" and choose from the list.

> For a very long time I was trying to understand why pkg_add is looking for
> package in packages-stable directory when this directory does not exists on
> any of the mirrors. I checked the standard directory paths for mirror on
> OpenBSD website and this directory was not there also.
> 
> Can someone help me understand why it is so, or point to some relevant
> document.

/packages-stable *might* be used sometime in the future.

> Also, I had to run the following commands as recommended by pkg_info python
> 
> $ doas ln -sf /usr/local/bin/python2.7 /usr/local/bin/python
> $ doas ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3
> $ doas ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config
> $ doas ln -sf /usr/local/bin/pydoc2.7  /usr/local/bin/pydoc
>
> Do we have any alternatives management system in OpenBSD like we have in
> linux or this has to be done by hand.

You don't have to do this, nothing in packages expects this, they look for
the full name including version. It's only needed if you have programs
from another source that expect to have the symlinks.


Reply via email to