Accidently deleted /usr/lib/python3.6












0















And then tried to uninstall python3.6 by:



sudo apt-get remove --purge python3.6


That succeded. And now I want to reinstall python3.6 by:



sudo apt-get install python3.6


But that threw this error:



root@ubuntuhost229:/usr: sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.6-venv python3.6-doc
The following NEW packages will be installed:
python3.6
0 upgraded, 1 newly installed, 0 to remove and 234 not upgraded.
Need to get 0 B/244 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Selecting previously unselected package python3.6.
(Reading database ... 193293 files and directories currently installed.)
Preparing to unpack .../python3.6_3.6.8-1+trusty1_amd64.deb ...
Unpacking python3.6 (3.6.8-1+trusty1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up python3.6 (3.6.8-1+trusty1) ...
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fecedf18740 (most recent call first):
Aborted (core dumped)
dpkg: error processing package python3.6 (--configure):
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
python3.6
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there any way to solve this?










share|improve this question







New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Does this help? Broken python dependencies after trying to re-install

    – dessert
    Mar 12 at 8:37











  • This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

    – Kulfy
    Mar 12 at 8:43











  • Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

    – user535733
    Mar 12 at 12:02


















0















And then tried to uninstall python3.6 by:



sudo apt-get remove --purge python3.6


That succeded. And now I want to reinstall python3.6 by:



sudo apt-get install python3.6


But that threw this error:



root@ubuntuhost229:/usr: sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.6-venv python3.6-doc
The following NEW packages will be installed:
python3.6
0 upgraded, 1 newly installed, 0 to remove and 234 not upgraded.
Need to get 0 B/244 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Selecting previously unselected package python3.6.
(Reading database ... 193293 files and directories currently installed.)
Preparing to unpack .../python3.6_3.6.8-1+trusty1_amd64.deb ...
Unpacking python3.6 (3.6.8-1+trusty1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up python3.6 (3.6.8-1+trusty1) ...
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fecedf18740 (most recent call first):
Aborted (core dumped)
dpkg: error processing package python3.6 (--configure):
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
python3.6
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there any way to solve this?










share|improve this question







New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Does this help? Broken python dependencies after trying to re-install

    – dessert
    Mar 12 at 8:37











  • This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

    – Kulfy
    Mar 12 at 8:43











  • Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

    – user535733
    Mar 12 at 12:02
















0












0








0








And then tried to uninstall python3.6 by:



sudo apt-get remove --purge python3.6


That succeded. And now I want to reinstall python3.6 by:



sudo apt-get install python3.6


But that threw this error:



root@ubuntuhost229:/usr: sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.6-venv python3.6-doc
The following NEW packages will be installed:
python3.6
0 upgraded, 1 newly installed, 0 to remove and 234 not upgraded.
Need to get 0 B/244 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Selecting previously unselected package python3.6.
(Reading database ... 193293 files and directories currently installed.)
Preparing to unpack .../python3.6_3.6.8-1+trusty1_amd64.deb ...
Unpacking python3.6 (3.6.8-1+trusty1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up python3.6 (3.6.8-1+trusty1) ...
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fecedf18740 (most recent call first):
Aborted (core dumped)
dpkg: error processing package python3.6 (--configure):
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
python3.6
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there any way to solve this?










share|improve this question







New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












And then tried to uninstall python3.6 by:



sudo apt-get remove --purge python3.6


That succeded. And now I want to reinstall python3.6 by:



sudo apt-get install python3.6


But that threw this error:



root@ubuntuhost229:/usr: sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.6-venv python3.6-doc
The following NEW packages will be installed:
python3.6
0 upgraded, 1 newly installed, 0 to remove and 234 not upgraded.
Need to get 0 B/244 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Selecting previously unselected package python3.6.
(Reading database ... 193293 files and directories currently installed.)
Preparing to unpack .../python3.6_3.6.8-1+trusty1_amd64.deb ...
Unpacking python3.6 (3.6.8-1+trusty1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up python3.6 (3.6.8-1+trusty1) ...
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fecedf18740 (most recent call first):
Aborted (core dumped)
dpkg: error processing package python3.6 (--configure):
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
python3.6
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there any way to solve this?







python python3






share|improve this question







New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 12 at 8:34









Ganesh BiradarGanesh Biradar

1




1




New contributor




Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ganesh Biradar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Does this help? Broken python dependencies after trying to re-install

    – dessert
    Mar 12 at 8:37











  • This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

    – Kulfy
    Mar 12 at 8:43











  • Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

    – user535733
    Mar 12 at 12:02





















  • Does this help? Broken python dependencies after trying to re-install

    – dessert
    Mar 12 at 8:37











  • This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

    – Kulfy
    Mar 12 at 8:43











  • Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

    – user535733
    Mar 12 at 12:02



















Does this help? Broken python dependencies after trying to re-install

– dessert
Mar 12 at 8:37





Does this help? Broken python dependencies after trying to re-install

– dessert
Mar 12 at 8:37













This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

– Kulfy
Mar 12 at 8:43





This might help: Python broke somehow “Could not find platform independent libraries <prefix>”

– Kulfy
Mar 12 at 8:43













Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

– user535733
Mar 12 at 12:02







Version 3.6.8-1+trusty1 is not in the Ubuntu repositories - it's not an Ubuntu package. We don't know where you got it from, who made it, or what bizarre changes they may have made. Contact the source of that package for support.

– user535733
Mar 12 at 12:02












0






active

oldest

votes











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
});


}
});






Ganesh Biradar is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124974%2faccidently-deleted-usr-lib-python3-6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Ganesh Biradar is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Ganesh Biradar is a new contributor. Be nice, and check out our Code of Conduct.













Ganesh Biradar is a new contributor. Be nice, and check out our Code of Conduct.












Ganesh Biradar is a new contributor. Be nice, and check out our Code of Conduct.
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124974%2faccidently-deleted-usr-lib-python3-6%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b