Issues installing Nvidia drivers in Debian 9












3














I'm new to linux and I decided to install Debian 9, I installed it in my HDD in UEFI mode with a USB stick and the DVD 1 iso found here: https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/. I had some issues with network drivers but I managed to solve them. Then I wanted to install Nvidia propietary drivers, my laptop is a MSI GL62-7RDX which comes with an i7-7700HQ CPU and a GTX 1050 (2GB) graphics card, I followed the steps specified here: https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_9_.22Stretch.22 which are:




  • Add non-free repositories by modifying the sources.list file.


  • Execute the following commands as root:



    apt update
    apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver


  • Reboot



The problem is that when I rebooted I only got a black screen with a blinking cursor. I decided to follow the steps shown here: https://wiki.debian.org/NvidiaGraphicsDrivers#Backing_out_in_case_of_failure in order to throw back the changes. After rebooting I could see the login screen, but when I tried to login I got a login loop, despite of the password being correct.



I also tried to install Nvidia drivers as shown here: How to install the latest NVIDIA drivers on Debian 9 Stretch Linux but I got black screen with blinking cursor again.



In summary, I would like to know how to properly install Nvidia drivers in my laptop. I think I am missing something and that the problem is related to my specific hardware, because a few days ago I tried to install Ubuntu 17.10 and it only worked if I added nomodeset by pressing e in the GRUB.










share|improve this question




















  • 1




    Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
    – Anthony Geoghegan
    Nov 30 '17 at 18:01












  • Thnak you very much @AnthonyGeoghegan
    – AxiomSword
    Nov 30 '17 at 18:16
















3














I'm new to linux and I decided to install Debian 9, I installed it in my HDD in UEFI mode with a USB stick and the DVD 1 iso found here: https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/. I had some issues with network drivers but I managed to solve them. Then I wanted to install Nvidia propietary drivers, my laptop is a MSI GL62-7RDX which comes with an i7-7700HQ CPU and a GTX 1050 (2GB) graphics card, I followed the steps specified here: https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_9_.22Stretch.22 which are:




  • Add non-free repositories by modifying the sources.list file.


  • Execute the following commands as root:



    apt update
    apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver


  • Reboot



The problem is that when I rebooted I only got a black screen with a blinking cursor. I decided to follow the steps shown here: https://wiki.debian.org/NvidiaGraphicsDrivers#Backing_out_in_case_of_failure in order to throw back the changes. After rebooting I could see the login screen, but when I tried to login I got a login loop, despite of the password being correct.



I also tried to install Nvidia drivers as shown here: How to install the latest NVIDIA drivers on Debian 9 Stretch Linux but I got black screen with blinking cursor again.



In summary, I would like to know how to properly install Nvidia drivers in my laptop. I think I am missing something and that the problem is related to my specific hardware, because a few days ago I tried to install Ubuntu 17.10 and it only worked if I added nomodeset by pressing e in the GRUB.










share|improve this question




















  • 1




    Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
    – Anthony Geoghegan
    Nov 30 '17 at 18:01












  • Thnak you very much @AnthonyGeoghegan
    – AxiomSword
    Nov 30 '17 at 18:16














3












3








3







I'm new to linux and I decided to install Debian 9, I installed it in my HDD in UEFI mode with a USB stick and the DVD 1 iso found here: https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/. I had some issues with network drivers but I managed to solve them. Then I wanted to install Nvidia propietary drivers, my laptop is a MSI GL62-7RDX which comes with an i7-7700HQ CPU and a GTX 1050 (2GB) graphics card, I followed the steps specified here: https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_9_.22Stretch.22 which are:




  • Add non-free repositories by modifying the sources.list file.


  • Execute the following commands as root:



    apt update
    apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver


  • Reboot



The problem is that when I rebooted I only got a black screen with a blinking cursor. I decided to follow the steps shown here: https://wiki.debian.org/NvidiaGraphicsDrivers#Backing_out_in_case_of_failure in order to throw back the changes. After rebooting I could see the login screen, but when I tried to login I got a login loop, despite of the password being correct.



I also tried to install Nvidia drivers as shown here: How to install the latest NVIDIA drivers on Debian 9 Stretch Linux but I got black screen with blinking cursor again.



In summary, I would like to know how to properly install Nvidia drivers in my laptop. I think I am missing something and that the problem is related to my specific hardware, because a few days ago I tried to install Ubuntu 17.10 and it only worked if I added nomodeset by pressing e in the GRUB.










share|improve this question















I'm new to linux and I decided to install Debian 9, I installed it in my HDD in UEFI mode with a USB stick and the DVD 1 iso found here: https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/. I had some issues with network drivers but I managed to solve them. Then I wanted to install Nvidia propietary drivers, my laptop is a MSI GL62-7RDX which comes with an i7-7700HQ CPU and a GTX 1050 (2GB) graphics card, I followed the steps specified here: https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_9_.22Stretch.22 which are:




  • Add non-free repositories by modifying the sources.list file.


  • Execute the following commands as root:



    apt update
    apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver


  • Reboot



The problem is that when I rebooted I only got a black screen with a blinking cursor. I decided to follow the steps shown here: https://wiki.debian.org/NvidiaGraphicsDrivers#Backing_out_in_case_of_failure in order to throw back the changes. After rebooting I could see the login screen, but when I tried to login I got a login loop, despite of the password being correct.



I also tried to install Nvidia drivers as shown here: How to install the latest NVIDIA drivers on Debian 9 Stretch Linux but I got black screen with blinking cursor again.



In summary, I would like to know how to properly install Nvidia drivers in my laptop. I think I am missing something and that the problem is related to my specific hardware, because a few days ago I tried to install Ubuntu 17.10 and it only worked if I added nomodeset by pressing e in the GRUB.







debian drivers nvidia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 16 at 22:03









Rui F Ribeiro

38.9k1479129




38.9k1479129










asked Nov 30 '17 at 17:27









AxiomSword

162




162








  • 1




    Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
    – Anthony Geoghegan
    Nov 30 '17 at 18:01












  • Thnak you very much @AnthonyGeoghegan
    – AxiomSword
    Nov 30 '17 at 18:16














  • 1




    Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
    – Anthony Geoghegan
    Nov 30 '17 at 18:01












  • Thnak you very much @AnthonyGeoghegan
    – AxiomSword
    Nov 30 '17 at 18:16








1




1




Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
– Anthony Geoghegan
Nov 30 '17 at 18:01






Sorry I can't help you with your problem but I just thought I'd say, “welcome to Unix & Linux”. It’s a pleasure to see someone’s first question being so well researched and such care taken to write their question so that it’s clear what the problem is. Hope you get a good answer.
– Anthony Geoghegan
Nov 30 '17 at 18:01














Thnak you very much @AnthonyGeoghegan
– AxiomSword
Nov 30 '17 at 18:16




Thnak you very much @AnthonyGeoghegan
– AxiomSword
Nov 30 '17 at 18:16















active

oldest

votes











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%2f408034%2fissues-installing-nvidia-drivers-in-debian-9%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.





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%2funix.stackexchange.com%2fquestions%2f408034%2fissues-installing-nvidia-drivers-in-debian-9%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

Morgemoulin

Scott Moir

Souastre