Like the Minion with an F in Evil, the Hero With an F in Good most of the time is basically a nice person deep down, but while the Minion with an F in Evil became a Punch Clock Villain because Evil Is Cool, but his Pet the Dog personality foils his bosses' plans, this character sometimes daydreams of becoming one of The Hero's True Companions, or being the hero by himself, but serious character flaws make it a poor career goal. He doesn't have a problem with doing heroic things, but he does have trouble when it comes to other aspects of being good.
Noble Demon: while the Noble Demon cultivates his "bad" reputation, this character daydreams of being a hero. Can be the result of a Noble Demon doing a Heel-Face Turn and realizing they don't know a thing about being a hero.
Isaac Dian and Miria Harvent work on atoning for their previous (harmless) crimes by stealing large amounts of cash and goods from wealthy families Just Like Robin Hood.
Half of this show's cast fits this to varying degrees, as even the protagonists are often The Mafia, a Noble Demon, a liquor bootlegger etc. Also note Durarara's entry as well. The author, Ryhogo Narita, is in love with this trope.
Durarara!!: Shizuo Heiwajima is definitely a nice guy underneath judging from his inner monologues (maybe even too nice) — it's just that his massive anger issues and Unstoppable Rage tend not to discriminate between bad guys and innocents. After all, how accurate can you be with a thrown vending machine?
Sousuke from Full Metal Panic! on his best days. He's mostly a good person at heart, but he's also a Child Soldier who was trained as an assassin by the KGB, brought up as a freedom fighter in "Khazakhstan," and was working as a freelance mercenary by the time he reached his teens. As such, he approaches every situation as a battlefield operation and is completely incapable of understanding civilian life, with the result that outside of actual combat situations he frequently does more harm than good with his disproportionate applications of violence.
This is probably the most even-handed way to describe Shinn Asuka from Mobile Suit Gundam SEED Destiny without descending into the Fan Dumb battles that have raged since the show ended. His main motivation is to protect the innocent, but he has severe anger issues and an anti-authority streak that gets worse over time because his commanders punish him for bad actions and seem to never notice the good he does. The moment that divides the fandom is the death of Stella Lousier, who was killed by Kira Yamato; this permanently ensures that he will never be a part of Kira's team, which means that as Kira gradually starts taking the forefront, Shinn gets portrayed as a mindless attack dog on a wire leash.
Making it really sad, the spoilered point above is simply a Gone Horribly Wrong version of something Kira himself did in the original Gundam SEED (returning Lacus Clyne to ZAFT). As for Shinn being manipulated, can he really be blamed for siding with the Chairman who treated him like a son rather than Athrun, who Bright Slapped him once for disobeying ordersnote Breaking ranks during combat to free some refugees and once for obeying them? Super Robot Wars (particularly Z and L) fixes this by having Kira help save Stella instead of killing her, defusing Shinn's anger and giving them the chance to become friends.
Itachi from Naruto might not be what he appeared to be at the outset, but there's still the fact calling him "one of the good guys" is quite a stretch. While Itachi killed the Uchiha family to prevent a devastating civil war (although wholesale genocide as a peacekeeping measure is rather fucked up, too) rather than simply as a way to test his own powers, he made some rather complicated decisions regarding sparing his little brother Sasuke; rather than simply kill him, Itachi decided to spare his life and try and make Sasuke hate him enough that he could commit Suicide by Cop later to turn Sasuke into a hero and let him live free of the shadow-conflict that consumed their family. Unfortunately, he did this by inflicting horrificMind Rape upon Sasuke on the night of the massacre and later on, emotionally crippling Sasuke for the rest of his life, and Itachi's eventual suicide at Sasuke's hands was implied to be just as much for Konoha's sake and his own self-loathing as it was out of any affection for Sasuke. Unsurprisingly, a lifetime conditioned into obsessive hatred for his brother to the exclusion of all else means Sasuke goes completely batshit insane once Itachi's gone and Madara gives him a slanted account of Itachi's life, but Itachi turns out to have had a plan for this; using Sasuke's erstwhile best friend Naruto as the delivery system, if Sasuke failed to become the hero Itachi wanted him to be, Itachi left behind a posthumous genjutsu that would brainwash Sasuke into protecting Konoha with his dead best friend's mind-controlling eye. While he is depicted as a man who made many sacrifices and tough choices, Itachi is still dangerously close to just being a Manipulative Bastard with an Omniscient Morality Licence.
When he was revived via Edo Tensei, he eventually acknowledged that he was wrong, and realized that the most he could do was hope Naruto would fix everything.
Danzo is an even worse example, being the guy who influenced Itachi; He's a Well-Intentioned Extremist who's methods can be condensed into "If it's dangerous to the Leaf, destroy it" and "If it can be useful to me, force it under my control". Unsurprisingly, these coldhearted policies have given Konoha more enemies than allies, as basically every flashback involving Danzo shows that his actions are connected to the Start of Darkness for such villains like Pain and Kabuto. And Danzo's definition of "Village" goes only as far as what he controls directly; everyone else is "Acceptable losses". When he goes to an international summit as substitute Hokage, he causes an incident getting caught trying to hypnotize the meeting moderator.
Tentai Senshi Sunred is a short-tempered bum with a pachinko addiction who survives day-to-day on the sufferance on his girlfriend Kayoko. His glory days of Sentai leadership long behind him, he now fights the monsters of Evil Organization Florsheim simply because they won't leave him alone, and mostly tends to treat it as an annoyance he'd rather be without. That said, he has some Pet the Dog moments.
You're Under Arrest!: Strikeman, the self proclaimed hero, only causes more damage than good on anything.
Hank Pym from The Avengers. He tries to be a hero but his unstable personality sometimes makes him more of a menace. He is another one who's getting over it, what with leading the last Mighty Avengers incarnations who, in-universe, nearly overshadowed Norman Osborn's Dark Avengers. However, his tendency to screw up things is still there too...
Case in point: Ultron. It's something he'll likely regret for the rest of his life.
S.H.I.E.L.D. in general. They are suppose to be a super police force to respond on super human threats, but they regularly screw up, or make things worse, or were the cause of it from the beginning.
Depending on the Writer, Deadpool can be this when he tries to be a good guy. He's too violent and psychotic to really pull off being a hero, too conflicted and silly to really be a villain, and tends to swing between Anti-Hero and Anti-Villain like a pendulum. Most of the heroes of the Marvel Universe can't stand working with him (Cable and Siryn being rare exceptions), and considering it's a Crapsack World where even guys like The Punisher and The Hulk are afforded some respect and trust, that's saying something.
F in Good or in evil, depending on your side: during the Civil War storyline, he became a registration enforcer… then he attacked superhero groups because he didn't check they had registered!
Max Damage from Incorruptible. He got scared straight when the resident Captain Ersatz of Superman snapped and went on a rampage. The book's about his struggle to redeem himself, but all he knows about being good is "do the opposite of what you used to do".
The Spectre, God's Angel of Vengeance, has such a horrifically skewed sense of proportion and priorities that, he needs to be kept bound to a morally upstanding human soul just to reach the level of Good Is Not NiceSociopathic Hero. That's right, not only did he get an F in good, but God gave him a cheat sheet, and he's still only getting Cs and Ds.
The Hal Jordan version of the Spectre is a lot less vengeful, but makes up for it by being incompetent. His more notable deeds include the time he resurrected Green Arrow as a soulless amnesiac, and the time he restored Wally West's secret identity by making everyone in the world forget who the Flash was. Including Wally.
Booster Gold before he grew out of it. Aside from being big on corporate sponsorship, Booster once opened a Justice League themed casino using the entirety of the League's funds without the League's consent to use the funds or their endorsement. His partner in this venture, Blue Beetle, would fall into this category too but he had a longer history of heroism and only got into this sort of trouble when Booster was around.
He also stole all the tech he uses to fight crime as well as the time machine he used to escape to the past.
In The Boys a team of superheroes called The Seven were the premier superheroes in the US, and they royally screw up in their attempt of stopping 9/11. Later they are seen as anything but heroic.
Star Wars: Anakin Skywalker in the prequel trilogy. He's brave and willing to risk himself for others, wants to do what's right, joins the foremost good guy organization... But he's impatient, uncontrolled, unable to accept his place and constantly tempted to just go ahead and (to sum up all the various temptations) do whatever he damn well feels like at the moment. When he does, it ends badly for everyone. After that he becomes an entirely different character who gets an A in Evil easily. Until the end of Return of the Jedi, that is.
Chronicles of Thomas Covenant: Thomas Covenant becomes one of these in the first trilogy, after an act that many consider a rare "heroic" Moral Event Horizon. Covenant himself is sickened and guilty over what he's done and tries to make up for it where he can, but he generally just winds up making things worse. For example, he's trying to atone for his rape of the village girl Lena. He knows that Lena loves the Ranyhyn, so when he's able to command them at one point, he tells them to visit her annually. Problem is, they're still held by this command when the Big Bad is on the verge of destroying the world, and it keeps them from fleeing to safety. This nearly leads to the extinction of the Ranyhyn. It's worth noting that while Covenant does turn out to be a good person, (very) deep down, it takes three whole books for either him or the reader to admit it.
In a very real sense, the entire point of the first trilogy is the psychological redemption of an utterly broken man into someone who can live with himself - the first book setting him up as someone the audience very likely hates as a reflection of how badly he already hates himself. And since the series very strongly straddles the line between reality and psychological allegory (and occasionally argues that both answers are valid), by definition saving the Land saves his own soul - and vice-versa.
This entire framework continues into the second trilogy - except instead of being Covenant's redemption, it's the story of how Linden is ultimately tested and redeemed (and no, all the references in the series to alloys and forging aren't coincidental at all). It's hard to tell if the third (and final) tril... err, tetralogy follows the same pattern, and if so, precisely WHO is being redeemed. As of the third book, it's clearly not Joan, Jeremiah shouldn't need to be redeemed, and Roger shows absolutely no sign of showing an ounce of remorse or growth. If anything, the true harrowed character (if any) might be Lord Foul himself, "She Who Must Not Be Named", or the entire world of The Land as a whole.
Molly Carpenter , Nice girl, not very good with using moral methods to present moral outcomes. There's a reason there's a death sentence over her head if she gets out of line. It starts with using mind control to get a friend off Heroin, which ended up being more Mind Rape. Oh, and Black Magic is addictive too. She keeps trying to use Mind Rape several books later when she feels its worth it (it never is), despite knowing that if she gets caught (and she's terrible about not getting caught), not only will she be executed for it, but so will Harry.
In the obscure children's book Simson and Samson, Sir Simson looks like and does his best to be a classic heroic knight. He's not very good at it, generally wreaking so much incidental havoc that the peasantry desperately hopes he won't try to help them with their problems.
This is why, in Twilight, Jacob is considered inferior to Edward. Jacob is ostensibly nicer, shares more of Bella's interests, lacks Edward's self-loathing issues, and seems like a lot more fun - but unlike Edward he isn't particularly ashamed of his monster side (Edward only being ashamed of it inasmuch as it presents a danger to his girlfriend, though), and has extreme mood swings in which he could do Bella serious harm (wheras Edward has much better self-control). At one point, he even decides to take revenge for Bella dying in childbirth by murdering her baby, because it killed her.
Rachel's the most powerful example, but really, they all get this way after a while, particularly Marco and Jake. It's one of the running themes of the series — and the great thing about a series that's 52 books long is that it happens so slowly and gradually that there's never really a moral event horizon. It just happens. One of the themes is that War Is Hell and you become less... you... as time goes on, one I Did What I Had to Do moment at a time. Worse, (well, best in terms of writing, worst in terms of what it's like to live in that world) it's hard to say that any of the things they ended up doing were unnecessary.
It starts back in season 4, when he's "forced" by his condition (he only could hurt monsters, but not humans) to fight alongside the good guys.
Spike: What's this? Sitting around watching the telly while there's evil still afoot? It's not very industrious of you. I say, we go out there, and kick a little demon ass. What, can't go without your Buffy? Is that it? Too chicken? Let's find her. She is the Chosen One, after all. Come on! Vampires! Grrr! Nasty. Let's annihilate them. For justice, and for the safety of puppies, and Christmas, right? Let's fight that evil. Let's kill something. Oh, come on!
Charmed: Cole Turner. While, admittedly, he is the victim of double standards, he does have trouble doing good, even during the times he isn't being treated unfairly. Often end up solving problems using violence.
Tsukasa, the titular Kamen Rider Decade, is a Jerk with a Heart of Gold at the best of times, but when he tries manipulating other people for the greater good, his rather extreme methods place him squarely in this trope.
The First Doctor in Doctor Who is this for most of the first season. He grows out of being the Token Evil Teammate after his first story (where he abducts two schoolteachers, dumps them in the Stone Age and tries to bash a man's brains out with a rock because he might slow him down) but even in "The Daleks", where he takes a more heroic role and uses his brains to defeat a bunch of horrible racist tanks, he deliberately sabotages his own TARDIS to persuade the teachers to explore a ruined city with him, and expects them to forgive him for it once he admits it. In "The Aztecs" he does his best to save the other travellers from the results of Barbara's meddling but still gives a warrior a sleeping drug to use to cheat in a fight, only deciding this might have been wrong when he finds out the opponent is Ian. He negotiates peace between two warring races, ousts a corrupt politician and gets proper treatment for a victim of Mind Rape in "The Sensorites", but still ends the story by attempting to dump Ian in the middle of nowhere just because Ian made a sarcastic comment about his driving skills. It's not really until in "The Dalek Invasion of Earth", when he declares himself "a protector of Earth" while yelling at a Dalek, that he graduates to hero status.
It's Always Sunny in Philadelphia Averted in "The Gang Gets Extreme Home Makeover Edition". The gang tried to do something nice by giving an immigrant family a home-make-over, only for it to lead to an Accidental Kidnapping situation. So you'd think it'd be this. But it was clear from the beginning that they're only doing it for some karmic reward and not the goodness of their heart.
Jowan of Dragon Age: Origins is blood mage who, unlike the others you meet, is perfectly well-meaning and just wants to live a normal life and do some good. Unfortunately, his efforts at doing so all end in disaster.
According to Word of God, Jowan was supposed to be a recruitable party member with the ability to teach mages Blood Magic and a possible love interest for the female Player Character. Time constraints have forced the developers to cut him down to an NPC.
Yuffie from Final Fantasy VII tries to be good, but she just accidentally gets an entire trope name after her inability to do so.
Cassiel of Misfile is Satan's niece, and normally just bothers the main characters with Poke the Poodle evil plots (such as serving them sub-par snacks). When she decides to do nice things for her mortal friend, however, she ends up screwing things over pretty bad.
Captain Courage, of the Whateley Universe. He tries to be a hero, but he has so many illegitimate children and paternity suits that there are more wanted posters out for him than for most supervillains. In most places, he's now known as Captain Condom instead of his real codename.
The Fairly OddParents: Adam West/Catman believes himself to be a great superhero, but is little more than a cat-obsessed Cloudcuckoolander. He often mistakenly attacks innocent civilians while letting real crooks like purse-snatchers get away, and typically causes more trouble than he prevents. In fact, it's only thanks to Timmy and his fairy godparents that Catman has avoided jail time as long as he has.
The Simpsons: In "The Old Man and the Lisa", after losing his fortune, Mr. Burns unsuccessfully tried to be good. He tries his hand at recycling, and ends up using the plastic he recycled to overfish the nearby sea.
Lisa: When you try to be good, you're even more evil!
Fry: Now me and Leela are forming an awesome crime-fighting duo.
Bender: Wow, crime-fighting. Cool. You say you're a duo? Yeah duos are good. Of course sometimes they're a little short handed. See ya. With two humans you'd think there'd be a robot in there... to balance things out. But, whatever. I have these three costumes you could use. But, I guess I'll just throw one away.
Leela: We'd love to have you on the team Bender. But aren't you more on the supply side of crime?
Zapp can be this when he's not an antagonist. Disturbingly incompetent and overtly contemptuous of his own men, he launches a war of aggression For the Evulz in "War is the H-Word".
In Superman: The Animated Series, Bizarro thinks he's Superman, so goes around "saving" a building from what he didn't realize was a scheduled demolition, and "fixing" an opening draw bridge, thinking it was falling down, causing a ship to almost crash into it.
This sort of action was played for laughs in the Daffy Duck cartoon "Stupor Duck." Daffy, as mild-mannered Cluck Trent mistakes dialogue from a radio drama as a villain's arch plans, so as Stupor Duck, he rights a to-be-demolished building, stops a staged-for-filming railroad demolition, surfaces a legal submarine, and gets sent to the moon on a rocket.
In the episode "Zuko Alone", he fits the bill better than usually though. He's just beginning to find himself in that episode and gets reluctantly drawn into a conflict with some corrupt Earth Kingdom soldiers that are abusing their position in a small village. He struggles with not wanting to get involved (and of course hiding that he is a Fire Bender), but in the end, saves the day. Of course, his Crowning Moment Of Awesome, when he tells the Earth Bender EXACTLY WHO just beat his ass, turns sour when the townsfolk (including the little boy he just saved) no longer want anything to do with him after seeing his Fire Bending. On top of that, the reason the boy was in trouble at all was because Zuko gave the child his own dagger as a parting gift and the boy threatened a guard with it.
Coop of Megas XLR. He's a good guy, and far from incompetent (but still within view of it), he's just a Destructive Savior to the nth degree. One episode dealt with some alien superheroes mistaking him for an outright villain, and their nemesis thinking he was trying to pull an Eviler than Thou.
Plastic Man in Batman: The Brave and the Bold. Recently redeemed and enthusiastic about being a hero, but frequently exasperates Batman with his difficulties being competent and not stealing stuff.
In Luna's case, she's genuinely good at heart and doesn't have trouble doing things that are good, but there's the slight problem that (a) she used to be the setting's version of the devil, and (b) she is scarily powerful, to the point that the weather changes with her mood, her hooves cause the ground beneath her to crack, and if she forgets herself and uses her real voice it will send you flying, and that's when she's trying to be friendly. She's got an A in good and an F at reassuring the populace, until Twilight helps her with that.
Jackie Chan Adventures, in the episode The Good Guys. Chow, Ratso, and Finn, tired of constantly losing to Jackie Chan, attempt to reform. At the end of the episode they go right back to being evil, saying "We're just no good at being good."
Teen Titans: Jinx became a villain in the first place because of this; her power is basically to screw everything up, and by the time she appears on the show she's just given up and gone to the dark side because it's something she can do right. By series' end, she reforms and gets it right this time (only to go back to being evil in Teen Titans Go!).
Cartman's alter ego The Coon in South Park is perfectly convinced he is fighting crime and making the world a better place, oblivious to the fact most of his acts of 'heroism' revolve completely around glorifying himself or harassing innocent people he mistakes for criminals (eg. attacking a "rapist" that was having a romantic moment with his girlfriend, or bullying Harmless Villain Professor Chaos). Both of his appearances so far have culminated in him turning on another hero he believes is outshining him and more or less becoming the episode's villain in the process, still convinced he is the town's beloved hero.
Mysterion: You are the bad guy, Cartman! YOU!
Coon: I'm making the world a better place!
Mysterion: FOR YOU!!! You're making the world a better place FOR YOU!