apt-get install is not working in WSLHow to fix broken synaptic updates: “Package is in a very bad...

Alien invasion to probe us, why?

Why do neural networks need so many training examples to perform?

What sets the resolution of an analog resistive sensor?

Can a Spectator be a bodyguard? So, can its treasure/item to guard be a person/person's item?

What does it mean for a caliber to be flat shooting?

Move fast ...... Or you will lose

What's a good word to describe a public place that looks like it wouldn't be rough?

Citing paywalled articles accessed via illegal web sharing

Why is working on the same position for more than 15 years not a red flag?

How would an AI self awareness kill switch work?

How does Leonard in "Memento" remember reading and writing?

Eww, those bytes are gross

Why do cars have plastic shrouds over the engine?

Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?

A curious equality of integrals involving the prime counting function?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

What is the difference between rolling more dice versus fewer dice?

Gear reduction on large turbofans

Can we harness gravitational potential energy?

Does every functor from Set to Set preserve products?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

Cat is tipping over bed-side lamps during the night

Why am I able to open Wireshark in macOS without root privileges?

Why avoid shared user accounts?



apt-get install is not working in WSL


How to fix broken synaptic updates: “Package is in a very bad inconsistent state”Unable to install gnome-lokkit Installing Java 6 on Ubuntu 10.04 fails on missing Java 6 JRE packageCan't install any software anymore on ubuntuNot able to install any software via apt-get installWhy I can not upgrade to new git version in ubuntu 13.04Installing grub and xorriso on Ubuntu on WindowsUbuntu 16.04 can't run “sudo apt upgrade”can someone explain me what unmet mean in reference to dependencies in ubuntu 18.04?How to read/view mac HFS+ files form 18.04.1? hfsprogs does not exist?













0















Windows 10 Ubuntu bash failing to install packages. Whenever I try install new package with below command, getting same error.



root@VASI-HOME-PC:/mnt/c/Users/vadap# apt-get install atom
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package atom


This is not just with atom pacakge but i tried installing other packages like pip as well and received same error.










share|improve this question




















  • 1





    The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

    – Ramhound
    Sep 19 '18 at 19:25













  • @Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

    – Devoloper250
    Sep 20 '18 at 15:59
















0















Windows 10 Ubuntu bash failing to install packages. Whenever I try install new package with below command, getting same error.



root@VASI-HOME-PC:/mnt/c/Users/vadap# apt-get install atom
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package atom


This is not just with atom pacakge but i tried installing other packages like pip as well and received same error.










share|improve this question




















  • 1





    The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

    – Ramhound
    Sep 19 '18 at 19:25













  • @Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

    – Devoloper250
    Sep 20 '18 at 15:59














0












0








0








Windows 10 Ubuntu bash failing to install packages. Whenever I try install new package with below command, getting same error.



root@VASI-HOME-PC:/mnt/c/Users/vadap# apt-get install atom
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package atom


This is not just with atom pacakge but i tried installing other packages like pip as well and received same error.










share|improve this question
















Windows 10 Ubuntu bash failing to install packages. Whenever I try install new package with below command, getting same error.



root@VASI-HOME-PC:/mnt/c/Users/vadap# apt-get install atom
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package atom


This is not just with atom pacakge but i tried installing other packages like pip as well and received same error.







ubuntu bash windows-subsystem-for-linux apt ubuntu-18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 20 '18 at 18:36







Devoloper250

















asked Sep 19 '18 at 17:50









Devoloper250Devoloper250

113118




113118








  • 1





    The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

    – Ramhound
    Sep 19 '18 at 19:25













  • @Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

    – Devoloper250
    Sep 20 '18 at 15:59














  • 1





    The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

    – Ramhound
    Sep 19 '18 at 19:25













  • @Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

    – Devoloper250
    Sep 20 '18 at 15:59








1




1





The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

– Ramhound
Sep 19 '18 at 19:25







The error message you received, indicates Atom is required, which means the package you are trying to install has a GUI. That isn't going to be supported by WSl out of the box. In other words, you are not going to be able to install any package, that requires Atom.

– Ramhound
Sep 19 '18 at 19:25















@Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

– Devoloper250
Sep 20 '18 at 15:59





@Ramhound I have tried to install pip and few other packages. I have received the same error. Does it mean all of them had GUI ?

– Devoloper250
Sep 20 '18 at 15:59










3 Answers
3






active

oldest

votes


















1














Executed below 2 commands and then I was able to install the packages.



sudo apt update



sudo apt install python3-pip



Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/






share|improve this answer


























  • This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

    – Ramhound
    Sep 20 '18 at 18:24











  • Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

    – Devoloper250
    Sep 20 '18 at 18:37



















0














The error you're getting is because "atom" isn't part of the default packages, but WSL does not support graphical applications like Atom so it would never work anyway.



I would recommend installing it for Windows which is available from their website atom.io.



To make sure a package is actually in the package system you can use apt search <whatever> or for a simpler output apt-cache search <whatever>.



NOTE: Do not do the following, but for completeness sake I'll add how to actually install it:



You need to add the atom repository with the following command: sudo add-apt-repository ppa:webupd8team/atom



After that you can install it by first updating the search cache with apt-get update and then installing the package with apt-get install atom.






share|improve this answer

































    0














    System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.



    I ran this command:



    sudo apt-get install dos2unix


    I had this error:



    E: Unable to locate package dos2unix


    I then ran:



    sudo apt-get update


    and then:



    sudo apt-get install dos2unix


    and it installed properly.






    share|improve this answer








    New contributor




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




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      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%2fsuperuser.com%2fquestions%2f1359633%2fapt-get-install-is-not-working-in-wsl%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Executed below 2 commands and then I was able to install the packages.



      sudo apt update



      sudo apt install python3-pip



      Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/






      share|improve this answer


























      • This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

        – Ramhound
        Sep 20 '18 at 18:24











      • Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

        – Devoloper250
        Sep 20 '18 at 18:37
















      1














      Executed below 2 commands and then I was able to install the packages.



      sudo apt update



      sudo apt install python3-pip



      Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/






      share|improve this answer


























      • This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

        – Ramhound
        Sep 20 '18 at 18:24











      • Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

        – Devoloper250
        Sep 20 '18 at 18:37














      1












      1








      1







      Executed below 2 commands and then I was able to install the packages.



      sudo apt update



      sudo apt install python3-pip



      Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/






      share|improve this answer















      Executed below 2 commands and then I was able to install the packages.



      sudo apt update



      sudo apt install python3-pip



      Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 20 '18 at 18:35

























      answered Sep 20 '18 at 17:56









      Devoloper250Devoloper250

      113118




      113118













      • This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

        – Ramhound
        Sep 20 '18 at 18:24











      • Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

        – Devoloper250
        Sep 20 '18 at 18:37



















      • This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

        – Ramhound
        Sep 20 '18 at 18:24











      • Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

        – Devoloper250
        Sep 20 '18 at 18:37

















      This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

      – Ramhound
      Sep 20 '18 at 18:24





      This answer is unlikely to be well recieved, unless you provide the relevant information from the link, like what you actually did in the body of the answer.

      – Ramhound
      Sep 20 '18 at 18:24













      Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

      – Devoloper250
      Sep 20 '18 at 18:37





      Thank you @Ramhound . I have updated the steps executed and later I was able to install the packages like pip.

      – Devoloper250
      Sep 20 '18 at 18:37













      0














      The error you're getting is because "atom" isn't part of the default packages, but WSL does not support graphical applications like Atom so it would never work anyway.



      I would recommend installing it for Windows which is available from their website atom.io.



      To make sure a package is actually in the package system you can use apt search <whatever> or for a simpler output apt-cache search <whatever>.



      NOTE: Do not do the following, but for completeness sake I'll add how to actually install it:



      You need to add the atom repository with the following command: sudo add-apt-repository ppa:webupd8team/atom



      After that you can install it by first updating the search cache with apt-get update and then installing the package with apt-get install atom.






      share|improve this answer






























        0














        The error you're getting is because "atom" isn't part of the default packages, but WSL does not support graphical applications like Atom so it would never work anyway.



        I would recommend installing it for Windows which is available from their website atom.io.



        To make sure a package is actually in the package system you can use apt search <whatever> or for a simpler output apt-cache search <whatever>.



        NOTE: Do not do the following, but for completeness sake I'll add how to actually install it:



        You need to add the atom repository with the following command: sudo add-apt-repository ppa:webupd8team/atom



        After that you can install it by first updating the search cache with apt-get update and then installing the package with apt-get install atom.






        share|improve this answer




























          0












          0








          0







          The error you're getting is because "atom" isn't part of the default packages, but WSL does not support graphical applications like Atom so it would never work anyway.



          I would recommend installing it for Windows which is available from their website atom.io.



          To make sure a package is actually in the package system you can use apt search <whatever> or for a simpler output apt-cache search <whatever>.



          NOTE: Do not do the following, but for completeness sake I'll add how to actually install it:



          You need to add the atom repository with the following command: sudo add-apt-repository ppa:webupd8team/atom



          After that you can install it by first updating the search cache with apt-get update and then installing the package with apt-get install atom.






          share|improve this answer















          The error you're getting is because "atom" isn't part of the default packages, but WSL does not support graphical applications like Atom so it would never work anyway.



          I would recommend installing it for Windows which is available from their website atom.io.



          To make sure a package is actually in the package system you can use apt search <whatever> or for a simpler output apt-cache search <whatever>.



          NOTE: Do not do the following, but for completeness sake I'll add how to actually install it:



          You need to add the atom repository with the following command: sudo add-apt-repository ppa:webupd8team/atom



          After that you can install it by first updating the search cache with apt-get update and then installing the package with apt-get install atom.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 20 '18 at 9:37

























          answered Sep 20 '18 at 9:27









          Mikael KjærMikael Kjær

          1,200313




          1,200313























              0














              System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.



              I ran this command:



              sudo apt-get install dos2unix


              I had this error:



              E: Unable to locate package dos2unix


              I then ran:



              sudo apt-get update


              and then:



              sudo apt-get install dos2unix


              and it installed properly.






              share|improve this answer








              New contributor




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

























                0














                System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.



                I ran this command:



                sudo apt-get install dos2unix


                I had this error:



                E: Unable to locate package dos2unix


                I then ran:



                sudo apt-get update


                and then:



                sudo apt-get install dos2unix


                and it installed properly.






                share|improve this answer








                New contributor




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























                  0












                  0








                  0







                  System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.



                  I ran this command:



                  sudo apt-get install dos2unix


                  I had this error:



                  E: Unable to locate package dos2unix


                  I then ran:



                  sudo apt-get update


                  and then:



                  sudo apt-get install dos2unix


                  and it installed properly.






                  share|improve this answer








                  New contributor




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










                  System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.



                  I ran this command:



                  sudo apt-get install dos2unix


                  I had this error:



                  E: Unable to locate package dos2unix


                  I then ran:



                  sudo apt-get update


                  and then:



                  sudo apt-get install dos2unix


                  and it installed properly.







                  share|improve this answer








                  New contributor




                  ProtoHumanCam 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 answer



                  share|improve this answer






                  New contributor




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









                  answered 10 mins ago









                  ProtoHumanCamProtoHumanCam

                  11




                  11




                  New contributor




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





                  New contributor





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






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






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • 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%2fsuperuser.com%2fquestions%2f1359633%2fapt-get-install-is-not-working-in-wsl%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

                      Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                      VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                      Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...