免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5913 | 回复: 15
打印 上一主题 下一主题

solaris11建立IPS库有问题,安装不了gnome(solaris-desktop) [复制链接]

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-07 16:08 |只看该作者 |倒序浏览
根据http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=3618930http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=3675545非凡公子和3sun的贴子来的,但是创建之后总是报错;只用非凡公子的这篇贴子和只用3sun的这种方法都失败
pkg publisher是可以看到的

pkg search solaris-desktop之后什么都没有;

pkg info -r solaris-desktop到是可以看到相关信息

pkg install solaris-desktop就报错

然后就看3sun的这篇贴子,根据这个里面的做法

看到说服务没有起来,就看日志
启动这个服务依然提示服务器没有起来;
第一个提示网址:https://support.oracle.com/CSP/m ... s=EVENT:SMF-8000-KS
以下是日志
root@solaris11 # cat /var/svc/log/application-pkg-server\:default.log
[ Nov  7 15:20:23 Rereading configuration. ]
[ Nov  7 15:20:35 Enabled. ]
[ Nov  7 15:20:35 Executing start method ("//lib/svc/method/svc-pkg-depot start"). ]
Dropping net_privaddr privilege.
ppriv -s A=basic,-file_link_any,-proc_info,-proc_session,net_privaddr -e /usr/lib/pkg.depotd --cfg svc:/application/pkg/server:default
pkg.depotd: The path '/export/repoSolaris11/repo' does not contain a valid package repository.
[ Nov  7 15:20:38 Method "start" exited with status 1. ]
[ Nov  7 15:20:38 Executing start method ("//lib/svc/method/svc-pkg-depot start"). ]
Dropping net_privaddr privilege.
ppriv -s A=basic,-file_link_any,-proc_info,-proc_session,net_privaddr -e /usr/lib/pkg.depotd --cfg svc:/application/pkg/server:default
pkg.depotd: The path '/export/repoSolaris11/repo' does not contain a valid package repository.
[ Nov  7 15:20:40 Method "start" exited with status 1. ]
[ Nov  7 15:20:40 Executing start method ("//lib/svc/method/svc-pkg-depot start"). ]
Dropping net_privaddr privilege.
ppriv -s A=basic,-file_link_any,-proc_info,-proc_session,net_privaddr -e /usr/lib/pkg.depotd --cfg svc:/application/pkg/server:default
pkg.depotd: The path '/export/repoSolaris11/repo' does not contain a valid package repository.
[ Nov  7 15:20:43 Method "start" exited with status 1. ]
[ Nov  7 15:26:13 Rereading configuration. ]
root@solaris11 #
但是这个日志我看不怎么明白,所以想请教一下各位,这是怎么回事!

论坛徽章:
0
2 [报告]
发表于 2012-11-07 17:24 |只看该作者
本帖最后由 doging 于 2012-11-07 17:25 编辑

这个报错是因为OS里的包与当前solaris-desktop版本不兼容


你是不是升级过solaris11 SRU包呀,用pkg info -l entire看看,,
如果原来升级过,现在要想安装desktop包,除了配置repo publisher外,还要把sru包也配置起来,才能成功


root@node1 # pkg info -l entire
          Name: entire
       Summary: entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 12.4).      《------SRU 12.4
   Description: This package constrains system package versions to the same
                build.  WARNING: Proper system update and correct package
                selection depend on the presence of this incorporation.
                Removing this package will result in an unsupported system.  For
                more information see https://support.oracle.com/CSP/main/article
                ?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11 (Oracle Solaris 11 SRU 12.4)

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2012-11-08 00:27 |只看该作者
正好sol11.1出来了,又安装了一次.....
我觉得是你的IPS没建好.
mount好iso后,目录是这样的
yanzi@vm-sol11:~$ cd /mnt
yanzi@vm-sol11:/mnt$ ls
COPYRIGHT  NOTICES    README     repo
yanzi@vm-sol11:/mnt$ cd repo
yanzi@vm-sol11:/mnt/repo$ ls
pkg5.repository  publisher

设定publisher的命令是# pkg set-publisher -Pe -O file:///mnt/repo/ solaris
指定到repo目录
yanzi@vm-sol11:~$ pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F file:///mnt/repo/
看你的publisher不是这样的结构

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
4 [报告]
发表于 2012-11-08 11:11 |只看该作者
回复 3# 非凡公子


    刚刚按照这个又试了一次,还是不行,还是报跟上面一样的错误;我也觉得我的IPS有问题,但是又不知道错在哪里!

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
5 [报告]
发表于 2012-11-08 11:25 |只看该作者
回复 2# doging


        root@solaris11 # pkg info -l entire
          Name: entire
       Summary: Incorporation to lock all system packages to the same build
   Description: This package constrains system package versions to the same
                build.  WARNING: Proper system update and correct package
                selection depend on the presence of this incorporation.
                Removing this package will result in an unsupported system.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11
Build Release: 5.11
        Branch: 0.175.0.0.0.2.0
Packaging Date: October 20, 2011 02:38:22 PM
          Size: 5.45 kB
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.0.0.0.2.0:20111020T143822Z

这个是我机器上面的信息;应该没有升级过SRU包吧

论坛徽章:
0
6 [报告]
发表于 2012-11-08 11:41 |只看该作者
呵呵,你的solaris-desktop的版本太新了,估计是版本不匹配引起的;

我的repo里的版本是0.5.11-0.175.0.0.0.2.2576  ,你的版本0.5.11-0.175.1.0.0.24.3  ,你的repo包从哪里下载的





root@node1 # pkg list -a *solaris-desktop*
NAME (PUBLISHER)                                  VERSION                    IFO
group/system/solaris-desktop                      0.5.11-0.175.0.0.0.2.2576  ---

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
7 [报告]
发表于 2012-11-08 12:21 |只看该作者
回复 6# doging


    输入pkg list -a *solaris-desktop*

root@solaris11 # pkg list -a *solaris-desktop*
pkg list: no packages matching '*solaris-desktop*' allowed by installed incorporations, or image variants that are known or installed
Use -af to allow all versions.

这个应该是我的IPS库建的有问题;

repo是在官网上下载的;http://www.oracle.com/technetwor ... ownloads/index.html
下载的这个

论坛徽章:
0
8 [报告]
发表于 2012-11-08 12:50 |只看该作者
本帖最后由 doging 于 2012-11-08 13:58 编辑

中英文网站下载的repo包居然还不一样,OMG


Oracle Solaris 11 11/11 库映像

库映像为管理员提供软件包的全部存档,从而使管理员能够建立本地网络 IPS 库以供客户端系统连接使用。

该库映像分两部分提供,您必须将这两部分合二为一。请使用以下命令行命令成功创建一个完整的 ISO 映像,该映像可以刻录到双层 DVD,也可以使用 lofiadm 直接进行安装。

user@hostname:~$ unzip sol-11-1111-repo-full-iso-a.zip
user@hostname:~$ unzip sol-11-1111-repo-full-iso-b.zip
user@hostname:~$ cat sol-11-1111-repo-full-iso-a sol-11-1111-repo-full-iso-b > sol-11-1111-repo-full.iso

适用于 SPARC 和 x86 的下载(A 部分) (2.7 GB)
适用于 SPARC 和 x86 的下载(B 部分) (2.6 GB)



Oracle Solaris 11.1 Repository Image

This Repository image provides the set of packages required for the first step in making an update directly from Oracle Solaris 11 11/11 to Oracle Solaris 11.1. It is to be used as part of a local repository to update systems which do not have direct internet access.

The repository image is provided in two parts that must be concatenated together. Please use the following command-line instructions to successfully create a full ISO image that can be burned to a dual-layer DVD or directly mounted using lofiadm.

user@hostname:~$ cat sol-11_1-repo-full.iso-a sol-11_1-repo-full.iso-b > sol-11_1-repo-full.iso

Download Part A SPARC, x86 (3.4 GB)
Download Part B SPARC, x86 (3.4 GB)

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
9 [报告]
发表于 2012-11-08 14:23 |只看该作者
回复 8# doging


    难道我应该选择中文REPO包???

论坛徽章:
0
10 [报告]
发表于 2012-11-08 14:40 |只看该作者
本帖最后由 doging 于 2012-11-08 15:01 编辑

仔细看了一下官网,原来是这样的

你下载的repo名是solaris11.1的repo包,你安装的solaris11版本是solaris11.11,需要先升级,才能再安装

solar11.11---->solaris11.1 (update1)



先执行
pkg update -v

再执行
pkg install desktop-solaris
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP