inetutils-server, OpenSP and units install glitches and fixes
- Date: Fri, 24 Mar 2017 21:09:46 +0000 (UTC)
- From: "Ian Lambert via cygwin" <cygwin@xxxxxxxxxx>
- Subject: inetutils-server, OpenSP and units install glitches and fixes
Running setup updates and installs in mirror-mode, I had 3 problems. The first is "fixed." The 2nd is fixed, with a question. The 3rd is still a puzzle.
Package: _/Unknown package
inetutils-server.sh exit code 1
OpenSP.sh exit code 127
2017/03/24 09:48:43 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/inetutils-server.sh"
*** Warning: The owner and the Administrators need
*** Warning: to have .w. permission to /var/run.
*** Warning: Here are the current permissions and ACLS:
*** Warning: drwxr-xr-x 1 myuser Domain Users 0 Mar 14 17:48 /var/run
*** Warning: # file: /var/run
*** Warning: # owner: myuser
*** Warning: # group: Domain Users
*** Warning: user::rwx
*** Warning: group::r-x
*** Warning: other:r-x
*** Warning: Please change the user and/or group ownership,
*** Warning: permissions, or ACLs of /var/run.
*** ERROR: Problem with /var/run directory. Exiting.
2017/03/24 09:49:28 abnormal exit: exit code=1
(1) "Fix:" Finally realized ftp, talk, telnet or uucp aren't needed, and uninstalled inetutils-server and inetutils. "Common networking clients and servers" sounded necessary, but apparently not. :D
2017/03/24 09:49:28 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/OpenSP.sh"
/etc/postinstall/OpenSP.sh: line 1: /usr/bin/install-catalog: No such file or directory
2017/03/24 09:49:28 abnormal exit: exit code=127
Fix: installed sgml-common (containing install-catalog). After the above error, it was not yet installed and not pending. Then installed OpenSP. It was also not yet installed, and not pending.
Question: These were obviously needed for each other, and needed by other packages, so why didn't the first install work, and why did they not show up as pending the next time?
(3) "units" converter sounded useful, but install failed with:
2017/03/24 09:51:44 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_units_cur.sh"
Error connecting to currency server. <urlopen error [Errno 8] Name or service not known>
So, this is trying to do:
$ cat zp_units_cur.sh
/usr/bin/find /usr/share/units/currency.units -mtime +0 -exec /usr/bin/units_cur \;
and units_cur is a python3 script trying to do:
$ grep http /usr/bin/units_cur
currencies = ET.parse(urllib.request.urlopen('http://rss.timegenie.com/forex.xml')).findall('data')
outstr += '\n\n# Precious metals prices from http://services.packetizer.com/spotprices/\n\n'
spotprices = ET.parse(urllib.request.urlopen('http://services.packetizer.com/spotprices/?f=xml'))
And of course this fails behind my proxy, because with --norc and --noprofile, setup/bash doesn't have the proxy info'.
Questions: Is it kosher for security for an installing package like this to obtain something from the internet like this, and if so, how can I give it the proxy info (other than running it with rc and profile)?
On a related note, using not ancient Red Hat 5.6 where the mirror is stored, tar won't expand the Cygwin packages?
$ tar -xvf units-2.13-1.tar.xz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 9640 bytes from units-2.13-1.tar.xz
tar: Error exit delayed from previous errors
$ tar --version
tar (GNU tar) 1.15.1
but tar Packaged by Cygwin (1.29-1) will.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple