How do you train a dog not to bite?

Dogs are cute and a great addition to the familyAside from the positive aspects,