在 centOS 6.4 64 位中安装 teamviewer 时出现依赖项错误?

dependencies error while installing teamviewer in centOS 6.4 64bit?

您好,我使用的是 centos 6.4 64 位。我正在尝试安装 teamviewer。我已经从 teamviewer 站点下载了 teamviewer rpm。当我 运行

rpm -ivh teamviewer_10.0.37742.i686.rpm

它显示 failed dependencies 错误所以我开始使用 yum 安装依赖项但是一些依赖项无法安装

warning: teamviewer_10.0.37742.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 72db573c: NOKEY
error: Failed dependencies:
        libfontconfig.so.1 is needed by teamviewer-10.0.37742-0.i686
        libjpeg.so.62 is needed by teamviewer-10.0.37742-0.i686
        libXinerama.so.1 is needed by teamviewer-10.0.37742-0.i686
        libXrandr.so.2 is needed by teamviewer-10.0.37742-0.i686
        libXrender.so.1 is needed by teamviewer-10.0.37742-0.i686

当我 运行 yum install libfontconfig.so.1

我遇到了这个错误

    warning: teamviewer_10.0.37742.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 72db573c: NOKEY
    error: Failed dependencies:
            libfontconfig.so.1 is needed by teamviewer-10.0.37742-0.i686
            libjpeg.so.62 is needed by teamviewer-10.0.37742-0.i686
            libXinerama.so.1 is needed by teamviewer-10.0.37742-0.i686
            libXrandr.so.2 is needed by teamviewer-10.0.37742-0.i686
            libXrender.so.1 is needed by teamviewer-10.0.37742-0.i686

Loaded plugins: fastestmirror, protectbase, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
     * base: centos.excellmedia.net
     * epel: ftp.cuhk.edu.hk
     * extras: centos.excellmedia.net
     * linuxtech-release: pkgrepo.linuxtech.net
     * updates: centos.excellmedia.net
     * webtatic: uk.repo.webtatic.com
    0 packages excluded due to repository protections
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package fontconfig.i686 0:2.8.0-5.el6 will be installed
    --> Processing Dependency: libexpat.so.1 for package: fontconfig-2.8.0-5.el6.i686
    --> Running transaction check
    ---> Package expat.i686 0:2.0.1-11.el6_2 will be installed
    --> Finished Dependency Resolution
    Error:  Multilib version problems found. This often means that the root
           cause is something else and multilib version checking is just
           pointing out that there is a problem. Eg.:

             1. You have an upgrade for fontconfig which is missing some
                dependency that another package requires. Yum is trying to
                solve this by installing an older version of fontconfig of the
                different architecture. If you exclude the bad architecture
                yum will tell you what the root cause is (which package
                requires what). You can try redoing the upgrade with
                --exclude fontconfig.otherarch ... this should give you an error
                message showing the root cause of the problem.

             2. You have multiple architectures of fontconfig installed, but
                yum can only see an upgrade for one of those arcitectures.
                If you don't want/need both architectures anymore then you
                can remove the one with the missing update and everything
                will work.

             3. You have duplicate versions of fontconfig installed already.
                You can use "yum check" to get yum show these errors.

           ...you can also use --setopt=protected_multilib=false to remove
           this checking, however this is almost never the correct thing to
           do as something else is very likely to go wrong (often causing
           much more problems).

           Protected multilib versions: fontconfig-2.8.0-5.el6.i686 != fontconfig-2.8.0-3.el6.x86_64
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest

那么我应该怎么办我已经尝试了很多东西但没有成功?

Linux 的 TeamViewer 是在 x86 (i686) 平台上编译的,因此您必须安装基于 x86 的依赖包,您可以在 rpmfind.net.

找到它

TeamViewer Linux(OpenSuse、CentOS 等)是在 x86 平台上编译的,因此您必须安装基于 x86 的依赖包

# uname -a
Linux centos6.6.6.71092 2.6.32-042stab108.1 #1 SMP Thu Apr 23 19:17:11 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

这对我来说没有错误:

# wget http://www.teamviewer.com/download/teamviewer_linux.rpm
# yum install teamviewer_linux.rpm

If you get missing public key error, you can download public key and import it using the following command continue