Beware some video's have multiple audio files. Using the correct demuxing procedure is in order.
In this article I assume you want to extract audio from YouTube Video's with one audio stream
- Open a terminal screen. (Ctrl+T in Ubuntu)
 
- type: ffmpeg -i inputfile.mp4 -vn -ab 256 outputfile.mp3
 
for more information visit the FFmpeg site