For so many commands which i type are correct even then i have errors like unable to locate package or sometimes it gives "invalid operation" . This error really kills me, how can i fix this?
sudo apt-get cpufrequtils
is missing a mandatory option. To install or remove use...
sudo apt-get install cpufrequtils sudo apt-get remove cpufrequtils
An more morecent alternative to
apt-get is the
apt command (see here for a discussion about their differences).
apt you more easily realize that installing isn't the only thing that these tool do. And as such you first have to tell them the operation you want to perform:
sudo apt install cpufrequtils
install the command wouldn't know whether you want to install or uninstall that package or if you simply want to search for it.
apt-get may sound like it only "gets"("install") the programs, but this isn't true.
You should prefer
apt for interactive use as it provides a cleaner interface and colorized human friendly output. Use
apt-cache for scripts.
protected by Community♦ Mar 15 '18 at 13:48
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?