我对 Linux 还不是很熟悉,不过我手头有几台装有不同发行版的机器,可以摆弄一下
使用 20.04 LTS 启动并运行服务器,但在启动和运行旧版本的 TeamViewer 时遇到问题。我知道有一些更好的替代方案,但我拥有版本 11 的商业许可证,并将其用于我的所有机器和客户。
我在使用 teamviewer:i386 时遇到了依赖 libpng12-0 的问题。
我尝试过关注各种类似的主题,旨在让它运行Linux 版本 16和Linux 版本 18但这两个过程似乎在 v20 中都无法复制
不确定是否允许日志,但如果不允许,我会请求原谅 - 这是我的输出(用户/机器名称已更改)
test@test:~/Downloads$ sudo dpkg -i teamviewer_11.0.256402_i386.deb
Selecting previously unselected package teamviewer:i386.
(Reading database ... 197780 files and directories currently installed.)
Preparing to unpack teamviewer_11.0.256402_i386.deb ...
Unpacking teamviewer:i386 (11.0.256402) ...
dpkg: dependency problems prevent configuration of teamviewer:i386:
teamviewer:i386 depends on libasound2.
teamviewer:i386 depends on libdbus-1-3.
teamviewer:i386 depends on libexpat1.
teamviewer:i386 depends on libfontconfig1.
teamviewer:i386 depends on libfreetype6.
teamviewer:i386 depends on libpng12-0; however:
Package libpng12-0:i386 is not installed.
teamviewer:i386 depends on libsm6; however:
teamviewer:i386 depends on libxdamage1; however:
teamviewer:i386 depends on libxfixes3; however:
dpkg: error processing package teamviewer:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
teamviewer:i386
test@test:~/Downloads$ sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_i386.deb
(Reading database ... 198073 files and directories currently installed.)
Preparing to unpack libpng12-0_1.2.54-1ubuntu1.1_i386.deb ...
Unpacking libpng12-0:i386 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive libpng12-0_1.2.54-1ubuntu1.1_i386.deb (--install):
unable to install new version of '/lib/i386-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
libpng12-0_1.2.54-1ubuntu1.1_i386.deb
谢谢,感谢任何指导!
答案1
这里有两个问题 - 第一个是 libpng12 包,第二个是 TeamViewer 依赖项。
第一个可以通过安装来解决来自 PPA:
wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb
然后您就可以安装 TeamViewer:
sudo apt-get install ./teamviewer_11.0.256402_i386.deb
答案2
我遇到了同样的问题,可以用这个方法修复:https://community.teamviewer.com/t5/Knowledge-Base-EN/How-to-use-the-TAR-package-for-Linux/ta-p/30664
首先你必须输入你的teamviewer路径:
cd /path-to-extracted-TAR/teamviewer/
然后运行这个:
./tv-setup checklibs
如果有的话,安装缺少的依赖项,然后运行
./teamviewer
答案3
尝试这个:
wget http://download.teamviewer.com/download/version_11x/teamviewer_i386.deb
sudo dpkg --add-architecture i386
sudo apt install libc6:i386 libasound2:i386 libexpat1:i386 libfontconfig1:i386 libjpeg62:i386 libsm6:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 libdbus-1-3:i386 libgcrypt20:i386 libgpg-error0:i386 liblz4-1:i386 liblzma5:i386 libsystemd0:i386
wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb
sudo dpkg -i ./teamviewer_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/main/f/freetype/libfreetype6_2.6.1-0.1ubuntu2_i386.deb
sudo apt install binutils -y
tar -x ./libfreetype6_2.6.1-0.1ubuntu2_i386.deb
tar -xvf ./data.tar.xz
sudo cp -r ./usr/lib/i386-linux-gnu/libfreetype.so.6 /opt/teamviewer/tv_bin/wine/lib
sudo cp ./usr/lib/i386-linux-gnu/libfreetype.so.6.12.1 /opt/teamviewer/tv_bin/wine/lib
sudo apt install lightdm -y
During installation choose **lightdm** and OK
This is because Ubuntu 20's default display manager is gmd3,
and it doesn't allow incoming connections when you sing out.
(when your screen is locked)
sudo chmod 777 /etc/X11/default-display-manager
sudo echo "/usr/bin/lightdm" > /etc/X11/default-display-manager
sudo chmod 644 /etc/X11/default-display-manager
完成上述所有操作后,重新启动。