sed: can't read /etc/dbus-1/session.conf: Input/output error












0















Following a guide on ZDNet here, I have been trying to get ubuntu desktop working on Windows 10. though one line of code has been giving me trouble.



    sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


was returning "can't read /etc/dbus-1/session.conf file or directory not found.



So I found a "/etc/dbus-1/session.conf" file online and added it. Restarted the bash and it found it, but this time:



sed: can't read /etc/dbus-1/session.conf: Input/output error



is what i get.



how do i fix this?










share|improve this question





























    0















    Following a guide on ZDNet here, I have been trying to get ubuntu desktop working on Windows 10. though one line of code has been giving me trouble.



        sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


    was returning "can't read /etc/dbus-1/session.conf file or directory not found.



    So I found a "/etc/dbus-1/session.conf" file online and added it. Restarted the bash and it found it, but this time:



    sed: can't read /etc/dbus-1/session.conf: Input/output error



    is what i get.



    how do i fix this?










    share|improve this question



























      0












      0








      0








      Following a guide on ZDNet here, I have been trying to get ubuntu desktop working on Windows 10. though one line of code has been giving me trouble.



          sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


      was returning "can't read /etc/dbus-1/session.conf file or directory not found.



      So I found a "/etc/dbus-1/session.conf" file online and added it. Restarted the bash and it found it, but this time:



      sed: can't read /etc/dbus-1/session.conf: Input/output error



      is what i get.



      how do i fix this?










      share|improve this question
















      Following a guide on ZDNet here, I have been trying to get ubuntu desktop working on Windows 10. though one line of code has been giving me trouble.



          sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


      was returning "can't read /etc/dbus-1/session.conf file or directory not found.



      So I found a "/etc/dbus-1/session.conf" file online and added it. Restarted the bash and it found it, but this time:



      sed: can't read /etc/dbus-1/session.conf: Input/output error



      is what i get.



      how do i fix this?







      linux ubuntu bash sed windows-subsystem-for-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 14 '17 at 4:50









      bwDraco

      36.8k37137177




      36.8k37137177










      asked May 14 '17 at 4:39









      Daniel StewartDaniel Stewart

      611




      611






















          1 Answer
          1






          active

          oldest

          votes


















          0














          So after some digging. It dawned on me.



          sudo touch session.conf
          sudo vi session.conf


          (paste in the conf file text I found here and save



              sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


          And it worked! Now I get to try to figure out why i am seeing
          " Error: Error creating directory "/home/username/.cache/compizconfig-1" "






          share|improve this answer
























          • Did you actually solve the problem?

            – Kokesh
            Jul 13 '17 at 14:46











          • I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

            – Daniel Stewart
            Jul 14 '17 at 17:40













          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%2f1208984%2fsed-cant-read-etc-dbus-1-session-conf-input-output-error%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









          0














          So after some digging. It dawned on me.



          sudo touch session.conf
          sudo vi session.conf


          (paste in the conf file text I found here and save



              sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


          And it worked! Now I get to try to figure out why i am seeing
          " Error: Error creating directory "/home/username/.cache/compizconfig-1" "






          share|improve this answer
























          • Did you actually solve the problem?

            – Kokesh
            Jul 13 '17 at 14:46











          • I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

            – Daniel Stewart
            Jul 14 '17 at 17:40


















          0














          So after some digging. It dawned on me.



          sudo touch session.conf
          sudo vi session.conf


          (paste in the conf file text I found here and save



              sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


          And it worked! Now I get to try to figure out why i am seeing
          " Error: Error creating directory "/home/username/.cache/compizconfig-1" "






          share|improve this answer
























          • Did you actually solve the problem?

            – Kokesh
            Jul 13 '17 at 14:46











          • I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

            – Daniel Stewart
            Jul 14 '17 at 17:40
















          0












          0








          0







          So after some digging. It dawned on me.



          sudo touch session.conf
          sudo vi session.conf


          (paste in the conf file text I found here and save



              sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


          And it worked! Now I get to try to figure out why i am seeing
          " Error: Error creating directory "/home/username/.cache/compizconfig-1" "






          share|improve this answer













          So after some digging. It dawned on me.



          sudo touch session.conf
          sudo vi session.conf


          (paste in the conf file text I found here and save



              sudo sed -i 's/<listen>.*</listen>/<listen>tcp:host=localhost,port=0</listen>/' /etc/dbus-1/session.conf


          And it worked! Now I get to try to figure out why i am seeing
          " Error: Error creating directory "/home/username/.cache/compizconfig-1" "







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 14 '17 at 6:06









          Daniel StewartDaniel Stewart

          611




          611













          • Did you actually solve the problem?

            – Kokesh
            Jul 13 '17 at 14:46











          • I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

            – Daniel Stewart
            Jul 14 '17 at 17:40





















          • Did you actually solve the problem?

            – Kokesh
            Jul 13 '17 at 14:46











          • I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

            – Daniel Stewart
            Jul 14 '17 at 17:40



















          Did you actually solve the problem?

          – Kokesh
          Jul 13 '17 at 14:46





          Did you actually solve the problem?

          – Kokesh
          Jul 13 '17 at 14:46













          I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

          – Daniel Stewart
          Jul 14 '17 at 17:40







          I solved the input/output error, (The issue was likely that I downloaded the file in a windows format and tried reading it with a Linux system. Only thing I could think of.) But the compizconfig issue is still causing problems I believe. I can open the UI settings. But when I try to launch the desktop, I get stuck at a black screen.

          – Daniel Stewart
          Jul 14 '17 at 17:40




















          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%2f1208984%2fsed-cant-read-etc-dbus-1-session-conf-input-output-error%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

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix