I had Windows 7 and Lubuntu together. I decided to replace Lubuntu with Ubuntu, and deleted the partition it was on. I created a bootable USB stick with Ubuntu 24 desktop, and started the installation.
During the installation the boot hung at one stage, and nothing happened for a long time. After I restarted the PC, I saw grub rescue
and I tried to fix the situation with different solutions from the Internet, but it did not help. As a result, at the moment I have Windows 7, which cannot be launched, a bootable USB stick with Ubuntu, which will not install it (but can launch a trial version), and grub rescue, which is shown when I start the computer without a USB stick.
I understand that I acted very stupidly and made a lot of mistakes.
Is it possible to somehow fix the situation?
If yes, how to do it?