python 3 shambles












0















First of all on my 18.04 LTS machine
I have Ubuntu update issues , several updates have been botched todays update too, nevertheless my updater says everything is up to date



Iḿ not sure if python is correctly installed / updated



1- How can I get a correct Python installed on my machine because I think other programs are missing parts of this environment and ceased working such as Sweethome 3D (by eteks)
2- where can i find the update logs of my last updates so that i can see what updates have not completed correctly
3- after locating the logs i will attempt to understand what has happened, i that is not possible who can send I the logs to tell me what has occurred and what needs to be repaired










share|improve this question


















  • 1





    Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

    – Jacob Vlijm
    Feb 9 at 15:49











  • Look at more /var/log/dpkg.log.

    – heynnema
    Feb 9 at 16:40











  • You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

    – Organic Marble
    Feb 9 at 17:17











  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

    – Derek Giroulle
    Feb 16 at 15:53













  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

    – Derek Giroulle
    Feb 16 at 16:00
















0















First of all on my 18.04 LTS machine
I have Ubuntu update issues , several updates have been botched todays update too, nevertheless my updater says everything is up to date



Iḿ not sure if python is correctly installed / updated



1- How can I get a correct Python installed on my machine because I think other programs are missing parts of this environment and ceased working such as Sweethome 3D (by eteks)
2- where can i find the update logs of my last updates so that i can see what updates have not completed correctly
3- after locating the logs i will attempt to understand what has happened, i that is not possible who can send I the logs to tell me what has occurred and what needs to be repaired










share|improve this question


















  • 1





    Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

    – Jacob Vlijm
    Feb 9 at 15:49











  • Look at more /var/log/dpkg.log.

    – heynnema
    Feb 9 at 16:40











  • You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

    – Organic Marble
    Feb 9 at 17:17











  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

    – Derek Giroulle
    Feb 16 at 15:53













  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

    – Derek Giroulle
    Feb 16 at 16:00














0












0








0








First of all on my 18.04 LTS machine
I have Ubuntu update issues , several updates have been botched todays update too, nevertheless my updater says everything is up to date



Iḿ not sure if python is correctly installed / updated



1- How can I get a correct Python installed on my machine because I think other programs are missing parts of this environment and ceased working such as Sweethome 3D (by eteks)
2- where can i find the update logs of my last updates so that i can see what updates have not completed correctly
3- after locating the logs i will attempt to understand what has happened, i that is not possible who can send I the logs to tell me what has occurred and what needs to be repaired










share|improve this question














First of all on my 18.04 LTS machine
I have Ubuntu update issues , several updates have been botched todays update too, nevertheless my updater says everything is up to date



Iḿ not sure if python is correctly installed / updated



1- How can I get a correct Python installed on my machine because I think other programs are missing parts of this environment and ceased working such as Sweethome 3D (by eteks)
2- where can i find the update logs of my last updates so that i can see what updates have not completed correctly
3- after locating the logs i will attempt to understand what has happened, i that is not possible who can send I the logs to tell me what has occurred and what needs to be repaired







apt updates python






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 9 at 14:54









Derek GiroulleDerek Giroulle

95




95








  • 1





    Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

    – Jacob Vlijm
    Feb 9 at 15:49











  • Look at more /var/log/dpkg.log.

    – heynnema
    Feb 9 at 16:40











  • You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

    – Organic Marble
    Feb 9 at 17:17











  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

    – Derek Giroulle
    Feb 16 at 15:53













  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

    – Derek Giroulle
    Feb 16 at 16:00














  • 1





    Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

    – Jacob Vlijm
    Feb 9 at 15:49











  • Look at more /var/log/dpkg.log.

    – heynnema
    Feb 9 at 16:40











  • You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

    – Organic Marble
    Feb 9 at 17:17











  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

    – Derek Giroulle
    Feb 16 at 15:53













  • The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

    – Derek Giroulle
    Feb 16 at 16:00








1




1





Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

– Jacob Vlijm
Feb 9 at 15:49





Might be more useful to start, what is not working well in your opinion, from terminal and post the output.

– Jacob Vlijm
Feb 9 at 15:49













Look at more /var/log/dpkg.log.

– heynnema
Feb 9 at 16:40





Look at more /var/log/dpkg.log.

– heynnema
Feb 9 at 16:40













You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

– Organic Marble
Feb 9 at 17:17





You can find your update logs here: /var/log/apt It is unlikely that you will find anyone to send your logs to who will analyze them. You can try returning here to ask more questions, or edit this question with specifics.

– Organic Marble
Feb 9 at 17:17













The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

– Derek Giroulle
Feb 16 at 15:53







The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1)

– Derek Giroulle
Feb 16 at 15:53















The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

– Derek Giroulle
Feb 16 at 16:00





The /var/log/apt/history.log lists for every update since feb1st that Error: Sub-process /usr/bin/dpkg returned an error code (1) The tem. log shows thart there were too many errors the first error is : E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')

– Derek Giroulle
Feb 16 at 16:00










1 Answer
1






active

oldest

votes


















1














Start by checking a few things:



which python


... should point to /usr/bin/python if it is installed properly. Next check that it defaults to the version you want:



python -V


As an added check, check that the python command is actually a soft link that points to the version you want and that there is also an associated python config file for that version:



ls -l /usr/bin/python*


If the version is NOT the one you want, delete the soft link:



sudo rm /usr/bin/python


... and relink it to the version you want - for example if you want version 3.6:



cd /usr/bin
sudo ln -s python3.6 python


Create soft links to config files if they are missing. Verify that all went well:



python -V


Note that you need to install pip for Python 2.7 and pip3 for newer Python versions:



sudo apt install pip pip3


It's ok to have both pip versions installed at the same time in case you need to go back and forth between Python versions - which you can do by changing the /usr/bin/python soft link as I described above.



One last note - Python3 will find modules you installed with pip3 but not with pip, and Python2.7 will find modules you installed with pip but not with pip3.






share|improve this answer


























  • Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

    – Derek Giroulle
    Feb 16 at 16:24













  • I can rem all directories except the python3.6

    – Derek Giroulle
    Feb 16 at 16:30











  • sorry its files not directories in /usr/bin/

    – Derek Giroulle
    Feb 16 at 16:33











  • On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

    – Derek Giroulle
    Feb 16 at 16:40











  • The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

    – Derek Giroulle
    Feb 16 at 18:24











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116944%2fpython-3-shambles%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









1














Start by checking a few things:



which python


... should point to /usr/bin/python if it is installed properly. Next check that it defaults to the version you want:



python -V


As an added check, check that the python command is actually a soft link that points to the version you want and that there is also an associated python config file for that version:



ls -l /usr/bin/python*


If the version is NOT the one you want, delete the soft link:



sudo rm /usr/bin/python


... and relink it to the version you want - for example if you want version 3.6:



cd /usr/bin
sudo ln -s python3.6 python


Create soft links to config files if they are missing. Verify that all went well:



python -V


Note that you need to install pip for Python 2.7 and pip3 for newer Python versions:



sudo apt install pip pip3


It's ok to have both pip versions installed at the same time in case you need to go back and forth between Python versions - which you can do by changing the /usr/bin/python soft link as I described above.



One last note - Python3 will find modules you installed with pip3 but not with pip, and Python2.7 will find modules you installed with pip but not with pip3.






share|improve this answer


























  • Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

    – Derek Giroulle
    Feb 16 at 16:24













  • I can rem all directories except the python3.6

    – Derek Giroulle
    Feb 16 at 16:30











  • sorry its files not directories in /usr/bin/

    – Derek Giroulle
    Feb 16 at 16:33











  • On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

    – Derek Giroulle
    Feb 16 at 16:40











  • The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

    – Derek Giroulle
    Feb 16 at 18:24
















1














Start by checking a few things:



which python


... should point to /usr/bin/python if it is installed properly. Next check that it defaults to the version you want:



python -V


As an added check, check that the python command is actually a soft link that points to the version you want and that there is also an associated python config file for that version:



ls -l /usr/bin/python*


If the version is NOT the one you want, delete the soft link:



sudo rm /usr/bin/python


... and relink it to the version you want - for example if you want version 3.6:



cd /usr/bin
sudo ln -s python3.6 python


Create soft links to config files if they are missing. Verify that all went well:



python -V


Note that you need to install pip for Python 2.7 and pip3 for newer Python versions:



sudo apt install pip pip3


It's ok to have both pip versions installed at the same time in case you need to go back and forth between Python versions - which you can do by changing the /usr/bin/python soft link as I described above.



One last note - Python3 will find modules you installed with pip3 but not with pip, and Python2.7 will find modules you installed with pip but not with pip3.






share|improve this answer


























  • Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

    – Derek Giroulle
    Feb 16 at 16:24













  • I can rem all directories except the python3.6

    – Derek Giroulle
    Feb 16 at 16:30











  • sorry its files not directories in /usr/bin/

    – Derek Giroulle
    Feb 16 at 16:33











  • On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

    – Derek Giroulle
    Feb 16 at 16:40











  • The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

    – Derek Giroulle
    Feb 16 at 18:24














1












1








1







Start by checking a few things:



which python


... should point to /usr/bin/python if it is installed properly. Next check that it defaults to the version you want:



python -V


As an added check, check that the python command is actually a soft link that points to the version you want and that there is also an associated python config file for that version:



ls -l /usr/bin/python*


If the version is NOT the one you want, delete the soft link:



sudo rm /usr/bin/python


... and relink it to the version you want - for example if you want version 3.6:



cd /usr/bin
sudo ln -s python3.6 python


Create soft links to config files if they are missing. Verify that all went well:



python -V


Note that you need to install pip for Python 2.7 and pip3 for newer Python versions:



sudo apt install pip pip3


It's ok to have both pip versions installed at the same time in case you need to go back and forth between Python versions - which you can do by changing the /usr/bin/python soft link as I described above.



One last note - Python3 will find modules you installed with pip3 but not with pip, and Python2.7 will find modules you installed with pip but not with pip3.






share|improve this answer















Start by checking a few things:



which python


... should point to /usr/bin/python if it is installed properly. Next check that it defaults to the version you want:



python -V


As an added check, check that the python command is actually a soft link that points to the version you want and that there is also an associated python config file for that version:



ls -l /usr/bin/python*


If the version is NOT the one you want, delete the soft link:



sudo rm /usr/bin/python


... and relink it to the version you want - for example if you want version 3.6:



cd /usr/bin
sudo ln -s python3.6 python


Create soft links to config files if they are missing. Verify that all went well:



python -V


Note that you need to install pip for Python 2.7 and pip3 for newer Python versions:



sudo apt install pip pip3


It's ok to have both pip versions installed at the same time in case you need to go back and forth between Python versions - which you can do by changing the /usr/bin/python soft link as I described above.



One last note - Python3 will find modules you installed with pip3 but not with pip, and Python2.7 will find modules you installed with pip but not with pip3.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 9 at 17:06

























answered Feb 9 at 17:00









Eric MintzEric Mintz

805412




805412













  • Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

    – Derek Giroulle
    Feb 16 at 16:24













  • I can rem all directories except the python3.6

    – Derek Giroulle
    Feb 16 at 16:30











  • sorry its files not directories in /usr/bin/

    – Derek Giroulle
    Feb 16 at 16:33











  • On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

    – Derek Giroulle
    Feb 16 at 16:40











  • The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

    – Derek Giroulle
    Feb 16 at 18:24



















  • Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

    – Derek Giroulle
    Feb 16 at 16:24













  • I can rem all directories except the python3.6

    – Derek Giroulle
    Feb 16 at 16:30











  • sorry its files not directories in /usr/bin/

    – Derek Giroulle
    Feb 16 at 16:33











  • On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

    – Derek Giroulle
    Feb 16 at 16:40











  • The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

    – Derek Giroulle
    Feb 16 at 18:24

















Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

– Derek Giroulle
Feb 16 at 16:24







Hell what a mess I dug up here, in /use/bin/ i have following directories * python * python2 * python2.7 ( which so be the active python version on my machine) * python2.7-config * python2-config * python2-futurize * python2-pasturize * python3 * python3.5 * python3.5m * python3.6 * python3.6-config * python3.6m * python3.6m-config * python3-config * python3m * python3m-config * python-config

– Derek Giroulle
Feb 16 at 16:24















I can rem all directories except the python3.6

– Derek Giroulle
Feb 16 at 16:30





I can rem all directories except the python3.6

– Derek Giroulle
Feb 16 at 16:30













sorry its files not directories in /usr/bin/

– Derek Giroulle
Feb 16 at 16:33





sorry its files not directories in /usr/bin/

– Derek Giroulle
Feb 16 at 16:33













On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

– Derek Giroulle
Feb 16 at 16:40





On the sudo apt install pip pip3 command Reading state information... Done E: Unable to locate package pip E: Unable to locate package pip3

– Derek Giroulle
Feb 16 at 16:40













The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

– Derek Giroulle
Feb 16 at 18:24





The apt purge hplip.data and apt purge hplip ditd the trick A lot of pending changes were execute

– Derek Giroulle
Feb 16 at 18:24


















draft saved

draft discarded




















































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%2f1116944%2fpython-3-shambles%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

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀