When I try to install Sharepoint 2013 on a new Windows 2012 R2 server, I encounter the following error with the Product Preparation Tool:
Unable to install Application Server Role
I followed a KB article of Microsoft but without any result.
Update: I manually installed all prerequisites. They are successfully installed, but the Product Preparation Tool still gives an error: