[indiana-discuss] indiana and multiple ips repos?

ludo ludo at dev.java.net
Fri Feb 8 16:32:44 PST 2008


ludo wrote:
> 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
>   

I moved the dir
# mv /.org.opensolaris,pkg /.OLD
and now it works...:

# pkg image-create -F -a repo=http://ipkg.sfbay.sun.com /

# pkg install SUNWapch22 SUNWapch22d SUNWapch22m-php5
# pkg install SUNWphp524core SUNWphp524man SUNWphp524usr 

Ludo



More information about the indiana-discuss mailing list