LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Lots of problems with pkg image-update (https://www.linuxquestions.org/questions/solaris-opensolaris-20/lots-of-problems-with-pkg-image-update-667252/)

Reisswolf 09-03-2008 02:38 AM

Lots of problems with pkg image-update
 
Hi,

For the longest time I have had problems with pkg image-update. I was able to upgrade from Build 85 to build 91 without a problem, but since then, the process of updating had been failing with the error message "Cannot update a live image."

I finally found a resource that helped me overcome that problem:

http://louisbotterill.blogspot.com/2...is-to-b93.html

I managed to successfully download everything. But, as you can see below, the actual updating failed with a Python error.

Code:

-bash-3.2# pfexec pkg -R /mnt image-update
DOWNLOAD                                    PKGS      FILES    XFER (MB)
Completed                                572/572 19893/19893 1099.86/1099.86

PHASE                                        ACTIONS
Removal Phase                              7146/7146
Update Phase                            14853/18252 Action upgrade failed for 'opt/DTT/Code/Python/func_abc.py' (pkg:/SUNWDTraceToolkit):
 OSError: [Errno 2] No such file or directory: '/mnt/opt/DTT/Code/Python/func_abc.py'
pkg: An unexpected error happened during image-update: [Errno 2] No such file or directory: '/mnt/opt/DTT/Code/Python/func_abc.py'
opensolaris-5 failed to be updated. No changes have been made to opensolaris-5.
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1458, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 1422, in main_func
    return image_update(img, pargs)
  File "/usr/bin/pkg", line 390, in image_update
    img.imageplan.execute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 464, in execute
    p.execute_update(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 271, in execute_update
    dest.install(self, src)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/file.py", line 120, in install
    os.chmod(temp, mode)
OSError: [Errno 2] No such file or directory: '/mnt/opt/DTT/Code/Python/func_abc.py'
-bash-3.2#

I have searched on Google, but there isn't even a single result for "/mnt/opt/DTT/Code/Python/func_abc.py."

Can someone please help?

Thanks in advance for your time.

Reisswolf 09-05-2008 06:04 AM

Well, I guess I have choice but to wait for OpeSolaris 2008.11 to come out. Maybe I'll have better luck with it. I have spent the last two days trying to solve the problem--without any luck.

Could someone please tell me if SXCE is a bit better in this regard? I have never tried out SXCE.


All times are GMT -5. The time now is 06:38 AM.