Avocados turn black or brown when they are exposed to cold temperatures for a long time before they begin to ripen. The discoloration also occurs as a result of compression with excessive handling. The fruits can be eaten by removing those spots with a knife.