Installing bbm.sty in linux

Debian derivatives

I believe the easiest way is to install the texlive-fonts-extra package:

sudo apt-get install texlive-fonts-extra

This should take care of installation on Debian derivatives such as Ubuntu and Mint.

Other distros

For RPM-based distributions such as Fedora, try installing the textlive-bbm-macros- packages (on older versions, you may need to write yum instead of dnf):

sudo dnf install texlive-bbm

put the file in ~/texmf/tex/latex/bbm/ (you may have to create directories for that). however, the fonts are distributed separately as metafont source and you'll need to install them, too; it's a long time since i've done that, but try copying all of the font files on an archive mirror into ~/texmf/fonts/bbm

after that, i reckon it’s worth running texhash ~/texmf (it will still work without, but slower).

now: do you really want to do all that? what did you want the double-struck fonts for in the first place?