[SOLVED] Command not found

souflex

Reputable
Feb 5, 2016
87
0
4,630
Hello everyone! Hope everyone is staying safe during these times. Decided to take advantage of the quarantine and learn a new skill..... so i installed linux on a laptop i had lying around! I even ordered a book from amazon to learn the command line. I am a complete beginner and look forward to learning this skill :) so my issue today is this: i am playing around in the terminal, and i am trying to run the command "sudo apt-get update". Naturally, it asks me for my password which i proceed to type out, but then nothing happens... just a "command not found" The password is correct. Any thoughts would be greatly appreciated :)
 
Solution
The problem is not the sudo command, it's the apt command. Apt (aptitude) is a package manager program. There are a few different package managers used in various linux distributions. I don't use manjaro, but I believe it uses pacman package manager rather than apt, which is why it complains "command not found". If you want a distribution that uses apt, which I would say you do considering you are new, install Ubuntu or Mint. I prefer the KDE version of Ubuntu called Kubuntu.
Sudo only works with certain linux distros. Which version of Linux did you install

yiu have to tell apt-get what you want to update
 
The problem is not the sudo command, it's the apt command. Apt (aptitude) is a package manager program. There are a few different package managers used in various linux distributions. I don't use manjaro, but I believe it uses pacman package manager rather than apt, which is why it complains "command not found". If you want a distribution that uses apt, which I would say you do considering you are new, install Ubuntu or Mint. I prefer the KDE version of Ubuntu called Kubuntu.
 
  • Like
Reactions: souflex
Solution
I will also add that most of the forums and help that you will find on the internet will be biased towards Debian based distributions like Ubuntu and Mint. While I encourage people to check them all out, I'd start with the more mainstream to get your feet wet.
 
  • Like
Reactions: souflex
I will also add that most of the forums and help that you will find on the internet will be biased towards Debian based distributions like Ubuntu and Mint. While I encourage people to check them all out, I'd start with the more mainstream to get your feet wet.
i appreciate your detailed answer and will go ahead and download mint right now :)

this is not the first time that i am attempting to learn linux... i really love and support the ideologies backing the opensource ways of life/computing. my hope is to one day break free from main strean OS's although they are meeting my needs right now. thanks again :)
 
The problem is not the sudo command, it's the apt command. Apt (aptitude) is a package manager program. There are a few different package managers used in various linux distributions. I don't use manjaro, but I believe it uses pacman package manager rather than apt, which is why it complains "command not found". If you want a distribution that uses apt, which I would say you do considering you are new, install Ubuntu or Mint. I prefer the KDE version of Ubuntu called Kubuntu.
also would like to know which distro you use out of curiosity :)
 
Like you, I started off with Linux in a very on again, off again manner. This was probably more than a decade ago, things were pretty rocky back then. It's amazing how far it has come. I started out with Mandrake. From what I remember, it had KDE desktop environment and I didn't really like it.

I started using Linux on more of a regular basis starting with Mint v13. I bounced around with the different desktop environments, I always ended up going back to KDE. I think I switched my home machine permanently over to Linux at around Mint 15. Eventually Mint dropped KDE, which is when I switched to Kubuntu:

https://kubuntu.org/

For my whole life, I've always supported the people around me with their computers. Fixing them, building them, installing operating systems, cleaning up virus laden machines, etc. I hadn't actually installed Windows in several years until a few months ago, I fixed my friends laptop who's hard drive failed. Doing this reminded me of how much better the installation can be when installing Linux vs Windows. I had to go find drivers for a very old Toshiba laptop, which was very difficult to even know the specific hardware that it came with (graphics, network drivers, etc). I installed Linux first to figure out what all the hardware actually is (since it was all unknown in Windows), got the drivers, then went through the installation of windows. I guess the point of all of that was the long way to say that all of the hardware just worked out of the box under Linux.

Anyway, good luck, if you get stuck, don't give up. There is a lot of support out there.
 
Like you, I started off with Linux in a very on again, off again manner. This was probably more than a decade ago, things were pretty rocky back then. It's amazing how far it has come. I started out with Mandrake. From what I remember, it had KDE desktop environment and I didn't really like it.

I started using Linux on more of a regular basis starting with Mint v13. I bounced around with the different desktop environments, I always ended up going back to KDE. I think I switched my home machine permanently over to Linux at around Mint 15. Eventually Mint dropped KDE, which is when I switched to Kubuntu:

https://kubuntu.org/

For my whole life, I've always supported the people around me with their computers. Fixing them, building them, installing operating systems, cleaning up virus laden machines, etc. I hadn't actually installed Windows in several years until a few months ago, I fixed my friends laptop who's hard drive failed. Doing this reminded me of how much better the installation can be when installing Linux vs Windows. I had to go find drivers for a very old Toshiba laptop, which was very difficult to even know the specific hardware that it came with (graphics, network drivers, etc). I installed Linux first to figure out what all the hardware actually is (since it was all unknown in Windows), got the drivers, then went through the installation of windows. I guess the point of all of that was the long way to say that all of the hardware just worked out of the box under Linux.

Anyway, good luck, if you get stuck, don't give up. There is a lot of support out there.
Thank you once again for the detailed reply. I know it sounds silly but the more i learn about tech, the more i want to break away from these mega corporations... I will keep on going with linux :)