The safest method that I have found that for the most part will not interfere with any system installation is to take a page from the FFmpeg trac site and install a local copy of lame.
The following single command gave me a working executable of the latest lame, safely installed in $HOME/bin
:
mkdir -v $HOME/{lame_build,bin} && cd $HOME/lame_build && \
sudo apt-get install nasm build-essential && \
wget https://downloads.sourceforge.net/lame/lame-3.100.tar.gz && \
tar xvf lame-3.100.tar.gz && cd lame-3.100 && \
PATH="$HOME/bin:$PATH" \
./configure \
--prefix="$HOME/lame_build" \
--bindir=$HOME/bin \
--enable-static \
--disable-shared \
--enable-nasm && \
PATH="$HOME/bin:$PATH" make && \
make install
The detritus can then be removed with the following command:
rm -rfv $HOME/lame_build
The following now shows on my system:
andrew@corinth:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
andrew@corinth:~$ lame --version | head -n 1
LAME 64bits version 3.100 (http://lame.sf.net)
andrew@corinth:~$
And all is well :)