Ubuntu – Ubuntu gone out of order – Wont install any packages. What do I do?

package-managementsoftware installationsoftware-centerupdates

Lately, I've been getting some strange behaviour from Ubuntu. First and the most important is that it wont install updates. It gives a package installation error and it simply wont work.

Earlier I tried to install TeamViewer via the Software Center, but got the same package error. I also feel like the connection speed is going slower than it should – don't know if this one is relevant to this case.

What's wrong with my installation? How do I fix these package installation errors?

enter image description here

Best Answer

This is a very common recurring Ubuntu question. It's asked in many different ways. However, the answer is always the same. I run into the problem often when having broken packages. I review this link:

https://askubuntu.com/questions/461975/i-cant-edit-update-remove-or-install-my-broken-packages

$ sudo apt-get autoremove
$ sudo apt-get --purge remove && sudo apt-get autoclean
$ sudo apt-get -f install
$ sudo apt-get update
$ sudo apt-get upgrade && sudo apt-get dist-upgrade
$ sudo dpkg-reconfigure -a
$ sudo dpkg --configure -a

You performed most of them. There are still a couple more that can be added. But so far the ones in the list has fixed my corrupted Ubuntu broken package problems.

As far as Teamviewer installation you have after you have fixed the broken package problem try this:

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
## (Download the latest 32-Bit / 64-Bit Multiarch go to the download and run)
$ sudo dpkg -i teamviewer_linux.deb
Related Question