Ubuntu – My Adobe Flash plugin has stopped working and cannot be reinstalled

adobeflash

My Adobe Flash plugin has stopped working on Ubuntu 12.04. I cannot see any videos. When I try to install it again, the following things appear on my terminal:

root@ubuntu:/home/salty# sudo apt-get install adobe-flashplugin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package adobe-flashplugin 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 'adobe-flashplugin' has no installation candidate
root@ubuntu:/home/salty# 

What should I do now?

Best Answer

Open the file /etc/apt/sources.list with a text editor. Uncomment (Remove the preceeding #) on the lines:

deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

In Ubuntu 16.04, this worked:

deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

In the terminal, run

sudo apt-get update
sudo apt-get install adobe-flashplugin