[csw-users] Odd problem installing pkg-get

Krist van Besien krist.vanbesien at gmail.com
Tue Feb 28 15:59:03 CET 2006


On 2/28/06, Dennis Clarke <blastwave at gmail.com> wrote:
> On 2/28/06, Krist van Besien <krist.vanbesien at gmail.com> wrote:
> > Hello.
> >
>
> Perhaps try to find the offending files first.
>
> I don't know how large these systems are but perhaps you can run a
>
> find /etc -type f -name pkg-get.conf
>
> and
>
> find /opt -type f -name pkg-get.conf
>
>
> Then remove every file you find.
>
> Then create a file /opt/csw/etc/pkg-get.conf with the following contents :
>

We more or less did that. We installed pkg-get on a system that never
had it. We created a /opt/cs/etc/pkg-get.conf file.

The problem is that this file was completely ignored. pkg-get upon
first execution complained that _no_ config file was present, and went
on to create its own in /etc.

The thing that has us scratching our heads is that this only happens
when _root_ executes pkg-get. When you execute pkg-get as a normal
user it does seem to find the config file we created, as witnessed by
the fact that it contacts the mirror we configured. But then ofcourse
the installation of the packages downloaded fails...

I did a further test where I copied /opt/csw/etc/pkg-get.conf to etc,
and changed the mirror in it. I then dit a pkg-get -U, both as root,
and as a normal user. By looking at which mirrors were contacted I
could see which config file was read. I saw that when pkg-get is
executed as root it reads the config file in /etc, and when executed
as a normal user it read the config file from /opt/csw/etc.

The second thing that has us scratching our head is that this only
happens on three of four (asumed) identical systems. All with solaris
8

Krist

--
krist.vanbesien at gmail.com
Solothurn, Switzerland



More information about the users mailing list