'Linux ffmpeg utomatic encoder selection failed for output stream

I'm having an issue with doing basically anything in ffmpeg. When I input basic ffmpeg -i filename.mp4 filename.mp3 or ffmpeg -i video.mp4 -b:a 192K -vn music.mp3 to extract audio from an .mp4 I only get this exact communicate:

Automatic encoder selection failed for output stream #0:0. Default encoder for format mp3 (codec mp3) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0

I'm using the newest version of ffmpeg (FFmpeg 5.0.1 "Lorentz") and newest version of fedora 35



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source