'SQL Server installation issues

I am trying to install SQL Server on my Windows 10 PC. I am a beginner in SQL Server. Every time I install, I get a failed installation for the Database Engine Services. I don't know what the the issue is.

I have tried installing it multiple times. Repairing the software also does not work.

Here is the error that I found in the Summery Log File. Please help:

The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.

Error help link:
https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=15.0.2000.5&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402



Sources

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

Source: Stack Overflow

Solution Source