solaris11建立IPS库有问题,安装不了gnome(solaris-desktop)
根据http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=3618930;http://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/main/article?cmd=show&type=NOT&doctype=REFERENCE&alias=EVENT:SMF-8000-KS
以下是日志
root@solaris11 # cat /var/svc/log/application-pkg-server\:default.log
[ Nov7 15:20:23 Rereading configuration. ]
[ Nov7 15:20:35 Enabled. ]
[ Nov7 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.
[ Nov7 15:20:38 Method "start" exited with status 1. ]
[ Nov7 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.
[ Nov7 15:20:40 Method "start" exited with status 1. ]
[ Nov7 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.
[ Nov7 15:20:43 Method "start" exited with status 1. ]
[ Nov7 15:26:13 Rereading configuration. ]
root@solaris11 #
但是这个日志我看不怎么明白,所以想请教一下各位,这是怎么回事! 本帖最后由 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) 正好sol11.1出来了,又安装了一次.....
我觉得是你的IPS没建好.
mount好iso后,目录是这样的
yanzi@vm-sol11:~$ cd /mnt
yanzi@vm-sol11:/mnt$ ls
COPYRIGHTNOTICES README repo
yanzi@vm-sol11:/mnt$ cd repo
yanzi@vm-sol11:/mnt/repo$ ls
pkg5.repositorypublisher
设定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不是这样的结构
回复 3# 非凡公子
刚刚按照这个又试了一次,还是不行,还是报跟上面一样的错误;我也觉得我的IPS有问题,但是又不知道错在哪里! 回复 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包吧 呵呵,你的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--- 回复 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/technetwork/cn/server-storage/solaris11/downloads/index.html
下载的这个 本帖最后由 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)
回复 8# doging
难道我应该选择中文REPO包??? 本帖最后由 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
页:
[1]
2