How do I install Adobe Flash on Debian Wheezy?

I have tried following http://wiki.debian.org/FlashPlayer but on the very first command:

sudo aptitude install flashplugin-nonfree


I get:

oshirowanen@debian:~$sudo aptitude install flashplugin-nonfree [sudo] password for oshirowanen: No candidate version found for flashplugin-nonfree No candidate version found for flashplugin-nonfree No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. oshirowanen@debian:~$


No idea what I'm doing wrong.

Check your settings in /etc/apt/sources.list.

If this is a fresh install, most likely you don't have the contrib and non-free portions enabled yet. Look for the line that says

deb http://ftp.XX.debian.org/debian/ wheezy main


and change it to

deb http://ftp.XX.debian.org/debian/ wheezy main contrib non-free


then run apt-get update and try again. It should be there as flashplugin-nonfree.

Adobe's Flash plugin, while freely downloadable, doesn't meet the Debian Free Software Guidelines (DFSG) which define "free" as "open source", so debian has created a downloader package in the contrib section which can then download and install the flash player.

• Actually, some open source software is considered non-free by Debian. I think pico/pine fall into that category, for example (partially hence nano) because at least historically, while the source code was available and free to edit, modified versions could not be distributed freely. – a CVn Apr 8 '13 at 14:17
• @MichaelKjörling "open source" means more than you can look at the source code. E.g., if you're willing to jump through enough hoops, you can look at the source code of Windows but no one in their right mind would call Windows open source. That said, yes, there are edge cases which people disagree if they're free software or open source. – derobert Apr 8 '13 at 16:34
• pico and pine have very stringent licensing requirements that demand that any repackaging in binary form must be a "proper" compilation of the original source, without any kind of patches or modifications to installation directories. Its author is kind of a prima donna that way; debian is one of the few distros that actually took him at his word and responded by recategorizing it as non-free. You download the source plus debian patches and run an automated compile/install script. – Shadur Apr 8 '13 at 17:23