Can't install nvidia driver 340 ( GT 230M )












1















I am trying to install nvidia drivers on my laptop which has GT 230 M GPU.



My laptop is running Ubuntu 18.04



It sounds that there is conflict between nvidia driver and some other package installed



I am getting this error



Preparing to unpack .../nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have also tried this command and it did not work



sudo apt-get install -f









share|improve this question



























    1















    I am trying to install nvidia drivers on my laptop which has GT 230 M GPU.



    My laptop is running Ubuntu 18.04



    It sounds that there is conflict between nvidia driver and some other package installed



    I am getting this error



    Preparing to unpack .../nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb ...
    Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
    dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
    different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
    dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb (--unpack):
    new nvidia-340 package pre-installation script subprocess returned error exit status 2
    Errors were encountered while processing:
    /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I have also tried this command and it did not work



    sudo apt-get install -f









    share|improve this question

























      1












      1








      1








      I am trying to install nvidia drivers on my laptop which has GT 230 M GPU.



      My laptop is running Ubuntu 18.04



      It sounds that there is conflict between nvidia driver and some other package installed



      I am getting this error



      Preparing to unpack .../nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb ...
      Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
      dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
      different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
      dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb (--unpack):
      new nvidia-340 package pre-installation script subprocess returned error exit status 2
      Errors were encountered while processing:
      /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I have also tried this command and it did not work



      sudo apt-get install -f









      share|improve this question














      I am trying to install nvidia drivers on my laptop which has GT 230 M GPU.



      My laptop is running Ubuntu 18.04



      It sounds that there is conflict between nvidia driver and some other package installed



      I am getting this error



      Preparing to unpack .../nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb ...
      Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
      dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
      different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
      dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb (--unpack):
      new nvidia-340 package pre-installation script subprocess returned error exit status 2
      Errors were encountered while processing:
      /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I have also tried this command and it did not work



      sudo apt-get install -f






      drivers apt nvidia






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 7 hours ago









      Mohamad AlJasemMohamad AlJasem

      112




      112






















          0






          active

          oldest

          votes











          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%2f1118342%2fcant-install-nvidia-driver-340-gt-230m%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1118342%2fcant-install-nvidia-driver-340-gt-230m%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

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b