The secret to installing Minecraft the easy way is to use a third-party launcher/manager like Prism Launcher.
First make sure you have the latest version of Java and the Flatpak runtime installed on your Linux system. You can check this by running the following commands in a terminal:
java -version flatpak --version
Install the Flatpak build of Prism Launcher by running the following command in a terminal:
flatpak install flathub org.prismlauncher.PrismLauncher
Once Prism Launcher is installed, you can launch it by running the following command:
flatpak run org.prismlauncher.PrismLauncher
In Prism Launcher, click the "Install" button and select "Minecraft" from the list of available games. While you're at it you can also select a modding API like Forge at this stage. This makes for way easier modding.
Follow the prompts in Prism Launcher to download and install Minecraft on your Linux system.
Please note that this is a general outline and may vary depending on the specific version of Linux you are using and the version of Prism Launcher available. It's always a good idea to check the official documentation for the most up-to-date instructions.