223

I was trying to install Teamviewer, but I was getting a dependency error. I tried to install the required packages, but with no luck.

I'm getting this error:

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

I tried

sudo apt-get -f install

Getting

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

I can't even get to the

sudo dpkg -i teamviewer_linux_x64.deb

If I force installation

sudo dpkg --force-depends -i teamviewer_linux_x64.deb

Although it's "Setting up Temviewer" it gives me this:

Enter image description here

How can I fix this problem?

Zanna
  • 70,465
Mini John
  • 2,335
  • 2
  • 14
  • 12
  • Install the "32-Bit / 64-Bit Multiarch" version. It worked on my system flawlessly. Do not install the 64bit only version. - http://www.teamviewer.com/en/download/linux.aspx – Sepero Jun 06 '14 at 14:25
  • all methods are useless to me. finally I downloaded this file from official website: https://download.teamviewer.com/download/teamviewer_i386.tar.xz then unzip it, run it, done! (this version is run in the wine environment) – Siwei Jun 28 '16 at 08:40
  • sudo apt-get -f install worked for me. Thanks! – Henrik Jul 19 '20 at 09:25

6 Answers6

298

The problem is that the teamviewer_linux_x64.deb, the package that was aimed to 64-bit systems, uses a obsolete package that tried to achieve multiarch previously in Debian based systems called ia64-libs. Although, that package scheme changed and now Teamviewer distribute the native build for both i386 and amd64 architecture, as they don't need anymore multiarch.

Simply downloading the appropriated package for Debian/Ubuntu and installing it using your favorite method, should be enough. This package also installs a repository, so it should also automatically upgrade itself when you upgrade your system.

Braiam
  • 67,791
  • 32
  • 179
  • 269
10

All I had to do to amend this problem was do dpkg --force-all -i *.deb to install that package. Note that the only dependency it couldn't resolve was libpng12-0, so after forcing the install it has no images in the interface but it is still runnable. The other solutions did not solve the problem for me. I'm hoping the Teamviewer developers will get to this soon.

  • I do the same conclusion as you. Did you contacted the teamviewer support service ? Did you obtained any response from them ? Have you got a solution ? – Rémi B. Nov 16 '16 at 14:36
  • 2
    I never contacted them, just because in my experience no company wants to support Linux so I always just get my help here. – wjrochester Nov 16 '16 at 16:03
  • Ok thank you for your reactivity. We can't same the same about the TeamViewer team, these arch and missing dependency issues are there in each new major version. They don't care about us, its so ridiculous. Its just about build a clean package for their software... And we pay for that.. – Rémi B. Nov 16 '16 at 16:34
  • My skills are nowhere near good enough to do it myself, but I suppose what you can do is remove the dependency for the libpng package that doesn't work from the list of dependencies for TeamViewer, then add a different package that has full PNG support and then program that one in manually. I don't know if this is possible or easy to do, but if we take it upon ourselves to make a different package work for this program we can make it work I think. – wjrochester Nov 16 '16 at 16:36
2

To install on Ubuntu 20.04 x64, from 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
1

With Teamviewer 15 on Ubuntu 20.04:

Download and install with

sudo dpkg -i teamviewer_15.16.8_amd64.deb   # adapt to your downloaded file name

This will show dependency errors, but all you have to do to fix them is

sudo apt --fix-broken install
mivk
  • 5,312
0

You need to install all dependency libraries for i386 (this might work with 64 too) as described above. For the missing libpng12 library just go to: https://packages.debian.org/jessie/i386/libpng12-0/download and install with

sudo dpkg -i ~/Downloads/libpng12-0_1.2.50-2+deb8u3_i386.deb

it has no dependencies which wouldn't be resolved by current environemnt:

dep: libc6 (>= 2.14), zlib1g (>= 1:1.1.4)

Galvani
  • 470
0

TeamViewer for Linux

TeamViewer 14.0 is out for Linux and it's no longer based on Wine. TeamViewer 14.0 features native 64-bit support and a Qt front-end. .deb packages for TeamViewer 14.0 for Linux are available from the official TeamViewer website.

On Ubuntu 17.10 some features of TeamViewer require Xorg to be selected instead of the default Wayland at the login screen. In Wayland only outgoing remote control and incoming file transfer are supported. If you need incoming remote control you have to login to classic Xorg. In order to enter an X session from the GDM login screen select Ubuntu on Xorg.

karel
  • 114,770