Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?












9














I installed Tor this way:



sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser


I run today in Terminal this : tor and I got this error message:



Oct 04 19:24:04.461 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Oct 04 19:24:04.461 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Oct 04 19:24:04.517 [notice] Read configuration file "/etc/tor/torrc".
Oct 04 19:24:04.574 [notice] Opening Socks listener on 127.0.0.1:9050
Oct 04 19:24:04.574 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Oct 04 19:24:04.575 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Oct 04 19:24:04.575 [err] Reading config failed--see warnings above.


How to fix this?










share|improve this question



























    9














    I installed Tor this way:



    sudo add-apt-repository ppa:webupd8team/tor-browser
    sudo apt-get update
    sudo apt-get install tor-browser


    I run today in Terminal this : tor and I got this error message:



    Oct 04 19:24:04.461 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
    Oct 04 19:24:04.461 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
    Oct 04 19:24:04.517 [notice] Read configuration file "/etc/tor/torrc".
    Oct 04 19:24:04.574 [notice] Opening Socks listener on 127.0.0.1:9050
    Oct 04 19:24:04.574 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
    Oct 04 19:24:04.575 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
    Oct 04 19:24:04.575 [err] Reading config failed--see warnings above.


    How to fix this?










    share|improve this question

























      9












      9








      9


      3





      I installed Tor this way:



      sudo add-apt-repository ppa:webupd8team/tor-browser
      sudo apt-get update
      sudo apt-get install tor-browser


      I run today in Terminal this : tor and I got this error message:



      Oct 04 19:24:04.461 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
      Oct 04 19:24:04.461 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
      Oct 04 19:24:04.517 [notice] Read configuration file "/etc/tor/torrc".
      Oct 04 19:24:04.574 [notice] Opening Socks listener on 127.0.0.1:9050
      Oct 04 19:24:04.574 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
      Oct 04 19:24:04.575 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
      Oct 04 19:24:04.575 [err] Reading config failed--see warnings above.


      How to fix this?










      share|improve this question













      I installed Tor this way:



      sudo add-apt-repository ppa:webupd8team/tor-browser
      sudo apt-get update
      sudo apt-get install tor-browser


      I run today in Terminal this : tor and I got this error message:



      Oct 04 19:24:04.461 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
      Oct 04 19:24:04.461 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
      Oct 04 19:24:04.517 [notice] Read configuration file "/etc/tor/torrc".
      Oct 04 19:24:04.574 [notice] Opening Socks listener on 127.0.0.1:9050
      Oct 04 19:24:04.574 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
      Oct 04 19:24:04.575 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
      Oct 04 19:24:04.575 [err] Reading config failed--see warnings above.


      How to fix this?







      16.04 tor






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 4 '16 at 16:33









      Billal Begueradj

      60541130




      60541130






















          4 Answers
          4






          active

          oldest

          votes


















          11














          netstat will tell you what's listening on that port. Open a terminal (press Ctrl+Alt+T), and run:



          sudo netstat -plnt | fgrep 9050


          It will tell you which program is using that port. For example, on my system, it shows:



          tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor


          At the end, it says that the program listening on that port is tor.






          share|improve this answer





















          • Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
            – Billal Begueradj
            Oct 8 '16 at 21:28






          • 3




            You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
            – Olathe
            Oct 8 '16 at 21:34





















          6














          What works for me:



          killall tor





          share|improve this answer































            1














            restart your device and run again. port will be realse.






            share|improve this answer








            New contributor




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


























              0














              @David Foerster's answer: killall tor did not work for me.

              I got the result tor: no process found.



              New solution: sudo killall tor






              share|improve this answer








              New contributor




              Koke Cacao 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: "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%2f833021%2fcould-not-bind-to-127-0-0-19050-address-already-in-use-is-tor-already-running%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                11














                netstat will tell you what's listening on that port. Open a terminal (press Ctrl+Alt+T), and run:



                sudo netstat -plnt | fgrep 9050


                It will tell you which program is using that port. For example, on my system, it shows:



                tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor


                At the end, it says that the program listening on that port is tor.






                share|improve this answer





















                • Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                  – Billal Begueradj
                  Oct 8 '16 at 21:28






                • 3




                  You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                  – Olathe
                  Oct 8 '16 at 21:34


















                11














                netstat will tell you what's listening on that port. Open a terminal (press Ctrl+Alt+T), and run:



                sudo netstat -plnt | fgrep 9050


                It will tell you which program is using that port. For example, on my system, it shows:



                tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor


                At the end, it says that the program listening on that port is tor.






                share|improve this answer





















                • Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                  – Billal Begueradj
                  Oct 8 '16 at 21:28






                • 3




                  You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                  – Olathe
                  Oct 8 '16 at 21:34
















                11












                11








                11






                netstat will tell you what's listening on that port. Open a terminal (press Ctrl+Alt+T), and run:



                sudo netstat -plnt | fgrep 9050


                It will tell you which program is using that port. For example, on my system, it shows:



                tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor


                At the end, it says that the program listening on that port is tor.






                share|improve this answer












                netstat will tell you what's listening on that port. Open a terminal (press Ctrl+Alt+T), and run:



                sudo netstat -plnt | fgrep 9050


                It will tell you which program is using that port. For example, on my system, it shows:



                tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor


                At the end, it says that the program listening on that port is tor.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 7 '16 at 18:43









                Olathe

                2,33211222




                2,33211222












                • Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                  – Billal Begueradj
                  Oct 8 '16 at 21:28






                • 3




                  You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                  – Olathe
                  Oct 8 '16 at 21:34




















                • Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                  – Billal Begueradj
                  Oct 8 '16 at 21:28






                • 3




                  You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                  – Olathe
                  Oct 8 '16 at 21:34


















                Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                – Billal Begueradj
                Oct 8 '16 at 21:28




                Thank you for the feedback. Yes, it says tor is using that port. But I am stuck there by getting the same error message
                – Billal Begueradj
                Oct 8 '16 at 21:28




                3




                3




                You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                – Olathe
                Oct 8 '16 at 21:34






                You may have installed both tor-browser and a second Tor package. Try sudo service tor stop, and see if Tor browser works after that.
                – Olathe
                Oct 8 '16 at 21:34















                6














                What works for me:



                killall tor





                share|improve this answer




























                  6














                  What works for me:



                  killall tor





                  share|improve this answer


























                    6












                    6








                    6






                    What works for me:



                    killall tor





                    share|improve this answer














                    What works for me:



                    killall tor






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 20 '17 at 9:23









                    David Foerster

                    27.8k1364109




                    27.8k1364109










                    answered Aug 20 '17 at 9:01









                    First Last

                    9726




                    9726























                        1














                        restart your device and run again. port will be realse.






                        share|improve this answer








                        New contributor




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























                          1














                          restart your device and run again. port will be realse.






                          share|improve this answer








                          New contributor




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





















                            1












                            1








                            1






                            restart your device and run again. port will be realse.






                            share|improve this answer








                            New contributor




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









                            restart your device and run again. port will be realse.







                            share|improve this answer








                            New contributor




                            magmag 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




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









                            answered Dec 28 at 4:27









                            magmag

                            111




                            111




                            New contributor




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





                            New contributor





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






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























                                0














                                @David Foerster's answer: killall tor did not work for me.

                                I got the result tor: no process found.



                                New solution: sudo killall tor






                                share|improve this answer








                                New contributor




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























                                  0














                                  @David Foerster's answer: killall tor did not work for me.

                                  I got the result tor: no process found.



                                  New solution: sudo killall tor






                                  share|improve this answer








                                  New contributor




                                  Koke Cacao 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






                                    @David Foerster's answer: killall tor did not work for me.

                                    I got the result tor: no process found.



                                    New solution: sudo killall tor






                                    share|improve this answer








                                    New contributor




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









                                    @David Foerster's answer: killall tor did not work for me.

                                    I got the result tor: no process found.



                                    New solution: sudo killall tor







                                    share|improve this answer








                                    New contributor




                                    Koke Cacao 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




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









                                    answered Dec 26 at 6:35









                                    Koke Cacao

                                    33




                                    33




                                    New contributor




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





                                    New contributor





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






                                    Koke Cacao 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 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.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f833021%2fcould-not-bind-to-127-0-0-19050-address-already-in-use-is-tor-already-running%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 did Captain America manage to do this?

                                        迪纳利

                                        南乌拉尔铁路局