Since it seems the Greek vehemently opposite the conditions imposed by the EU for the 3rd bailout, I don't understand why the Greek government did not raise the money needed to repay the previous loans by selling treasury bond or privatizing public assets before the full blown of this whole crisis.
there are a few reasons:
Directly selling bonds isn't a common method to get money from your people. Raising taxes works more effectively. A promise of future spending would be roughly equivalent to selling bonds.
why not sell bonds to everybody? not just the Greeks? To a large extent, this has already been done. You don't get to 158% Dept to GDP without a lot of borrowing. Borrowing to pay interest is common. It isn't a long term solution.
The Greeks have been negotiating the terms of the bailout for many months now. Liquidating assets would have been considered and I expect will happen as part of these new measures.