• openSolaris pkg 出現錯誤 (This is an internal error.)解決方案

    by  • 2009/03/06 • linux • 0 Comments

    話說今天要在 opensolaris 裡安裝 Samba ~~ 出現以下錯誤

    [email protected]:/usr/bin# pkg install SUNWsamba
    Traceback (most recent call last):
    File “/usr/bin/pkg”, line 2284, in ?
    __ret = main_func()
    File “/usr/bin/pkg”, line 2235, in main_func
    return install(img, pargs)
    File “/usr/bin/pkg”, line 710, in install
    File “/usr/lib/python2.4/vendor-packages/pkg/client/image.py”, line 1445, in load_catalogs
    File “/usr/lib/python2.4/vendor-packages/pkg/client/image.py”, line 1403, in load_catalog_cache
    version, self._catalog =

    pkg: This is an internal error. Please let the developers know about this
    problem by filing a bug at http://defect.opensolaris.org and including the
    above traceback and this message. The version of pkg(5) is ‘be1ad23e7704+’.

    總算被我找到解決方案囉 ~~
    將 /var/pkg/catalog/catalog.pkl 刪掉就好囉 ~~

    就再 #pkg refresh 一次, 就可以了 ~~