[SOLVED] Black screen after AMD drivers' update

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

Having this repo complicates matters further as it's possibly supplying the direct rendering and glx drivers.

Active apt sources in file: /etc/apt/sources.list.d/xorg-edgers-ppa-xenial.list

I don't know the reason why you added this repo, but any drivers not installed from the official repos can cause serious problems.

Can you paste back the url from dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs apt-cache policy | nc termbin.com 9999
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

WharfRat wrote: Tue Apr 10, 2018 10:17 am Active apt sources in file: /etc/apt/sources.list.d/xorg-edgers-ppa-xenial.list

I don't know the reason why you added this repo, but any drivers not installed from the official repos can cause serious problems.
It's hard for me to know what is official and what not. That may be the problem, sorry... Here is what you asked for:

Code: Select all

daniel-GA-MA78GM-US2H daniel # dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs apt-cache policy | nc termbin.com 9999
http://termbin.com/v8qn
EDIT: I restored the default settings for official repositories and disabled /etc/apt/sources.list.d/xorg-edgers-ppa-xenial.list. I hope that helps a little bit.
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

Yea, you got a whole bunch of packages from that repo

Since you disabled the repo if you want to try having them replaced with the official packages run:

dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs sudo apt-get install --reinstall

Then you'll have to remove the kernel parameter nomodeset for direct rendering to take effect and reboot.

Hope this works for you :wink:
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

It seems that it automatically aborts the download for some reason:

Code: Select all

daniel-GA-MA78GM-US2H daniel # dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs sudo apt-get install --reinstall
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of libdrm-amdgpu1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-amdgpu1:i386 is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-dri is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-dri:i386 is not possible, it cannot be downloaded.
Reinstallation of libglapi-mesa is not possible, it cannot be downloaded.
Reinstallation of libglapi-mesa:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm2 is not possible, it cannot be downloaded.
Reinstallation of libdrm2:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm-common is not possible, it cannot be downloaded.
Reinstallation of libdrm-intel1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-intel1:i386 is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-glx is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-glx:i386 is not possible, it cannot be downloaded.
Reinstallation of libwayland-egl1-mesa is not possible, it cannot be downloaded.
Reinstallation of libdrm-radeon1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-radeon1:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm-nouveau2 is not possible, it cannot be downloaded.
Reinstallation of libdrm-nouveau2:i386 is not possible, it cannot be downloaded.
Reinstallation of libgles2-mesa is not possible, it cannot be downloaded.
Reinstallation of libegl1-mesa is not possible, it cannot be downloaded.
0 to upgrade, 0 to newly install, 5 reinstalled, 0 to remove and 1 not to upgrade.
Need to get 203 kB/215 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
Jeez, this is a mess... By the way, could you please remind me how should I remove the kernel parameter again?
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

Try sudo apt-get update first then try dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs sudo apt-get install --reinstall again

gksudo xed /boot/grub//grub.cfg& and remove the nomodeset from the linux line.

Don't do it unless you get the above packages downloaded and installed.
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

*sigh* Still doesn't work...

Code: Select all

daniel-GA-MA78GM-US2H daniel # sudo apt-get update
Hit:1 http://repo.steampowered.com/steam precise InRelease
Ign:2 http://packages.linuxmint.com sylvia InRelease                           
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                        
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease                     
Hit:6 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial InRelease             
Hit:7 http://packages.linuxmint.com sylvia Release                             
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [473 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]    
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [425 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [204 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [340 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [297 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [127 kB]
Fetched 2,173 kB in 7s (274 kB/s)                                              
Reading package lists... Done
daniel-GA-MA78GM-US2H daniel # dpkg -l|egrep 'mesa|drm'|awk '{print $2}'|xargs sudo apt-get install --reinstall
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of libdrm-amdgpu1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-amdgpu1:i386 is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-dri is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-dri:i386 is not possible, it cannot be downloaded.
Reinstallation of libglapi-mesa is not possible, it cannot be downloaded.
Reinstallation of libglapi-mesa:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm2 is not possible, it cannot be downloaded.
Reinstallation of libdrm2:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm-common is not possible, it cannot be downloaded.
Reinstallation of libdrm-intel1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-intel1:i386 is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-glx is not possible, it cannot be downloaded.
Reinstallation of libgl1-mesa-glx:i386 is not possible, it cannot be downloaded.
Reinstallation of libwayland-egl1-mesa is not possible, it cannot be downloaded.
Reinstallation of libdrm-radeon1 is not possible, it cannot be downloaded.
Reinstallation of libdrm-radeon1:i386 is not possible, it cannot be downloaded.
Reinstallation of libdrm-nouveau2 is not possible, it cannot be downloaded.
Reinstallation of libdrm-nouveau2:i386 is not possible, it cannot be downloaded.
Reinstallation of libgles2-mesa is not possible, it cannot be downloaded.
Reinstallation of libegl1-mesa is not possible, it cannot be downloaded.
0 to upgrade, 0 to newly install, 5 reinstalled, 0 to remove and 1 not to upgrade.
Need to get 203 kB/215 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
I feel that we're close, but this piece of junk keeps halting any progress.
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

What do these return inxi -r and apt-cache policy | sed -n 's/.*o=\([^,]\+\).*/\1/p' | uniq
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

Here you have:

Code: Select all

daniel-GA-MA78GM-US2H daniel # inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/gencfsm-ppa-xenial.list
           deb http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial main
           deb-src http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com sylvia main upstream import backport
           deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ xenial partner
           Active apt sources in file: /etc/apt/sources.list.d/steam.list
           deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
           deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
daniel-GA-MA78GM-US2H daniel # apt-cache policy | sed -n 's/.*o=\([^,]\+\).*/\1/p' | uniq
Valve Software LLC
Canonical
Ubuntu
linuxmint
LP-PPA-gencfsm
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

What about aptitude search "?installed?origin(LP-PPA-gencfsm)" and aptitude search "?installed?origin(Valve Software LLC)"
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

It load some things, but it didn't give me any data except for this:

Code: Select all

daniel-GA-MA78GM-US2H daniel # aptitude search "?installed?origin(LP-PPA-gencfsm)"
daniel-GA-MA78GM-US2H daniel # aptitude search "?installed?origin(Valve Software LLC)"
i   steam-launcher                  - Launcher for the Steam software distributi
That's from Steam. Should I erase it?
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

Don't erase anything yet,

What do you get from ls -lh /var/cache/apt/archives/libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

Ok, I won't delete it.

Here's what I got:

Code: Select all

daniel-GA-MA78GM-US2H daniel # ls -lh /var/cache/apt/archives/libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb
-rw-r--r-- 1 root root 5.6M Jan 29 17:24 /var/cache/apt/archives/libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

And if you try to download this apt-get download libgl1-mesa-dri

Does it download :?:
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

It doesn't apparently:

Code: Select all

daniel-GA-MA78GM-US2H daniel # apt-get download libgl1-mesa-dri
E: Can't find a source to download version '18.0.0~git20180214+18.0.1e173463-0ubuntu0ricotz~16.04.1' of 'libgl1-mesa-dri:amd64'
I'll try to see if I found something about this.

EDIT: This was on the Update Manager:
http://ibb.co/jPM6Gn The blue "Do you want to switch to local mirror advice?"
http://ibb.co/nFVYwn & the default mirrors I'm using.
Is this affecting something?
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

I don't see anything wrong with the official repos - I'm using the same ones.
Try refreshing the local files

Code: Select all

sudo mv -v /var/lib/apt/lists /var/lib/apt/lists.old
sudo mkdir -vp /var/lib/apt/lists/partial
sudo apt-get update
Then try to apt-get download libgl1-mesa-dri
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

It worked almost perfectly, except for the last code. Here, have a look, please:

Code: Select all

daniel-GA-MA78GM-US2H daniel # sudo mv -v /var/lib/apt/lists /var/lib/apt/lists.old
'/var/lib/apt/lists' -> '/var/lib/apt/lists.old'
daniel-GA-MA78GM-US2H daniel # sudo mkdir -vp /var/lib/apt/lists/partial
mkdir: created directory '/var/lib/apt/lists'
mkdir: created directory '/var/lib/apt/lists/partial'
daniel-GA-MA78GM-US2H daniel # sudo apt-get update
Ign:1 http://packages.linuxmint.com sylvia InRelease                           
Get:2 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial InRelease [17.5 kB]   
Get:3 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]               
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Get:5 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]           
Get:6 http://packages.linuxmint.com sylvia Release [24.2 kB]                   
Get:7 http://repo.steampowered.com/steam precise InRelease [2,842 B]           
Get:8 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,128 B]
Get:9 http://packages.linuxmint.com sylvia Release.gpg [819 B]                 
Get:10 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,120 B]
Get:11 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,616 B]
Get:12 http://packages.linuxmint.com sylvia/main amd64 Packages [18.4 kB]      
Get:13 http://repo.steampowered.com/steam precise/steam Sources [550 B]        
Get:14 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial/main Sources [680 B] 
Get:15 http://packages.linuxmint.com sylvia/main i386 Packages [17.7 kB]       
Get:16 http://packages.linuxmint.com sylvia/upstream amd64 Packages [45.7 kB]  
Get:17 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [473 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]      
Get:19 http://repo.steampowered.com/steam precise/steam amd64 Packages [601 B] 
Get:20 http://repo.steampowered.com/steam precise/steam i386 Packages [799 B]  
Get:21 http://packages.linuxmint.com sylvia/upstream i386 Packages [44.9 kB]   
Get:22 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]    
Get:23 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]  
Get:24 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial/main amd64 Packages [612 B]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [425 kB]
Get:26 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial/main i386 Packages [604 B]
Get:27 http://packages.linuxmint.com sylvia/import amd64 Packages [14.3 kB]    
Get:28 http://ppa.launchpad.net/gencfsm/ppa/ubuntu xenial/main Translation-en [440 B]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [204 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]   
Get:31 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,224 B]
Get:32 http://security.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7,224 B]
Get:33 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,152 B]
Get:34 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [340 kB]
Get:35 http://packages.linuxmint.com sylvia/import i386 Packages [13.4 kB]     
Get:36 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [297 kB]
Get:37 http://packages.linuxmint.com sylvia/backport amd64 Packages [73.7 kB]  
Get:38 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [127 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/main Translation-en_GB [426 kB] 
Get:40 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:41 http://security.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [3,376 B]
Get:42 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]    
Get:44 http://packages.linuxmint.com sylvia/backport i386 Packages [74.2 kB]   
Get:45 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8,684 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en_GB [2,556 B]
Get:48 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7,512 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en_GB [3,040 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en_GB [88.1 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [755 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [699 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [313 kB]
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,560 B]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [7,524 B]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:63 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [619 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [573 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [249 kB]
Get:66 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:67 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]
Get:68 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,076 B]
Get:69 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,836 B]
Get:70 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4,840 B]
Get:71 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B]
Get:72 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,104 B]
Get:73 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7,080 B]
Get:74 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,844 B]
Fetched 32.4 MB in 1min 37s (334 kB/s)                                         
Reading package lists... Done
daniel-GA-MA78GM-US2H daniel # apt-get download libgl1-mesa-dri
E: Can't find a source to download version '18.0.0~git20180214+18.0.1e173463-0ubuntu0ricotz~16.04.1' of 'libgl1-mesa-dri:amd64'
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

This is getting to the point of bizarre :?

Answer yes to the update manager's request to switch mirrors - since I'm at a loss at this point.

Can you sudo apt-get install debsums :?:

If so run debsums -av apt

If there's nothing returned then that's good.
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

Alright, I've got to choose a mirror, here's a picture showing the list: http://ibb.co/m3LpK7

And this are the codes (the last one seems to have failed...):

Code: Select all

daniel-GA-MA78GM-US2H daniel # sudo apt-get install debsums
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libfile-fnmatch-perl
The following NEW packages will be installed
  debsums libfile-fnmatch-perl
0 to upgrade, 2 to newly install, 0 to remove and 4 not to upgrade.
Need to get 51.8 kB of archives.
After this operation, 256 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libfile-fnmatch-perl amd64 0.02-2build2 [9,822 B]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 debsums all 2.1.2 [42.0 kB]
Fetched 51.8 kB in 1s (33.1 kB/s) 
Selecting previously unselected package libfile-fnmatch-perl.
(Reading database ... 277041 files and directories currently installed.)
Preparing to unpack .../libfile-fnmatch-perl_0.02-2build2_amd64.deb ...
Unpacking libfile-fnmatch-perl (0.02-2build2) ...
Selecting previously unselected package debsums.
Preparing to unpack .../archives/debsums_2.1.2_all.deb ...
Unpacking debsums (2.1.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libfile-fnmatch-perl (0.02-2build2) ...
Setting up debsums (2.1.2) ...
daniel-GA-MA78GM-US2H daniel # debsums -av apt
Unknown option: v
Try 'debsums --help' for more information.
WharfRat

Re: Black screen after AMD drivers' update

Post by WharfRat »

Sorry , it's debsums -ac apt
Daniel_AYA-AZZ

Re: Black screen after AMD drivers' update

Post by Daniel_AYA-AZZ »

Don't worry. Ok, I wrote the code and nothing appeared, so we're good. Anything else to do?
Locked

Return to “Beginner Questions”