Your error message tells the story: When calling
apt-get install does not exist but bash does
The result should be:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package does
E: Unable to locate package not
E: Unable to locate package exist
E: Unable to locate package but
E: Unable to locate package does
You get only one line, which means that either your shell itself or any alias or function defined in the shell for apt-get
does not send the individual package names to the real executable as individual arguments, but as one long argument containing spaces. I think this is what tripleee was pointing out.
To find out what happens:
- If you did not type this directly into a "normal" shell but into a wrapper (a web-frontend to the shell counts as such): stop doing that or look up the documentation of the wrapper
- If you really typed this in correctly, check if an alias or a function is defined:
- enter:
type apt-get
- should return:
apt-get is /usr/bin/apt-get
- if it returns
apt-get is a function
or apt-get is aliased to ...
, you have your answer