sudo: apt-get: command not found
When I run apt-get update
as root
user it's working well, but not working for apt-get install build-essential manpages-dev
(showing apt-get command not found
).
14.04 command-line apt gnome-terminal
add a comment |
When I run apt-get update
as root
user it's working well, but not working for apt-get install build-essential manpages-dev
(showing apt-get command not found
).
14.04 command-line apt gnome-terminal
1
What doeswhich apt-get
say ran asroot
?
– Karl Richter
Aug 3 '16 at 12:47
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
1
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33
add a comment |
When I run apt-get update
as root
user it's working well, but not working for apt-get install build-essential manpages-dev
(showing apt-get command not found
).
14.04 command-line apt gnome-terminal
When I run apt-get update
as root
user it's working well, but not working for apt-get install build-essential manpages-dev
(showing apt-get command not found
).
14.04 command-line apt gnome-terminal
14.04 command-line apt gnome-terminal
edited Aug 3 '16 at 12:46
Karl Richter
2,49483569
2,49483569
asked Aug 3 '16 at 10:29
souravsourav
791313
791313
1
What doeswhich apt-get
say ran asroot
?
– Karl Richter
Aug 3 '16 at 12:47
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
1
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33
add a comment |
1
What doeswhich apt-get
say ran asroot
?
– Karl Richter
Aug 3 '16 at 12:47
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
1
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33
1
1
What does
which apt-get
say ran as root
?– Karl Richter
Aug 3 '16 at 12:47
What does
which apt-get
say ran as root
?– Karl Richter
Aug 3 '16 at 12:47
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
1
1
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33
add a comment |
3 Answers
3
active
oldest
votes
You first login as root user, then try this one,
apt-get update;
apt-cache search package name;
It will show the proper package name,
Then you can install it through the apt-get install package name
.
https://ubuntuforums.org/showthread.php?t=291651
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
add a comment |
Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).
Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)
Hope this helps ;D
add a comment |
Try simulating the command without doing anything else, in order to get only the command's error messages:
sudo apt update
apt install --simulate build-essential manpages-dev
If there are no error messages, try running the commands as root without the --simulate
option.
sudo apt update
sudo apt install build-essential manpages-dev
OP saidapt-get install build-essential manpages-dev
doesn't work. why do you think it will work with--simulate
switch?
– Anwar
Aug 3 '16 at 14:05
In case he ranapt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like anapt~get command not found
error message, I'm trying to trick him with the sneaky placebo--simulate
option into copy/pasting the correct command instead.
– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f806496%2fsudo-apt-get-command-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You first login as root user, then try this one,
apt-get update;
apt-cache search package name;
It will show the proper package name,
Then you can install it through the apt-get install package name
.
https://ubuntuforums.org/showthread.php?t=291651
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
add a comment |
You first login as root user, then try this one,
apt-get update;
apt-cache search package name;
It will show the proper package name,
Then you can install it through the apt-get install package name
.
https://ubuntuforums.org/showthread.php?t=291651
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
add a comment |
You first login as root user, then try this one,
apt-get update;
apt-cache search package name;
It will show the proper package name,
Then you can install it through the apt-get install package name
.
https://ubuntuforums.org/showthread.php?t=291651
You first login as root user, then try this one,
apt-get update;
apt-cache search package name;
It will show the proper package name,
Then you can install it through the apt-get install package name
.
https://ubuntuforums.org/showthread.php?t=291651
edited Aug 3 '16 at 11:09
answered Aug 3 '16 at 11:04
GanapathyGanapathy
1469
1469
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
add a comment |
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
Its working after install all the packages. Thanks Man.
– sourav
Aug 3 '16 at 15:22
add a comment |
Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).
Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)
Hope this helps ;D
add a comment |
Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).
Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)
Hope this helps ;D
add a comment |
Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).
Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)
Hope this helps ;D
Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).
Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)
Hope this helps ;D
answered Aug 3 '16 at 11:30
ManuManu
1007
1007
add a comment |
add a comment |
Try simulating the command without doing anything else, in order to get only the command's error messages:
sudo apt update
apt install --simulate build-essential manpages-dev
If there are no error messages, try running the commands as root without the --simulate
option.
sudo apt update
sudo apt install build-essential manpages-dev
OP saidapt-get install build-essential manpages-dev
doesn't work. why do you think it will work with--simulate
switch?
– Anwar
Aug 3 '16 at 14:05
In case he ranapt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like anapt~get command not found
error message, I'm trying to trick him with the sneaky placebo--simulate
option into copy/pasting the correct command instead.
– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
add a comment |
Try simulating the command without doing anything else, in order to get only the command's error messages:
sudo apt update
apt install --simulate build-essential manpages-dev
If there are no error messages, try running the commands as root without the --simulate
option.
sudo apt update
sudo apt install build-essential manpages-dev
OP saidapt-get install build-essential manpages-dev
doesn't work. why do you think it will work with--simulate
switch?
– Anwar
Aug 3 '16 at 14:05
In case he ranapt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like anapt~get command not found
error message, I'm trying to trick him with the sneaky placebo--simulate
option into copy/pasting the correct command instead.
– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
add a comment |
Try simulating the command without doing anything else, in order to get only the command's error messages:
sudo apt update
apt install --simulate build-essential manpages-dev
If there are no error messages, try running the commands as root without the --simulate
option.
sudo apt update
sudo apt install build-essential manpages-dev
Try simulating the command without doing anything else, in order to get only the command's error messages:
sudo apt update
apt install --simulate build-essential manpages-dev
If there are no error messages, try running the commands as root without the --simulate
option.
sudo apt update
sudo apt install build-essential manpages-dev
edited Feb 2 at 9:44
answered Aug 3 '16 at 11:03
karelkarel
60.6k13131155
60.6k13131155
OP saidapt-get install build-essential manpages-dev
doesn't work. why do you think it will work with--simulate
switch?
– Anwar
Aug 3 '16 at 14:05
In case he ranapt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like anapt~get command not found
error message, I'm trying to trick him with the sneaky placebo--simulate
option into copy/pasting the correct command instead.
– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
add a comment |
OP saidapt-get install build-essential manpages-dev
doesn't work. why do you think it will work with--simulate
switch?
– Anwar
Aug 3 '16 at 14:05
In case he ranapt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like anapt~get command not found
error message, I'm trying to trick him with the sneaky placebo--simulate
option into copy/pasting the correct command instead.
– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
OP said
apt-get install build-essential manpages-dev
doesn't work. why do you think it will work with --simulate
switch?– Anwar
Aug 3 '16 at 14:05
OP said
apt-get install build-essential manpages-dev
doesn't work. why do you think it will work with --simulate
switch?– Anwar
Aug 3 '16 at 14:05
In case he ran
apt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found
error message, I'm trying to trick him with the sneaky placebo --simulate
option into copy/pasting the correct command instead.– karel
Aug 3 '16 at 14:35
In case he ran
apt–get install
(with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found
error message, I'm trying to trick him with the sneaky placebo --simulate
option into copy/pasting the correct command instead.– karel
Aug 3 '16 at 14:35
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.
– Anwar
Aug 3 '16 at 15:38
1
1
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
Either way, the cat's out of the bag now.
– karel
Aug 3 '16 at 15:56
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f806496%2fsudo-apt-get-command-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What does
which apt-get
say ran asroot
?– Karl Richter
Aug 3 '16 at 12:47
What do you mean by running as root? using sudo or not?
– Anwar
Aug 3 '16 at 13:41
1
result of which apt-get /usr/bin/apt-get
– sourav
Aug 3 '16 at 14:33