terminal not working after deleting python
up vote
0
down vote
favorite
earlier my default python version is python2.7 to upgrade it I deleted python form /usr/bin/ and rename python3.6 as python in the same directory.
afterward, my terminal is not working. its gets no response on opening it.
please help!!
gnome-terminal
add a comment |
up vote
0
down vote
favorite
earlier my default python version is python2.7 to upgrade it I deleted python form /usr/bin/ and rename python3.6 as python in the same directory.
afterward, my terminal is not working. its gets no response on opening it.
please help!!
gnome-terminal
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
1
DO NOT renamepython3.6
aspython
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.
– user535733
Dec 2 at 20:33
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
earlier my default python version is python2.7 to upgrade it I deleted python form /usr/bin/ and rename python3.6 as python in the same directory.
afterward, my terminal is not working. its gets no response on opening it.
please help!!
gnome-terminal
earlier my default python version is python2.7 to upgrade it I deleted python form /usr/bin/ and rename python3.6 as python in the same directory.
afterward, my terminal is not working. its gets no response on opening it.
please help!!
gnome-terminal
gnome-terminal
asked Dec 2 at 20:19
the unknown
1
1
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
1
DO NOT renamepython3.6
aspython
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.
– user535733
Dec 2 at 20:33
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53
add a comment |
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
1
DO NOT renamepython3.6
aspython
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.
– user535733
Dec 2 at 20:33
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
1
1
DO NOT rename
python3.6
as python
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.– user535733
Dec 2 at 20:33
DO NOT rename
python3.6
as python
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.– user535733
Dec 2 at 20:33
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
The main lesson here is not to mess with system files unless you know exactly what you're doing. The directory /usr/bin is managed by the package manager, APT (as in apt-get
and apt
), so you will never need to manually make changes to it. You're not alone though. Lots of folks make changes to the system Python setup without realizing that most of the GUI depends on it.
Now, how can you fix this?
- Access a TTY. See What is a tty, and how do I access a tty?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
Put
python3.6
back, cause the system depends on it (via/usr/bin/python3
, which is a symlink topython3.6
)
sudo mv /usr/bin/python /usr/bin/python3.6
Either reinstall
python2.7
sudo apt-get install --reinstall python2.7-minimal
or remove it
sudo apt-get remove python2.7
- Either figure out another way to set Python 3 as the default (see How to make 'python' program command execute Python 3?), or learn to live with typing
python3
every time.
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',
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%2f1097978%2fterminal-not-working-after-deleting-python%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
up vote
0
down vote
The main lesson here is not to mess with system files unless you know exactly what you're doing. The directory /usr/bin is managed by the package manager, APT (as in apt-get
and apt
), so you will never need to manually make changes to it. You're not alone though. Lots of folks make changes to the system Python setup without realizing that most of the GUI depends on it.
Now, how can you fix this?
- Access a TTY. See What is a tty, and how do I access a tty?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
Put
python3.6
back, cause the system depends on it (via/usr/bin/python3
, which is a symlink topython3.6
)
sudo mv /usr/bin/python /usr/bin/python3.6
Either reinstall
python2.7
sudo apt-get install --reinstall python2.7-minimal
or remove it
sudo apt-get remove python2.7
- Either figure out another way to set Python 3 as the default (see How to make 'python' program command execute Python 3?), or learn to live with typing
python3
every time.
add a comment |
up vote
0
down vote
The main lesson here is not to mess with system files unless you know exactly what you're doing. The directory /usr/bin is managed by the package manager, APT (as in apt-get
and apt
), so you will never need to manually make changes to it. You're not alone though. Lots of folks make changes to the system Python setup without realizing that most of the GUI depends on it.
Now, how can you fix this?
- Access a TTY. See What is a tty, and how do I access a tty?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
Put
python3.6
back, cause the system depends on it (via/usr/bin/python3
, which is a symlink topython3.6
)
sudo mv /usr/bin/python /usr/bin/python3.6
Either reinstall
python2.7
sudo apt-get install --reinstall python2.7-minimal
or remove it
sudo apt-get remove python2.7
- Either figure out another way to set Python 3 as the default (see How to make 'python' program command execute Python 3?), or learn to live with typing
python3
every time.
add a comment |
up vote
0
down vote
up vote
0
down vote
The main lesson here is not to mess with system files unless you know exactly what you're doing. The directory /usr/bin is managed by the package manager, APT (as in apt-get
and apt
), so you will never need to manually make changes to it. You're not alone though. Lots of folks make changes to the system Python setup without realizing that most of the GUI depends on it.
Now, how can you fix this?
- Access a TTY. See What is a tty, and how do I access a tty?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
Put
python3.6
back, cause the system depends on it (via/usr/bin/python3
, which is a symlink topython3.6
)
sudo mv /usr/bin/python /usr/bin/python3.6
Either reinstall
python2.7
sudo apt-get install --reinstall python2.7-minimal
or remove it
sudo apt-get remove python2.7
- Either figure out another way to set Python 3 as the default (see How to make 'python' program command execute Python 3?), or learn to live with typing
python3
every time.
The main lesson here is not to mess with system files unless you know exactly what you're doing. The directory /usr/bin is managed by the package manager, APT (as in apt-get
and apt
), so you will never need to manually make changes to it. You're not alone though. Lots of folks make changes to the system Python setup without realizing that most of the GUI depends on it.
Now, how can you fix this?
- Access a TTY. See What is a tty, and how do I access a tty?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
- If that doesn't work, boot into recovery mode. See How do I boot into recovery mode?
Put
python3.6
back, cause the system depends on it (via/usr/bin/python3
, which is a symlink topython3.6
)
sudo mv /usr/bin/python /usr/bin/python3.6
Either reinstall
python2.7
sudo apt-get install --reinstall python2.7-minimal
or remove it
sudo apt-get remove python2.7
- Either figure out another way to set Python 3 as the default (see How to make 'python' program command execute Python 3?), or learn to live with typing
python3
every time.
edited Dec 4 at 1:44
answered Dec 4 at 1:39
wjandrea
8,06142258
8,06142258
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1097978%2fterminal-not-working-after-deleting-python%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
Welcome to Ask Ubuntu! Which version of Ubuntu are you using? How did you delete /usr/bin/python and how did you rename /usr/bin/python3.6 as /usr/bin/python?
– wjandrea
Dec 2 at 20:31
1
DO NOT rename
python3.6
aspython
. Doing so will break your system quite horribly. Depending upon the version of Ubuntu you are using, it might be recoverable, it might not.– user535733
Dec 2 at 20:33
ubuntu version-18.10, I deleted by going in the desired directory and simply by using the command rm command and rename it by mv python3.6 python
– the unknown
Dec 3 at 18:53