Can't install python3 on Ubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run



sudo apt install python3-minimal


I keep getting these results:



ashoms@ashoms:~$ sudo apt install python3-minimal
[sudo] password for ashoms:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-minimal is already the newest version (3.6.5-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/53.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on policykit-1; however:
Package policykit-1 is not installed.

dpkg: error processing package update-manager (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
ubuntu-release-upgrader-gtk depends on update-manager; however:
Package update-manager is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-manager
ubuntu-release-upgrader-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question





















  • This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
    – Gert van den Berg
    Jul 20 at 10:45










  • There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
    – Rui F Ribeiro
    Jul 20 at 10:46










  • Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
    – Ashom Steve
    Jul 20 at 10:48










  • If a new server, I would reinstall it. You are missing essential packages for system and package administration.
    – Rui F Ribeiro
    Jul 20 at 10:49







  • 1




    Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
    – guiverc
    Jul 20 at 11:33
















up vote
0
down vote

favorite












I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run



sudo apt install python3-minimal


I keep getting these results:



ashoms@ashoms:~$ sudo apt install python3-minimal
[sudo] password for ashoms:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-minimal is already the newest version (3.6.5-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/53.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on policykit-1; however:
Package policykit-1 is not installed.

dpkg: error processing package update-manager (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
ubuntu-release-upgrader-gtk depends on update-manager; however:
Package update-manager is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-manager
ubuntu-release-upgrader-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question





















  • This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
    – Gert van den Berg
    Jul 20 at 10:45










  • There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
    – Rui F Ribeiro
    Jul 20 at 10:46










  • Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
    – Ashom Steve
    Jul 20 at 10:48










  • If a new server, I would reinstall it. You are missing essential packages for system and package administration.
    – Rui F Ribeiro
    Jul 20 at 10:49







  • 1




    Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
    – guiverc
    Jul 20 at 11:33












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run



sudo apt install python3-minimal


I keep getting these results:



ashoms@ashoms:~$ sudo apt install python3-minimal
[sudo] password for ashoms:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-minimal is already the newest version (3.6.5-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/53.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on policykit-1; however:
Package policykit-1 is not installed.

dpkg: error processing package update-manager (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
ubuntu-release-upgrader-gtk depends on update-manager; however:
Package update-manager is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-manager
ubuntu-release-upgrader-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question













I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run



sudo apt install python3-minimal


I keep getting these results:



ashoms@ashoms:~$ sudo apt install python3-minimal
[sudo] password for ashoms:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-minimal is already the newest version (3.6.5-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/53.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on policykit-1; however:
Package policykit-1 is not installed.

dpkg: error processing package update-manager (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
ubuntu-release-upgrader-gtk depends on update-manager; however:
Package update-manager is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-manager
ubuntu-release-upgrader-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)








share|improve this question












share|improve this question




share|improve this question








edited Jul 20 at 10:49









Jeff Schaller

30.8k846104




30.8k846104









asked Jul 20 at 10:33









Ashom Steve

11




11











  • This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
    – Gert van den Berg
    Jul 20 at 10:45










  • There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
    – Rui F Ribeiro
    Jul 20 at 10:46










  • Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
    – Ashom Steve
    Jul 20 at 10:48










  • If a new server, I would reinstall it. You are missing essential packages for system and package administration.
    – Rui F Ribeiro
    Jul 20 at 10:49







  • 1




    Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
    – guiverc
    Jul 20 at 11:33
















  • This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
    – Gert van den Berg
    Jul 20 at 10:45










  • There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
    – Rui F Ribeiro
    Jul 20 at 10:46










  • Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
    – Ashom Steve
    Jul 20 at 10:48










  • If a new server, I would reinstall it. You are missing essential packages for system and package administration.
    – Rui F Ribeiro
    Jul 20 at 10:49







  • 1




    Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
    – guiverc
    Jul 20 at 11:33















This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
– Gert van den Berg
Jul 20 at 10:45




This seems like there were issues during the install.... apt tells you that python is already installed, but it then tries to finish up outstanding tasks (possibly from the install)
– Gert van den Berg
Jul 20 at 10:45












There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
– Rui F Ribeiro
Jul 20 at 10:46




There are severe packages inconsistencies and for installing python3 in debian based systems, you install the package python3 or similar name. If using kali, use something else.
– Rui F Ribeiro
Jul 20 at 10:46












Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
– Ashom Steve
Jul 20 at 10:48




Thanks a lot for responding, it's been driving me crazy, cant get any work done. But how can I solve the issue cause I have a lot to do and they all keep coming up with the same error.
– Ashom Steve
Jul 20 at 10:48












If a new server, I would reinstall it. You are missing essential packages for system and package administration.
– Rui F Ribeiro
Jul 20 at 10:49





If a new server, I would reinstall it. You are missing essential packages for system and package administration.
– Rui F Ribeiro
Jul 20 at 10:49





1




1




Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
– guiverc
Jul 20 at 11:33




Have you tried sudo apt -f install (--fix-broken) Ubuntu comes with both python 2.7 (default python) and Python 3.6 (python3) installed
– guiverc
Jul 20 at 11:33










1 Answer
1






active

oldest

votes

















up vote
0
down vote













First try



sudo apt -f install


Then again try to install it. If the problem continues, then try these codes



  1. mkdir ~/junk && cd ~/junk

  2. apt-get download python3.5-minimal

  3. dpkg-deb -X $(ls pyth*) .

  4. sudo cp -aiv usr/bin/python3.5 /usr/bin

  5. sudo dpkg-reconfigure python3.5-minimal

Use this link for to make it more clear.






share|improve this answer





















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457411%2fcant-install-python3-on-ubuntu-18-04%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    First try



    sudo apt -f install


    Then again try to install it. If the problem continues, then try these codes



    1. mkdir ~/junk && cd ~/junk

    2. apt-get download python3.5-minimal

    3. dpkg-deb -X $(ls pyth*) .

    4. sudo cp -aiv usr/bin/python3.5 /usr/bin

    5. sudo dpkg-reconfigure python3.5-minimal

    Use this link for to make it more clear.






    share|improve this answer

























      up vote
      0
      down vote













      First try



      sudo apt -f install


      Then again try to install it. If the problem continues, then try these codes



      1. mkdir ~/junk && cd ~/junk

      2. apt-get download python3.5-minimal

      3. dpkg-deb -X $(ls pyth*) .

      4. sudo cp -aiv usr/bin/python3.5 /usr/bin

      5. sudo dpkg-reconfigure python3.5-minimal

      Use this link for to make it more clear.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        First try



        sudo apt -f install


        Then again try to install it. If the problem continues, then try these codes



        1. mkdir ~/junk && cd ~/junk

        2. apt-get download python3.5-minimal

        3. dpkg-deb -X $(ls pyth*) .

        4. sudo cp -aiv usr/bin/python3.5 /usr/bin

        5. sudo dpkg-reconfigure python3.5-minimal

        Use this link for to make it more clear.






        share|improve this answer













        First try



        sudo apt -f install


        Then again try to install it. If the problem continues, then try these codes



        1. mkdir ~/junk && cd ~/junk

        2. apt-get download python3.5-minimal

        3. dpkg-deb -X $(ls pyth*) .

        4. sudo cp -aiv usr/bin/python3.5 /usr/bin

        5. sudo dpkg-reconfigure python3.5-minimal

        Use this link for to make it more clear.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jul 20 at 12:56









        Ujjwal Singh

        6112




        6112






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457411%2fcant-install-python3-on-ubuntu-18-04%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)