Error with kali linux

Tr
6

I wanted to get minecraft on my Linux PC. (Java edition)

But when I have installed everything and minecraft with the befehl./Minecraft.deb

launch the following error:

./Minecraft.deb: 2: Syntax error: newline unexpected

Please help me quickly because I still want to gamble with a buddy today.

za

.deb are installation packages, you can install but not run them

Co

The following command should help

dpkg install Minecraft.deb

Tr

How should i install minecraft then

Tr

Then comes E: Invalid operation dpkg

Co

Ok, try it

sudo apt install./Minecraft.deb

or if you are root:

apt install./Minecraft.deb

za

First you install the .deb package, for example with dpkg or gdebi (pay attention to the dependencies). Minecraft is then installed and you can access it from the start menu. Prop. Quite easy.