Re: What does it mean this error when I try install a package?
On 2017/05/15 21:23, Ajitabh Pandey wrote: > Stuart, > > On Thu, May 11, 2017 at 9:36 PM, Stuart Henderson > wrote: > > On 2017-05-11, Ajitabh Pandey 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..." > > > Thanks for pointing that out. Although I am not sure if having multiple > mirrors in that file will cause an issue or the utilities using the > installurl will ignore all lines but the first one. I have now > commented all the other mirrors in my /etc/installurl file. What actually happens at present is that it uses the first line for pkg_add, the last line for syspatch. But it's unspecified so don't rely on that :) btw, generally ftp.openbsd.org is not the best choice - for almost all users one of the other mirrors will work better. > > $ 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). > > > Interesting, so when I do the following on my box, I do not see the > 2.7.13p1 there. See below - Hmm - I think I must have been looking at /snapshots/ instead of 6.1, though I was sure I wasn't... > Yep, I did that exactly. When I was choosing from the list then I was > just getting the prompt back. That suggests that the package was already installed..
Re: What does it mean this error when I try install a package?
Stuart, On Thu, May 11, 2017 at 9:36 PM, Stuart Henderson wrote: > On 2017-05-11, Ajitabh Pandey 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..." > Thanks for pointing that out. Although I am not sure if having multiple mirrors in that file will cause an issue or the utilities using the installurl will ignore all lines but the first one. I have now commented all the other mirrors in my /etc/installurl file. > > > $ 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). > Interesting, so when I do the following on my box, I do not see the 2.7.13p1 there. See below - $ pkg_info -Q python |grep "^python-2.*" python-2.7.13p0 (installed) > 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. > Yep, I did that exactly. When I was choosing from the list then I was just getting the prompt back. While when specifying the full package name was throwing the error I mentioned. I guess its a matter of error message and the fact that the packages-stable directory does not yet exists in the mirrors. $ doas pkg_add python quirks-2.304 signed on 2017-04-02T15:01:33Z Ambiguous: choose package for python a 0: 1: python-2.7.13p0 2: python-3.4.5p2 3: python-3.5.2p2 4: python-3.6.0p0 Your choice: 1 $ 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 $ > > 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. > Thanks, it seems so. > > > 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. > Python is working fine now. I understand that symlinks are mere convinience. Regards. ~ajitabhpandey
Re: What does it mean this error when I try install a package?
Hi Ron, Apologies for delayed response. Here are the contents for /etc/installurl file. I have commented out all entries but one. $ cat /etc/installurl # OpenBSD mirror https://ftp.openbsd.org/pub/OpenBSD ## Germany Mirrors # Esslinge #https://mirror.hs-esslingen.de/pub/OpenBSD # Berlin #https://ftp.spline.de/pub/OpenBSD # Frankfurt #https://ftp.hostserver.de/pub/OpenBSD Regards. ~ajitabhpandey On Thu, May 11, 2017 at 8:18 PM, Ron Georgia wrote: > Ajitabh, > Could you copy and paste the /etc/installurl here? I can try to do the > same thing on my PC to see if I get the same error. > Normally I simply pkg_add python, then pick the version I want to install, > as was already suggested. I run python 2.7 and 3.6 on all my machines. I > typically do not follow the suggestion from the pkg_info exactly. I usually > create a /usr/local/bin/python2 and python3 to cover my pythonic cravings. > Actually, the best way to develop using python is to use their virtual > environment. My experience is that OpenBSD has provided an excellent > platform for your python development experience. > I know I did not explain ‘why’ you could not install python-2.7.13p0.tgz, > but hopefully you have enough to install and start coding. Love python. > > > On May 11, 2017, at 4:46 AM, Ajitabh Pandey > wrote: > > > > Hi, > > > > 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) > > > > $ 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 > > > > 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. > > > > 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. > > > > Regards. > > -- > > ~ajitabhpandey > > > > On Mon, Apr 17, 2017 at 5:57 PM, Jiri B wrote: > > > >> On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: > >>> On Mon, 17 Apr 2017 11:02:37 + > >>> "C. L. Martinez" wrote: > >>> > pkg_add -v python-2.7 > >>> > >>> There is no package called python-2.7. The package you want is called > >>> python-2.7.13p0. You have a few options: > >>> > >>> 1. pkg_add python, then select the version you want. > >>> 2. pkg_add python-2.7.13p0 > >>> 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) > >> > >> ^ or use 'python%2.7' > >> > >> j. > >> > >> > > > > > > -- > > Ajitabh Pandey > > http://ajitabhpandey.info/ | http://unixclinic.net/ | > > http://buddingthoughts.info > > ICQ - 150615062 > > Registered Linux User - 240748 > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: What does it mean this error when I try install a package?
On 2017-05-11, Ajitabh Pandey 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.
Re: What does it mean this error when I try install a package?
Ajitabh, Could you copy and paste the /etc/installurl here? I can try to do the same thing on my PC to see if I get the same error. Normally I simply pkg_add python, then pick the version I want to install, as was already suggested. I run python 2.7 and 3.6 on all my machines. I typically do not follow the suggestion from the pkg_info exactly. I usually create a /usr/local/bin/python2 and python3 to cover my pythonic cravings. Actually, the best way to develop using python is to use their virtual environment. My experience is that OpenBSD has provided an excellent platform for your python development experience. I know I did not explain ‘why’ you could not install python-2.7.13p0.tgz, but hopefully you have enough to install and start coding. Love python. > On May 11, 2017, at 4:46 AM, Ajitabh Pandey wrote: > > Hi, > > 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) > > $ 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 > > 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. > > 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. > > Regards. > -- > ~ajitabhpandey > > On Mon, Apr 17, 2017 at 5:57 PM, Jiri B wrote: > >> On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: >>> On Mon, 17 Apr 2017 11:02:37 + >>> "C. L. Martinez" wrote: >>> pkg_add -v python-2.7 >>> >>> There is no package called python-2.7. The package you want is called >>> python-2.7.13p0. You have a few options: >>> >>> 1. pkg_add python, then select the version you want. >>> 2. pkg_add python-2.7.13p0 >>> 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) >> >> ^ or use 'python%2.7' >> >> j. >> >> > > > -- > Ajitabh Pandey > http://ajitabhpandey.info/ | http://unixclinic.net/ | > http://buddingthoughts.info > ICQ - 150615062 > Registered Linux User - 240748
Re: What does it mean this error when I try install a package?
Hi, 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) $ 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 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. 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. Regards. -- ~ajitabhpandey On Mon, Apr 17, 2017 at 5:57 PM, Jiri B wrote: > On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: > > On Mon, 17 Apr 2017 11:02:37 + > > "C. L. Martinez" wrote: > > > > > pkg_add -v python-2.7 > > > > There is no package called python-2.7. The package you want is called > > python-2.7.13p0. You have a few options: > > > > 1. pkg_add python, then select the version you want. > > 2. pkg_add python-2.7.13p0 > > 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) > > ^ or use 'python%2.7' > > j. > > -- Ajitabh Pandey http://ajitabhpandey.info/ | http://unixclinic.net/ | http://buddingthoughts.info ICQ - 150615062 Registered Linux User - 240748
Re: What does it mean this error when I try install a package?
On Mon, Apr 17, 2017 at 09:37:56PM +1000, Steven McDonald wrote: > On Mon, 17 Apr 2017 11:02:37 + > "C. L. Martinez" wrote: > > > pkg_add -v python-2.7 > > There is no package called python-2.7. The package you want is called > python-2.7.13p0. You have a few options: > > 1. pkg_add python, then select the version you want. > 2. pkg_add python-2.7.13p0 > 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1)) ^ or use 'python%2.7' j.
Re: What does it mean this error when I try install a package?
On Mon, Apr 17, 2017 at 01:39:22PM +0200, Christoph R. Murauer wrote: > > Hi all, > > > > After install an OpenBSD 6.1, I am trying to install some packages, > > for example python-2.7. When I launch the following command: > > > > pkg_add -v python-2.7 > > > > ... returns the following errors: > > > > http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/: Read short > > file. > > http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/python-2.7.tgz: > > ftp: Error retrieving file: 404 Not Found > > signify: gzheader truncated > > Can't find python-2.7 > > Extracted 11548847 from 11550420 > > > > What does these errors mean?? My PKG_PATH variable is > > "PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64"; > > It means, that the package you try to install does not exist. Run > > pkg_info -Q python > > See FAQ https://www.openbsd.org/faq/faq15.html#PkgFind > > you see something like (in my case it is already installed) > > ... > python-2.7.13p0 (installed) > ... > > You can also check the list of packages at > http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/index.txt > > So, try > > pkg_add -v python-2.7.13p0 > > or, check the -z switch of pkg_add (man pkg_add) > > pkg_add -v -z python-2.7.13 > Yep, undertood. Many thanks. -- Greetings, C. L. Martinez
Re: What does it mean this error when I try install a package?
> Hi all, > > After install an OpenBSD 6.1, I am trying to install some packages, > for example python-2.7. When I launch the following command: > > pkg_add -v python-2.7 > > ... returns the following errors: > > http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/: Read short > file. > http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/python-2.7.tgz: > ftp: Error retrieving file: 404 Not Found > signify: gzheader truncated > Can't find python-2.7 > Extracted 11548847 from 11550420 > > What does these errors mean?? My PKG_PATH variable is > "PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64"; It means, that the package you try to install does not exist. Run pkg_info -Q python See FAQ https://www.openbsd.org/faq/faq15.html#PkgFind you see something like (in my case it is already installed) ... python-2.7.13p0 (installed) ... You can also check the list of packages at http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/index.txt So, try pkg_add -v python-2.7.13p0 or, check the -z switch of pkg_add (man pkg_add) pkg_add -v -z python-2.7.13
Re: What does it mean this error when I try install a package?
On Mon, 17 Apr 2017 11:02:37 + "C. L. Martinez" wrote: > pkg_add -v python-2.7 There is no package called python-2.7. The package you want is called python-2.7.13p0. You have a few options: 1. pkg_add python, then select the version you want. 2. pkg_add python-2.7.13p0 3. pkg_add -z python-2.7 (fuzzy matching, see pkg_add(1))
What does it mean this error when I try install a package?
Hi all, After install an OpenBSD 6.1, I am trying to install some packages, for example python-2.7. When I launch the following command: pkg_add -v python-2.7 ... returns the following errors: http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/: Read short file. http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/python-2.7.tgz: ftp: Error retrieving file: 404 Not Found signify: gzheader truncated Can't find python-2.7 Extracted 11548847 from 11550420 What does these errors mean?? My PKG_PATH variable is "PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64"; -- Greetings, C. L. Martinez