I made a typo when installing an alternatives. How do I clear it?update-alternatives: disable log file...
How do I get toddlers to stop asking for food every hour?
Do they have Supervillain(s)?
How do I, an introvert, communicate to my friend and only colleague, an extrovert, that I want to spend my scheduled breaks without them?
Numbers Decrease while Letters Increase
Why do banks “park” their money at the European Central Bank?
How do I prevent other wifi networks from showing up on my computer?
Did anyone try to find the little box that held Professor Moriarty and his wife after the crash?
Could George I (of Great Britain) speak English?
Improving Performance of an XY Monte Carlo
Più, meno, poco & molto: How to write incremental dynamics?
Which book is the Murderer's Gloves magic item from?
What is the difference between "Grippe" and "Männergrippe"?
Does an atom recoil when photon radiate?
Transposing from C to Cm?
What is the difference between Major and Minor Bug?
Circular Reasoning for Epsilon-Delta Proof?
Why is 1. d4 Nf6 2. c4 e6 3. Bg5 almost never played?
Why is there so little discussion / research on the philosophy of precision?
Are modern clipless shoes and pedals that much better than toe clips and straps?
How to handle torpor?
Prevent use of CNAME Record for Untrusted Domain
Can RMSE and MAE have the same value?
Read file lines into shell line separated by space
How to determine car loan length as a function of how long I plan to keep a car
I made a typo when installing an alternatives. How do I clear it?
update-alternatives: disable log file /var/log/alternatives.logI deleted /etc/alternatives/javaInstalling java 1.6 when 1.7 already installed?How to use update-alternatives in an alternate root pathDebian alternatives system: programs with the same name and prioritiesupdate-alternatives has two entries, one in auto and other in manualDifference between auto mode and manual mode in update-alternativesFedora 25 Change from Python 2.7.13 to Python3 (broken by `alternatives`)Why use the alternatives command?`update-alternatives` vs `dpkg-reconfigure`
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I accidentally typed alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip instead of alternatives --install /usr/[...] .
Now I can't set it to anything else, or I get the error:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
I get basically the same message when I try alternatives --remove pip /user/lib/python2.7/site-packages/pip
How can I fix this?
alternatives
add a comment |
I accidentally typed alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip instead of alternatives --install /usr/[...] .
Now I can't set it to anything else, or I get the error:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
I get basically the same message when I try alternatives --remove pip /user/lib/python2.7/site-packages/pip
How can I fix this?
alternatives
add a comment |
I accidentally typed alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip instead of alternatives --install /usr/[...] .
Now I can't set it to anything else, or I get the error:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
I get basically the same message when I try alternatives --remove pip /user/lib/python2.7/site-packages/pip
How can I fix this?
alternatives
I accidentally typed alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip instead of alternatives --install /usr/[...] .
Now I can't set it to anything else, or I get the error:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
I get basically the same message when I try alternatives --remove pip /user/lib/python2.7/site-packages/pip
How can I fix this?
alternatives
alternatives
edited Mar 21 '17 at 23:45
JETM
asked Mar 21 '17 at 17:39
JETMJETM
1197 bronze badges
1197 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
update alternatives --remove pip /opt/anaconda/bin/pip
This will remove the bad link, then you can add the correct one.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f352888%2fi-made-a-typo-when-installing-an-alternatives-how-do-i-clear-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
update alternatives --remove pip /opt/anaconda/bin/pip
This will remove the bad link, then you can add the correct one.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
update alternatives --remove pip /opt/anaconda/bin/pip
This will remove the bad link, then you can add the correct one.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
update alternatives --remove pip /opt/anaconda/bin/pip
This will remove the bad link, then you can add the correct one.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
update alternatives --remove pip /opt/anaconda/bin/pip
This will remove the bad link, then you can add the correct one.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered yesterday
MikeFMikeF
1
1
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
MikeF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f352888%2fi-made-a-typo-when-installing-an-alternatives-how-do-i-clear-it%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