earphones not working in ubuntu

C++
sudo apt-get install pavucontrol
Source

Also in C++: