{"id":8173,"date":"2022-05-18T17:10:56","date_gmt":"2022-05-18T16:10:56","guid":{"rendered":"https:\/\/www.blopig.com\/blog\/?p=8173"},"modified":"2022-05-25T13:31:40","modified_gmt":"2022-05-25T12:31:40","slug":"linux-horror-stories-vol-ii-automatic-drivers-update","status":"publish","type":"post","link":"https:\/\/www.blopig.com\/blog\/2022\/05\/linux-horror-stories-vol-ii-automatic-drivers-update\/","title":{"rendered":"Linux Horror stories vol II: Automatic drivers update"},"content":{"rendered":"\n<p>As promised, I will tell you about another Linux Horror Story: The Nvidia driver automatic update that breaks your machine. This is a recurrent problem that I have suffered so many times that I tend to disable all Nvidia updates just to avoid it. Unfortunately, I forgot to do so on my new laptop, so it happened once more.&nbsp;<\/p>\n\n\n\n<p>It all started when I tried to connect my dual monitor to my laptop, as I have been doing for the last 8 months. But the SO did not recognize the monitor. After unplugging and plugging my monitor a few times and rebooting my machine several times, I started thinking that it may be a drivers-related problem, so I just executed the command <code>nvidia-smi<\/code> to check if the GPU drivers were working. A familiar error message confirmed my fears:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NVIDIA-SMI has failed because it couldn\u2019t communicate with the Nvidia driver. \n\n Make sure that the latest NVIDIA driver is installed and running. <\/code><\/pre>\n\n\n\n<p>If you are lucky enough, this is a consequence of the driver update and rebooting the machine will make it work again. Unfortunately, it was not my case, so I started the process of uninstalling and reinstalling the drivers.&nbsp;To do so, in an Ubuntu machine, you only need to use the following two commands.<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre class=\"wp-block-code\"><code>#Remove Nvidia stuff\nsudo apt remove \u2013purge nvidia* \n\n#Install drivers\n\nsudo apt install nvidia-dralliver-XXX # where XXX is the version<\/code><\/pre>\n\n\n\n<p>And after rebooting your machine your new drivers should be perfectly working. But of course, this is a horror story, so this solution didn&#8217;t work. So I need to manually purge ALL Nvidia related packages, that you can find using.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg -l | grep nvidia\n<\/code><\/pre>\n\n\n\n<p>Once I got everythin clean, I tried to autoinstall the drivers<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ubuntu-drivers autoinstall<\/code><\/pre>\n\n\n\n<p>And after a reboot, my dual monitor was working again!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As promised, I will tell you about another Linux Horror Story: The Nvidia driver automatic update that breaks your machine. This is a recurrent problem that I have suffered so many times that I tend to disable all Nvidia updates just to avoid it. Unfortunately, I forgot to do so on my new laptop, so [&hellip;]<\/p>\n","protected":false},"author":85,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","wikipediapreview_detectlinks":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[588,586],"tags":[590,593,592,591],"ppma_author":[557],"class_list":["post-8173","post","type-post","status-publish","format-standard","hentry","category-linux-gnu-linux","category-os","tag-drivers","tag-gpus","tag-laptops","tag-nvidia"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"authors":[{"term_id":557,"user_id":85,"is_guest":0,"slug":"ruben","display_name":"Ruben Sanchez-Garcia","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/7301ee01be22b8e41f73a40f0f9a3c1a8fcc9bd35f6ed27763b3827f56e8735c?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/8173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/comments?post=8173"}],"version-history":[{"count":5,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/8173\/revisions"}],"predecessor-version":[{"id":8189,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/8173\/revisions\/8189"}],"wp:attachment":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/media?parent=8173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/categories?post=8173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/tags?post=8173"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=8173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}