||
安装参考:
https://service.oray.com/question/8364.html
https://blog.csdn.net/lxyoucan/article/details/113308437
https://zhuanlan.zhihu.com/p/358820354
Linux的远程控制操作:
1. 下载安装包*.rpm (sunloginclient-11.0.0.36662.x86_64.rpm)
2. 安装
[yu@localhost ~]$ rpm -ivh sunloginclient-11.0.0.36662.x86_64.rpm
error: Failed dependencies: libappindicator-gtk3 is needed by sunloginclient-11.0.0.36662-1.x86_64
注释:缺失安装依赖库,安装缺失库 (安装rpm会提示缺少依赖,缺哪个就安装哪个。可以先yum中搜索库。)
# yum search libappindicator-gtk3.x86_64
sudo yum install libappindicator-gtk3.x86_64
[yu@localhost Downloads]$ sudo yum install libappindicator-gtk3.x86_64
Loaded plugins: axelget, copr, fastestmirror, langpacks
No metadata available for base
No metadata available for epel
No metadata available for extras
No metadata available for google-chrome
No metadata available for updates
Determining fastest mirrors
* base: mirrors.ustc.edu.cn
* epel: mirror.sjtu.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
Trying other mirror.
updates/7/x86_64/primary_db | 13 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package libappindicator-gtk3.x86_64 0:12.10.0-13.el7 will be installed
--> Processing Dependency: libindicator3.so.7()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
--> Processing Dependency: libdbusmenu-gtk3.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
--> Processing Dependency: libdbusmenu-glib.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64
--> Running transaction check
---> Package libdbusmenu.x86_64 0:16.04.0-4.el7 will be installed
---> Package libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7 will be installed
---> Package libindicator-gtk3.x86_64 0:12.10.1-6.el7 will be installed
--> Finished Dependency Resolution
http://epel.mirror.angkasa.id/pub/epel/7/x86_64/repodata/b4c0fb5c9dbb817c77e50fd8fb6b67e3d5a781d95a95a4b3fdcfa131df424cc4-comps-Everything.x86_64.xml.gz: [Errno 12] Timeout on http://epel.mirror.angkasa.id/pub/epel/7/x86_64/repodata/b4c0fb5c9dbb817c77e50fd8fb6b67e3d5a781d95a95a4b3fdcfa131df424cc4-comps-Everything.x86_64.xml.gz: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
epel/x86_64/group_gz | 96 kB 00:00:00
Dependencies Resolved
=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
libappindicator-gtk3 x86_64 12.10.0-13.el7 base 37 k
Installing for dependencies:
libdbusmenu x86_64 16.04.0-4.el7 base 132 k
libdbusmenu-gtk3 x86_64 16.04.0-4.el7 base 34 k
libindicator-gtk3 x86_64 12.10.1-6.el7 base 63 k
Transaction Summary
=====================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 266 k
Installed size: 918 k
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libappindicator-gtk3-12.10.0-13.el7.x86_64.rpm | 37 kB 00:00:00
(2/4): libdbusmenu-gtk3-16.04.0-4.el7.x86_64.rpm | 34 kB 00:00:00
(3/4): libindicator-gtk3-12.10.1-6.el7.x86_64.rpm | 63 kB 00:00:00
(4/4): libdbusmenu-16.04.0-4.el7.x86_64.rpm | 132 kB 00:00:00
-------------------------------------------------------------------------------------
Total 1.1 MB/s | 266 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : libdbusmenu-16.04.0-4.el7.x86_64 1/4
Installing : libdbusmenu-gtk3-16.04.0-4.el7.x86_64 2/4
Installing : libindicator-gtk3-12.10.1-6.el7.x86_64 3/4
Installing : libappindicator-gtk3-12.10.0-13.el7.x86_64 4/4
Verifying : libdbusmenu-16.04.0-4.el7.x86_64 1/4
Verifying : libdbusmenu-gtk3-16.04.0-4.el7.x86_64 2/4
Verifying : libappindicator-gtk3-12.10.0-13.el7.x86_64 3/4
Verifying : libindicator-gtk3-12.10.1-6.el7.x86_64 4/4
Installed:
libappindicator-gtk3.x86_64 0:12.10.0-13.el7
Dependency Installed:
libdbusmenu.x86_64 0:16.04.0-4.el7 libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7 libindicator-gtk3.x86_64 0:12.10.1-6.el7
Complete!
3. 重新安装软件
[yu@localhost Downloads]$ sudo rpm -ivh sunloginclient-11.0.0.36662.x86_64.rpm
[sudo] password for yu:
Preparing... ################################# [100%]
file /usr/local/sunlogin/bin/oray_rundaemon from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/bin/sunloginclient from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/rpminstall.sh from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/rpmuninstall.sh from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/scripts/init_runsunloginclient from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/scripts/lightdm.conf from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/scripts/runsunloginclient.conf from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/scripts/runsunloginclient.service from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
file /usr/local/sunlogin/scripts/start.sh from install of sunloginclient-11.0.0.36662-1.x86_64 conflicts with file from package sunloginclient-10.1.1.28779-1.x86_64
[yu@localhost Downloads]$
注释: 由于之前安装了个人版(命令行版本),但卸载的时候没有卸载干净,导致命令安装图形版本装不上,同时卸载命令行版本又报错!!!
解决方法:提取去命令行版本rpm中的文件目录,放到报错目录/usr/local下,再命令卸载
[root@localhost Downloads]# rpm -qa |grep sunl
sunloginclient-10.1.1.28779-1.x86_64
[root@localhost Downloads]# rpm -e sunloginclient-10.1.1.28779-1.x86_64
bash: /usr/local/sunlogin/rpmuninstall.sh: No such file or directory
error: %preun(sunloginclient-10.1.1.28779-1.x86_64) scriptlet failed, exit status 127
error: sunloginclient-10.1.1.28779-1.x86_64: erase failed
[root@localhost Downloads]# mv sunlogin /usr/local/
[root@localhost sunlogin]# rpm -e sunloginclient-10.1.1.28779-1.x86_64
error: package sunloginclient-10.1.1.28779-1.x86_64 is not installed
4. 重新安装软件
[root@localhost Downloads]# rpm -ivh sunloginclient-11.0.0.36662.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:sunloginclient-11.0.0.36662-1 ################################# [100%]
sunloginclient: no process found
sunloginclient_linux: no process found
check operate system OK
Created symlink from /etc/systemd/system/multi-user.target.wants/runsunloginclient.service to /etc/systemd/system/runsunloginclient.service.
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-21 22:29
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社