Nividia-396 installation blocked by libglx on 18.04











up vote
5
down vote

favorite
2












I try to install the driver package nvidia-396 on my laptop as it is required to run cuda.



When I try to do it through apt I get a kind of error I never encountered before :



trying to replace " /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0 ",which
belong to the package libglx-mesa0:amd64 18.0.0~rc5-1ubuntu1
errors have been encountered during the execution of :
/var/cuda-repo-9-2-local/./nvidia-396_396.26-0ubuntu1_amd64.deb


I've tried to remove the libglx-mesa0 package but it didn't change anything.



I run ubuntu 18.04. My GPU is a Nvidia Quadro K3100M.



Thank you very much for any help you could provide.










share|improve this question


























    up vote
    5
    down vote

    favorite
    2












    I try to install the driver package nvidia-396 on my laptop as it is required to run cuda.



    When I try to do it through apt I get a kind of error I never encountered before :



    trying to replace " /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0 ",which
    belong to the package libglx-mesa0:amd64 18.0.0~rc5-1ubuntu1
    errors have been encountered during the execution of :
    /var/cuda-repo-9-2-local/./nvidia-396_396.26-0ubuntu1_amd64.deb


    I've tried to remove the libglx-mesa0 package but it didn't change anything.



    I run ubuntu 18.04. My GPU is a Nvidia Quadro K3100M.



    Thank you very much for any help you could provide.










    share|improve this question
























      up vote
      5
      down vote

      favorite
      2









      up vote
      5
      down vote

      favorite
      2






      2





      I try to install the driver package nvidia-396 on my laptop as it is required to run cuda.



      When I try to do it through apt I get a kind of error I never encountered before :



      trying to replace " /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0 ",which
      belong to the package libglx-mesa0:amd64 18.0.0~rc5-1ubuntu1
      errors have been encountered during the execution of :
      /var/cuda-repo-9-2-local/./nvidia-396_396.26-0ubuntu1_amd64.deb


      I've tried to remove the libglx-mesa0 package but it didn't change anything.



      I run ubuntu 18.04. My GPU is a Nvidia Quadro K3100M.



      Thank you very much for any help you could provide.










      share|improve this question













      I try to install the driver package nvidia-396 on my laptop as it is required to run cuda.



      When I try to do it through apt I get a kind of error I never encountered before :



      trying to replace " /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0 ",which
      belong to the package libglx-mesa0:amd64 18.0.0~rc5-1ubuntu1
      errors have been encountered during the execution of :
      /var/cuda-repo-9-2-local/./nvidia-396_396.26-0ubuntu1_amd64.deb


      I've tried to remove the libglx-mesa0 package but it didn't change anything.



      I run ubuntu 18.04. My GPU is a Nvidia Quadro K3100M.



      Thank you very much for any help you could provide.







      drivers apt nvidia 18.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 19 at 6:56









      Thraxi

      284




      284






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          10
          down vote



          accepted










          This is bug in the package. Temporary solution is to force the installation by:



          dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-396_396.26-0ubuntu1_amd64.deb





          share|improve this answer

















          • 1




            If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
            – Gui Ambros
            May 28 at 4:02










          • Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
            – ipkpjersi
            Sep 19 at 16:10


















          up vote
          0
          down vote













          Ubuntu did recommend to me trying apt install --fix-broken to solve the issue I head with libglx-mesa0 being installed by nvidia-410.



          I couldn't figure which .deb is causing the issue exactly so I just passed Dpkg::Options::="--force-overwrite" to the suggested command:



          sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken





          share|improve this answer





















            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',
            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%2f1037982%2fnividia-396-installation-blocked-by-libglx-on-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            10
            down vote



            accepted










            This is bug in the package. Temporary solution is to force the installation by:



            dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-396_396.26-0ubuntu1_amd64.deb





            share|improve this answer

















            • 1




              If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
              – Gui Ambros
              May 28 at 4:02










            • Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
              – ipkpjersi
              Sep 19 at 16:10















            up vote
            10
            down vote



            accepted










            This is bug in the package. Temporary solution is to force the installation by:



            dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-396_396.26-0ubuntu1_amd64.deb





            share|improve this answer

















            • 1




              If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
              – Gui Ambros
              May 28 at 4:02










            • Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
              – ipkpjersi
              Sep 19 at 16:10













            up vote
            10
            down vote



            accepted







            up vote
            10
            down vote



            accepted






            This is bug in the package. Temporary solution is to force the installation by:



            dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-396_396.26-0ubuntu1_amd64.deb





            share|improve this answer












            This is bug in the package. Temporary solution is to force the installation by:



            dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-396_396.26-0ubuntu1_amd64.deb






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 21 at 8:34









            kubus

            11614




            11614








            • 1




              If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
              – Gui Ambros
              May 28 at 4:02










            • Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
              – ipkpjersi
              Sep 19 at 16:10














            • 1




              If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
              – Gui Ambros
              May 28 at 4:02










            • Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
              – ipkpjersi
              Sep 19 at 16:10








            1




            1




            If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
            – Gui Ambros
            May 28 at 4:02




            If you're installing directly from PPA, you can use apt install nvidia-396 -o Dpkg::Options::="--force-overwrite"
            – Gui Ambros
            May 28 at 4:02












            Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
            – ipkpjersi
            Sep 19 at 16:10




            Actually, OP is using Ubuntu 18.04, so it would be apt install nvidia-driver-396.
            – ipkpjersi
            Sep 19 at 16:10












            up vote
            0
            down vote













            Ubuntu did recommend to me trying apt install --fix-broken to solve the issue I head with libglx-mesa0 being installed by nvidia-410.



            I couldn't figure which .deb is causing the issue exactly so I just passed Dpkg::Options::="--force-overwrite" to the suggested command:



            sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken





            share|improve this answer

























              up vote
              0
              down vote













              Ubuntu did recommend to me trying apt install --fix-broken to solve the issue I head with libglx-mesa0 being installed by nvidia-410.



              I couldn't figure which .deb is causing the issue exactly so I just passed Dpkg::Options::="--force-overwrite" to the suggested command:



              sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Ubuntu did recommend to me trying apt install --fix-broken to solve the issue I head with libglx-mesa0 being installed by nvidia-410.



                I couldn't figure which .deb is causing the issue exactly so I just passed Dpkg::Options::="--force-overwrite" to the suggested command:



                sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken





                share|improve this answer












                Ubuntu did recommend to me trying apt install --fix-broken to solve the issue I head with libglx-mesa0 being installed by nvidia-410.



                I couldn't figure which .deb is causing the issue exactly so I just passed Dpkg::Options::="--force-overwrite" to the suggested command:



                sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 23 at 14:43









                Marcus

                35129




                35129






























                    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%2f1037982%2fnividia-396-installation-blocked-by-libglx-on-18-04%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

                    Mont Emei

                    Province de Neuquén

                    Journaliste