You use the sudo command to gain root privilege. It is required to install Debian packages. Normal users are not able to install Debian packages. Of course, you will be asked to provide the root user password.
Quote:
sudo dpkg -i package-file
|
works with a package file that is already available on your hard disk. The system doesn't need to download it from the repositories (like stores of thousand of packages. I think your question is related to your printer problem.
linux-newbie-8/how-to-i-get-my-printer-to-be-accepted-by-linux
I you have a certain .deb package file on your hard disk, you will have to use this command.
If you don't then
Quote:
sudo apt install package-name
|
apt will search for the package name and generate a list of dependencies (if any) then it will represent you with a list of the required packages and ask you to download them. If you agreed (by providing a y/n answer) it will download the packages automatically and install them. For example:
Quote:
sudo apt install smplayer
|
will make apt search for the required packages required by Smplayer(if not installed) then list them on the screen and asks you if you accept to download and install them.
The same goes for Ssupertuxkart and a lot of games or apps.
Most of the time you will need to use
Quote:
sudo apt install package-name
|
Of course, you will have to replace
package-name with the exact name of the package you want to install.
I have to say that there are many GUI frontends to make make installing software easier than it was before. I don't use Parrot Linux but a quick search in their wiki or documentation will do. Most of the time Graphical interface will suffice. You can use Gdebi to graphically install .deb packages without using the command line.
Please take a look at this:
https://parrotlinux.org/docs/parrot-...anagement.html
If you have any questions, feel free to ask.