Final answer:
Omnivores get energy from animals, primary producers, detritus, but not directly from sunlight as they are not capable of photosynthesis.
Step-by-step explanation:
Omnivores are organisms that get energy from various sources including animals, plants, and detritus, making them flexible consumers in the ecosystem. Primarily, energy in ecosystems traces back to the sun, as primary producers like plants and certain bacteria convert light energy through processes like photosynthesis or chemosynthesis. Omnivores have the ability to obtain energy directly by consuming these primary producers or indirectly by eating other consumers that have fed on the producers. So, omnivores get their energy from animals, primary producers, detritus (decomposed organic material), and not directly from sunlight because they do not have the capability to harness energy from the sun via photosynthesis as plants do.