[indiana-discuss] indiana and multiple ips repos?
ludo
ludo at dev.java.net
Fri Feb 8 16:19:41 PST 2008
Bart Smaalders wrote:
> ludo wrote:
>> Hi,
>> I am testing an internal ips repository.
>>
>> After some try/errors, I am in a situation where some package files
>> are on disk, but not known by the ips status command.
>>
>> When I do
>> # pkg install SUNWapch22m-php5
>> DOWNLOAD PKGS FILES XFER
>> (MB)
>> SUNWlxml 2/11 79/850
>> 6.52/68.26Traceback (most recent call last):
>> File "/usr/bin/pkg", line 856, in ?
>> ret = main_func()
>> File "/usr/bin/pkg", line 824, in main_func
>> return install(img, pargs)
>> File "/usr/bin/pkg", line 367, in install
>> verbose = verbose, noexecute = noexecute)
>> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
>> 930, in list_install
>> ip.execute()
>> File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",
>> line 321, in execute
>> p.preexecute()
>> File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py",
>> line 247, in preexecute
>> flist.get_files()
>> File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py",
>> line 194, in get_files
>> os.link(extract_path, cppath)
>> OSError: [Errno 17] File exists
>>
>>
>
> I'm not sure how you got in this state...
playing with ipstool with a 2nd repo, entered wrong data for location,
then the good location, then get 1 package, then deleted the 2nd repo,
then entered it again...
Well, not the usual stuff, but what a stupid user would do trying to
setup some repositories.
>
>> Which file exists? Not clear...
>>
>> Any way to force the reinstallation of a package?
>> Do I need to reinstall Indiana to restore this system?
>>
> Try
>
> pkg uninstall SUNWapch22m-php5
>
> or try installing it again.
yep, I tried that but:
ludoch at pigalle:/# pkg uninstall SUNWapch22m-php5
pkg: 'SUNWapch22m-php5' matches no installed packages
So Let say I delete (accidentally) a file I got from an IPS package. How
can I get it back via a pkg command.
>
>> What if a package FOO is available from 2 different repositories, you
>> install it from one repo, then switch to the other repository. What
>> is the status there? Can I update it from the 2nd repository?
>>
> Depends on the version of the packages; if the new repo's packages are
> later (either via version or timestamp), you'll get the new packages.
What if you remove the metada directory of one of the rep (in my case
/.org.opensolaris.org) and try to create the image again?
I am still not clear at all between multiple repos where you get stuff
and switch to another repository.
>
>> Thanks for some help, The errors messages are at best very cryptics
>> and minimalist.
>
> IPS is very much a work in progress.
I understand.
Thanks for the help anyway,
Ludo
> It does manage to upgrade between
> preview 1 and preview 2, though.
>
> - Bart
>
>
More information about the indiana-discuss
mailing list