What's the difference between what's happening in Libya and what happened in Egypt?

How did Gadhafi crush the revolution?

Libya's government quashed the revolution by using force against it. It seems that Libya is in the midst of a civil war, whereas Egypt's people are pretty much united.