Subject: pkg_add weirdness
To: None <tech-pkg@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: tech-pkg
Date: 05/06/2004 22:43:18
This is an odd one.
I've got two systems that I just deployed with 2.0_BETA on them, and
I'm trying to install some binary packages (most of which I've successfully
deployed on other systems), but I'm getting errors I've never seen
before:
lychee# ls
ccache-2.3nb1.tgz distcc-2.14.tgz popt-1.7nb4.tgz tcsh-6.12.00nb1.tgz
lychee# pkg_add -v tcsh
parsing: .
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
Requested space: 1334284 bytes, free space: 493840384 bytes in /tmp/instmp.00801a
running: tar --fast-read --use-compress-program gzip -xpf /tmp/./tcsh-6.12.00nb1.tgz +CONTENTS
running: tar --use-compress-program gzip -xpf /tmp/./tcsh-6.12.00nb1.tgz
pkg_add: Package `/tmp/./tcsh-6.12.00nb1.tgz' OS mismatch:
pkg_add: NetBSD/i386 1.6ZJ (pkg) vs. NetBSD/i386 2.0_BETA (this host)
Package `tcsh-6.12.00nb1' conflicts with `static-tcsh-[0-9]*'.
Running install with PRE-INSTALL for tcsh-6.12.00nb1.
pkg_add: install script returned error status
pkg_add: 1 package addition failed
lychee#
However, if I add it from a *different* login session (I've got two logins
on this system right now), it *works*:
lychee# pkg_add tcsh
pkg_add: Package `/tmp/./tcsh-6.12.00nb1.tgz' OS mismatch:
pkg_add: NetBSD/i386 1.6ZJ (pkg) vs. NetBSD/i386 2.0_BETA (this host)
===> Updating /etc/shells
lychee#
pkg_add *only* seems to work from this session; if I ssh in again,
I get the non-working behavior. The working session has been logged
in longer. Oh, and it works if I log in from the console.
Since this is a new machine, I'm sure I changed *something* in the
three hours between when I logged in the working session and the
non-working one, but I'm not sure *what* I changed. What could
be going on here? Ideas?
lychee# w
10:40PM up 7:36, 3 users, load averages: 0.96, 0.40, 0.21
USER TTY FROM LOGIN@ IDLE WHAT
root co - 10:40PM 0 w
riz p0 random.tastylime.net 3:09PM 0 -csh
riz p2 adsl-66-124-71-70.dsl.sntc01.pacbell.net 6:09PM 5 -csh
lychee#
(works from console and ttyp0, not from ttyp2)
Thanks,
+j
--
Jeff Rizzo http://boogers.sf.ca.us/~riz