On 07/05/2013 12:34 PM, MK2 wrote:
Jean Lucas wrote:
On 07/05/2013 11:14 AM, MK2 wrote:
# pkg_add http://ftp.openbsd.org/pub/OpenBSD/5.3/packages/
amd64/gettext-0.18.2p1.tgz
Fatal error: Ustar [http://ftp.openbsd.org/pub/OpenBSD/5.3/packages/
amd64/gettext-0.18.2p1.tgz][share/locale/zh_TW/LC_MESSAGES/
gettext-tools.mo]: Premature end of archive
Adjusting sha for /usr/local/share/locale/zh_TW/LC_MESSAGES/
gettext-tools.mo from u1Zb6iQbP0lQDC/MvuxOekHKTs470zwHLDJBzvItNjc=
to FF9+wEW+LROgonlt3qJWeHT+fvcXX+ehwx+Rc1CBlfA=
Fatal error: Installation of gettext-0.18.2p1 failed, partial
installation recorded as partial-gettext-0.18.2p1
at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 808
# pkg_info
joe-3.7p1 Joe's Own Editor
libiconv-1.14p0 character set conversion library
partial-gettext-0.18.2p1 GNU gettext
# uname -rsm
OpenBSD 5.3 amd64
This is a nice email. A bunch of text with no real purpose.
Did you define PKG_CACHE and not make the directory?
Hi Jean, tried mkdir /root/pkg and prepended "env PKG_CACHE=/root/pkg"
to my pkg_add(above) but same error. Also, I just tried downloading the
package with lynx and doing pkg_add on the file name, but also get the
error. Regards MK. PS- sorry for the ugly text
Are you running lynx as root? Bad idea. But if you're not, this is why
you can't access the file, or lynx is not even saving it to the root
directory.
Try using the mirror closest to you for starters. Use a non-privileged
user + sudo for pkg_add. Issue `export PKG_CACHE=/home/foo/cache', make
this directory, ensure you have permissions for it, then try adding the
package again.