[indiana-discuss] indiana and multiple ips repos?
Bart Smaalders
bart.smaalders at Sun.COM
Fri Feb 8 15:52:23 PST 2008
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...
> 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.
> 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.
> Thanks for some help, The errors messages are at best very cryptics and
> minimalist.
IPS is very much a work in progress. It does manage to upgrade between
preview 1 and preview 2, though.
- Bart
--
Bart Smaalders Solaris Kernel Performance
barts at cyber.eng.sun.com http://blogs.sun.com/barts
More information about the indiana-discuss
mailing list