Why Does the Afghanistan Quagmire Never End?

In "War Machine" for Netflix, starring Brad Pitt, the troops start to ask questions about precisely what they are supposed to be doing in this far-flung corner of the world. For starters, who precisely is the enemy? It seems that most every native of this country wants the Americans out. Every second civilian would gladly pull the trigger to kill an American soldier if he could. If the Americans are really there to serve the people and defeat the enemy, it becomes a problem that most everyone, so far as anyone can tell, is on the spectrum somewhere in between.

Source