Hi @tri minh
An error occurred for a dependency of the feature causing the setup process for the feature to fail. Error installing SQL Server Database Engine Services Shared Features
Are you uninstalling the instance and re-install the SQL Server Service?
To remove all components of previous installed SQL Server completely, please follow by this article.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".