If u want to learn seriously.... try to search for a musci center and take classes there.....and if u do right,.,,, in more or less 4 years ull be good.
If u want to be able to play any kinf of music...u have to learn classical music. All the styles of music comes from the classical,, that is the most difficutl and complex of all.
A beginner have to start to learn the basics, i mean the mayor , minor and 7s chords.... it will help to learn the mayor circles, the circle of do,re mi,fa,sol,la and si.
U will have to train some agility excersises... little scales and then ill continue.
I recommend u to search for a professor.
I had the luck to have a professor the house next to mine

he is 27 years aold and is a pro guitarrist , he is my frind, and like me, loves metal music...so we have a lot of things in common and is easier for me to learn.
Dont get me wrong... there are a lot of guitarrist who become masters without even taking a single class... i have friends that are very good without classes............. but if u manage to learn the music structures and the whole thing.. ull be even better.