RetroPie doesn't have a Doom Legacy package - it's probably something extra included. I don't find any information about the RGB-Pi OS being based on RetroPie (though the documentation has some info that include RetroPie specific paths), nor a source repository for the image - maybe ask the image author about the issue ?