Libya was destroyed for no reason and the US didn't restore its ancient splendor.Not at all. It is necessary to look into the reasons for each of the aggressors starting their actions.
It does appear, in Russia's case, it simply wants a larger piece of the "breadbasket of Europe" and/or to provide a buffer against NATO.
The U.S. (and other countries) operations in Libya were authorized by the United Nations, to implement United Nations Security Council Resolution 1973 (UNSCR 1973), in response to events during the First Libyan Civil War. With ten votes in favour and five abstentions, the intent of the UN Security Council was to have "an immediate ceasefire in Libya, including an end to the current attacks against civilians, which it said might constitute 'crimes against humanity' ... [imposing] a ban on all flights in the country's airspace — a no-fly zone — and tightened sanctions on the Muammar Gaddafi regime and its supporters." No nation was seeking to take part of Libya for themselves.
These are very, very different in cause, nature and effect.
That was a big mistake.
Ukraine has been devastated by a war, in Donbas, due to the Russian invasion.
So I can't see any difference between the two world powers. Do you?