Installing NVIDIA driver for Debian Stretch












2















I'm trying to install the nvidia-driver for Debian.



I've read everywhere that the correct solution is to run sudo apt install nvidia-driver and the driver should install itself without problems.



However this command leaves me with the output



Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-driver : Depends: nvidia-driver-libs (= 375.82-1~deb9u1) but it is not going to be installed
Depends: nvidia-driver-bin (= 375.82-1~deb9u1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
Depends: nvidia-vdpau-driver (= 375.82-1~deb9u1) but it is not going to be installed
Depends: nvidia-alternative (= 375.82-1~deb9u1)
Depends: nvidia-kernel-dkms (= 375.82-1~deb9u1) or
nvidia-kernel-375.82
Recommends: nvidia-settings (>= 375) but it is not going to be installed
Recommends: nvidia-persistenced
E: Unable to correct problems, you have held broken packages.


I've tried installing the missing dependencies (like sudo apt install nvidia-driver-libs) but this just results in



Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 375.82-1~deb9u1) but it is not going to be installed or
libgl1-nvidia-glx (= 375.82-1~deb9u1) but it is not going to be installed
Depends: nvidia-egl-icd (= 375.82-1~deb9u1) but it is not going to be installed or
libegl1-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
Recommends: nvidia-driver-libs-i386
Recommends: libopengl0-glvnd-nvidia but it is not going to be installed
Recommends: libglx-nvidia0 (= 375.82-1~deb9u1) but it is not going to be installed
Recommends: libgles-nvidia1 (= 375.82-1~deb9u1) but it is not going to be installed
Recommends: libgles-nvidia2 (= 375.82-1~deb9u1) but it is not going to be installed
Recommends: libnvidia-cfg1 (= 375.82-1~deb9u1) but it is not going to be installed
Recommends: nvidia-vulkan-icd (= 375.82-1~deb9u1) but it is not going to be installed


How do I install the nvidia-driver with apt?










share|improve this question



























    2















    I'm trying to install the nvidia-driver for Debian.



    I've read everywhere that the correct solution is to run sudo apt install nvidia-driver and the driver should install itself without problems.



    However this command leaves me with the output



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    nvidia-driver : Depends: nvidia-driver-libs (= 375.82-1~deb9u1) but it is not going to be installed
    Depends: nvidia-driver-bin (= 375.82-1~deb9u1) but it is not going to be installed
    Depends: xserver-xorg-video-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
    Depends: nvidia-vdpau-driver (= 375.82-1~deb9u1) but it is not going to be installed
    Depends: nvidia-alternative (= 375.82-1~deb9u1)
    Depends: nvidia-kernel-dkms (= 375.82-1~deb9u1) or
    nvidia-kernel-375.82
    Recommends: nvidia-settings (>= 375) but it is not going to be installed
    Recommends: nvidia-persistenced
    E: Unable to correct problems, you have held broken packages.


    I've tried installing the missing dependencies (like sudo apt install nvidia-driver-libs) but this just results in



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 375.82-1~deb9u1) but it is not going to be installed or
    libgl1-nvidia-glx (= 375.82-1~deb9u1) but it is not going to be installed
    Depends: nvidia-egl-icd (= 375.82-1~deb9u1) but it is not going to be installed or
    libegl1-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
    Recommends: nvidia-driver-libs-i386
    Recommends: libopengl0-glvnd-nvidia but it is not going to be installed
    Recommends: libglx-nvidia0 (= 375.82-1~deb9u1) but it is not going to be installed
    Recommends: libgles-nvidia1 (= 375.82-1~deb9u1) but it is not going to be installed
    Recommends: libgles-nvidia2 (= 375.82-1~deb9u1) but it is not going to be installed
    Recommends: libnvidia-cfg1 (= 375.82-1~deb9u1) but it is not going to be installed
    Recommends: nvidia-vulkan-icd (= 375.82-1~deb9u1) but it is not going to be installed


    How do I install the nvidia-driver with apt?










    share|improve this question

























      2












      2








      2


      1






      I'm trying to install the nvidia-driver for Debian.



      I've read everywhere that the correct solution is to run sudo apt install nvidia-driver and the driver should install itself without problems.



      However this command leaves me with the output



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      nvidia-driver : Depends: nvidia-driver-libs (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-driver-bin (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: xserver-xorg-video-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-vdpau-driver (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-alternative (= 375.82-1~deb9u1)
      Depends: nvidia-kernel-dkms (= 375.82-1~deb9u1) or
      nvidia-kernel-375.82
      Recommends: nvidia-settings (>= 375) but it is not going to be installed
      Recommends: nvidia-persistenced
      E: Unable to correct problems, you have held broken packages.


      I've tried installing the missing dependencies (like sudo apt install nvidia-driver-libs) but this just results in



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 375.82-1~deb9u1) but it is not going to be installed or
      libgl1-nvidia-glx (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-egl-icd (= 375.82-1~deb9u1) but it is not going to be installed or
      libegl1-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: nvidia-driver-libs-i386
      Recommends: libopengl0-glvnd-nvidia but it is not going to be installed
      Recommends: libglx-nvidia0 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libgles-nvidia1 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libgles-nvidia2 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libnvidia-cfg1 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: nvidia-vulkan-icd (= 375.82-1~deb9u1) but it is not going to be installed


      How do I install the nvidia-driver with apt?










      share|improve this question














      I'm trying to install the nvidia-driver for Debian.



      I've read everywhere that the correct solution is to run sudo apt install nvidia-driver and the driver should install itself without problems.



      However this command leaves me with the output



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      nvidia-driver : Depends: nvidia-driver-libs (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-driver-bin (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: xserver-xorg-video-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-vdpau-driver (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-alternative (= 375.82-1~deb9u1)
      Depends: nvidia-kernel-dkms (= 375.82-1~deb9u1) or
      nvidia-kernel-375.82
      Recommends: nvidia-settings (>= 375) but it is not going to be installed
      Recommends: nvidia-persistenced
      E: Unable to correct problems, you have held broken packages.


      I've tried installing the missing dependencies (like sudo apt install nvidia-driver-libs) but this just results in



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 375.82-1~deb9u1) but it is not going to be installed or
      libgl1-nvidia-glx (= 375.82-1~deb9u1) but it is not going to be installed
      Depends: nvidia-egl-icd (= 375.82-1~deb9u1) but it is not going to be installed or
      libegl1-nvidia (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: nvidia-driver-libs-i386
      Recommends: libopengl0-glvnd-nvidia but it is not going to be installed
      Recommends: libglx-nvidia0 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libgles-nvidia1 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libgles-nvidia2 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: libnvidia-cfg1 (= 375.82-1~deb9u1) but it is not going to be installed
      Recommends: nvidia-vulkan-icd (= 375.82-1~deb9u1) but it is not going to be installed


      How do I install the nvidia-driver with apt?







      debian apt drivers nvidia






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 14 '18 at 12:02









      DanielDaniel

      13217




      13217






















          3 Answers
          3






          active

          oldest

          votes


















          6














          You need to enable the non-free repositories:



          sudo sed -i.bak 's/stretch[^ ]* main$/& contrib non-free/g' /etc/apt/sources.list


          Then run apt update and try your installation again. You’ll probably also need to install the kernel headers if you haven’t already:



          sudo apt install linux-headers-$(uname -r)


          See the full instructions on the Debian wiki.






          share|improve this answer































            1














            Since this doesn't have an accepted answer yet, I'll go ahead and chip in what worked for me. I was having a very similar issue, with many of the same packages complaining, but there were an additional two PreDepends issues that stretch-backports was not resolving. Turns out, in addition to the instructions in the wiki page Stephen posted (https://wiki.debian.org/NvidiaGraphicsDrivers), I needed to add contrib for stretch. That is, in /etc/apt/sources.list, I changed



            deb http://ftp.us.debian.org/debian/ stretch main


            to



            deb http://ftp.us.debian.org/debian/ stretch main contrib


            and ran apt update, after which i was able to install nvidia-drivers without issue. Hope that helps, if you're still having issues.






            share|improve this answer
























            • Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

              – Stephen Kitt
              Sep 14 '18 at 20:55











            • Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

              – jacaseyclyde
              Sep 21 '18 at 16:20



















            0














            I had a similar problem. I solved it by removing backports from sources



            from this issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906903




            We have had this before ... having both stretch and stretch-backports
            enabled and trying to track stretch does not work currently for the
            nvidia driver ... too many changes w.r.t. libglvnd etc.







            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f449794%2finstalling-nvidia-driver-for-debian-stretch%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









              6














              You need to enable the non-free repositories:



              sudo sed -i.bak 's/stretch[^ ]* main$/& contrib non-free/g' /etc/apt/sources.list


              Then run apt update and try your installation again. You’ll probably also need to install the kernel headers if you haven’t already:



              sudo apt install linux-headers-$(uname -r)


              See the full instructions on the Debian wiki.






              share|improve this answer




























                6














                You need to enable the non-free repositories:



                sudo sed -i.bak 's/stretch[^ ]* main$/& contrib non-free/g' /etc/apt/sources.list


                Then run apt update and try your installation again. You’ll probably also need to install the kernel headers if you haven’t already:



                sudo apt install linux-headers-$(uname -r)


                See the full instructions on the Debian wiki.






                share|improve this answer


























                  6












                  6








                  6







                  You need to enable the non-free repositories:



                  sudo sed -i.bak 's/stretch[^ ]* main$/& contrib non-free/g' /etc/apt/sources.list


                  Then run apt update and try your installation again. You’ll probably also need to install the kernel headers if you haven’t already:



                  sudo apt install linux-headers-$(uname -r)


                  See the full instructions on the Debian wiki.






                  share|improve this answer













                  You need to enable the non-free repositories:



                  sudo sed -i.bak 's/stretch[^ ]* main$/& contrib non-free/g' /etc/apt/sources.list


                  Then run apt update and try your installation again. You’ll probably also need to install the kernel headers if you haven’t already:



                  sudo apt install linux-headers-$(uname -r)


                  See the full instructions on the Debian wiki.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 14 '18 at 12:07









                  Stephen KittStephen Kitt

                  175k24401479




                  175k24401479

























                      1














                      Since this doesn't have an accepted answer yet, I'll go ahead and chip in what worked for me. I was having a very similar issue, with many of the same packages complaining, but there were an additional two PreDepends issues that stretch-backports was not resolving. Turns out, in addition to the instructions in the wiki page Stephen posted (https://wiki.debian.org/NvidiaGraphicsDrivers), I needed to add contrib for stretch. That is, in /etc/apt/sources.list, I changed



                      deb http://ftp.us.debian.org/debian/ stretch main


                      to



                      deb http://ftp.us.debian.org/debian/ stretch main contrib


                      and ran apt update, after which i was able to install nvidia-drivers without issue. Hope that helps, if you're still having issues.






                      share|improve this answer
























                      • Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                        – Stephen Kitt
                        Sep 14 '18 at 20:55











                      • Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                        – jacaseyclyde
                        Sep 21 '18 at 16:20
















                      1














                      Since this doesn't have an accepted answer yet, I'll go ahead and chip in what worked for me. I was having a very similar issue, with many of the same packages complaining, but there were an additional two PreDepends issues that stretch-backports was not resolving. Turns out, in addition to the instructions in the wiki page Stephen posted (https://wiki.debian.org/NvidiaGraphicsDrivers), I needed to add contrib for stretch. That is, in /etc/apt/sources.list, I changed



                      deb http://ftp.us.debian.org/debian/ stretch main


                      to



                      deb http://ftp.us.debian.org/debian/ stretch main contrib


                      and ran apt update, after which i was able to install nvidia-drivers without issue. Hope that helps, if you're still having issues.






                      share|improve this answer
























                      • Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                        – Stephen Kitt
                        Sep 14 '18 at 20:55











                      • Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                        – jacaseyclyde
                        Sep 21 '18 at 16:20














                      1












                      1








                      1







                      Since this doesn't have an accepted answer yet, I'll go ahead and chip in what worked for me. I was having a very similar issue, with many of the same packages complaining, but there were an additional two PreDepends issues that stretch-backports was not resolving. Turns out, in addition to the instructions in the wiki page Stephen posted (https://wiki.debian.org/NvidiaGraphicsDrivers), I needed to add contrib for stretch. That is, in /etc/apt/sources.list, I changed



                      deb http://ftp.us.debian.org/debian/ stretch main


                      to



                      deb http://ftp.us.debian.org/debian/ stretch main contrib


                      and ran apt update, after which i was able to install nvidia-drivers without issue. Hope that helps, if you're still having issues.






                      share|improve this answer













                      Since this doesn't have an accepted answer yet, I'll go ahead and chip in what worked for me. I was having a very similar issue, with many of the same packages complaining, but there were an additional two PreDepends issues that stretch-backports was not resolving. Turns out, in addition to the instructions in the wiki page Stephen posted (https://wiki.debian.org/NvidiaGraphicsDrivers), I needed to add contrib for stretch. That is, in /etc/apt/sources.list, I changed



                      deb http://ftp.us.debian.org/debian/ stretch main


                      to



                      deb http://ftp.us.debian.org/debian/ stretch main contrib


                      and ran apt update, after which i was able to install nvidia-drivers without issue. Hope that helps, if you're still having issues.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 14 '18 at 16:26









                      jacaseyclydejacaseyclyde

                      112




                      112













                      • Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                        – Stephen Kitt
                        Sep 14 '18 at 20:55











                      • Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                        – jacaseyclyde
                        Sep 21 '18 at 16:20



















                      • Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                        – Stephen Kitt
                        Sep 14 '18 at 20:55











                      • Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                        – jacaseyclyde
                        Sep 21 '18 at 16:20

















                      Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                      – Stephen Kitt
                      Sep 14 '18 at 20:55





                      Welcome to Unix.SE! Note that I had already mentioned adding contrib ;-).

                      – Stephen Kitt
                      Sep 14 '18 at 20:55













                      Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                      – jacaseyclyde
                      Sep 21 '18 at 16:20





                      Totally missed that and somehow only saw the non-free there! Guess I need to read the code lines a little more carefully next time xP Thanks for pointing that out!

                      – jacaseyclyde
                      Sep 21 '18 at 16:20











                      0














                      I had a similar problem. I solved it by removing backports from sources



                      from this issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906903




                      We have had this before ... having both stretch and stretch-backports
                      enabled and trying to track stretch does not work currently for the
                      nvidia driver ... too many changes w.r.t. libglvnd etc.







                      share|improve this answer




























                        0














                        I had a similar problem. I solved it by removing backports from sources



                        from this issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906903




                        We have had this before ... having both stretch and stretch-backports
                        enabled and trying to track stretch does not work currently for the
                        nvidia driver ... too many changes w.r.t. libglvnd etc.







                        share|improve this answer


























                          0












                          0








                          0







                          I had a similar problem. I solved it by removing backports from sources



                          from this issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906903




                          We have had this before ... having both stretch and stretch-backports
                          enabled and trying to track stretch does not work currently for the
                          nvidia driver ... too many changes w.r.t. libglvnd etc.







                          share|improve this answer













                          I had a similar problem. I solved it by removing backports from sources



                          from this issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906903




                          We have had this before ... having both stretch and stretch-backports
                          enabled and trying to track stretch does not work currently for the
                          nvidia driver ... too many changes w.r.t. libglvnd etc.








                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 23 at 19:34









                          David ChanDavid Chan

                          101




                          101






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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%2funix.stackexchange.com%2fquestions%2f449794%2finstalling-nvidia-driver-for-debian-stretch%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 to make a Squid Proxy server?

                              第一次世界大戦

                              Touch on Surface Book