我尝试安装 Teamviewer,但出现依赖性错误。我尝试安装所需的软件包,但没有成功。
我收到此错误:
Unpacking teamviewer (from teamviewer_linux_x64.deb) ...
dpkg: dependency problems prevent configuration of teamviewer:
teamviewer depends on lib32asound2; however:
Package lib32asound2 is not installed.
teamviewer depends on lib32z1; however:
Package lib32z1 is not installed.
teamviewer depends on ia32-libs; however:
Package ia32-libs is not installed.
dpkg: error processing teamviewer (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
teamviewer
我试过
sudo apt-get -f install
获取
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0
Package lib32asound2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lib32asound2' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
我甚至无法到达
sudo dpkg -i teamviewer_linux_x64.deb
如果我强制安装
sudo dpkg --force-depends -i teamviewer_linux_x64.deb
虽然它是“设置 Temviewer”,但它给了我这个:
我该如何解决这个问题?
答案1
问题在于,teamviewer_linux_x64.deb
针对 64 位系统的软件包使用了过时的软件包,该软件包试图在以前基于 Debian 的系统中实现多架构,名为ia64-libs
。尽管如此,该软件包方案已更改,现在 Teamviewer 为 i386 和 amd64 架构分发本机版本,因为它们不再需要多架构。
只需下载适用于 Debian/Ubuntu 的软件包并使用您喜欢的方法进行安装,应该就足够了。此包还安装了一个存储库,因此当您升级系统时它也应该自动升级。
答案2
我只需dpkg --force-all -i *.deb
安装该软件包即可解决这个问题。请注意,它无法解决的唯一依赖项是 libpng12-0,因此在强制安装后,界面中没有图像,但仍然可以运行。其他解决方案无法为我解决问题。我希望 Teamviewer 开发人员能尽快解决这个问题。
答案3
要在 Ubuntu 20.04 x64 上安装,请从https://linuxconfig.org/how-to-install-teamviewer-on-ubuntu-20-04-focal-fossa-linux:
sudo apt update
sudo apt install gdebi-core wget
wget -O ~/teamviewer.deb "https://download.teamviewer.com/download/linux/teamviewer_amd64.deb"
sudo gdebi ~/teamviewer.deb
teamviewer
答案4
您需要安装 i386 的所有依赖库(这可能也适用于 64),如上所述。对于缺少的 libpng12 库,只需转到:https://packages.debian.org/jessie/i386/libpng12-0/download 并安装
sudo dpkg -i ~/Downloads/libpng12-0_1.2.50-2+deb8u3_i386.deb
它没有当前环境无法解决的依赖项:
依赖:libc6(>= 2.14),zlib1g(>= 1:1.1.4)