Mesa and amdgpu-pro driver conflict on PopOs

Hello, I started noticing pixel glitch on my rx580 on Pop Os. I then decided to to install amdgpu- pro driver wich solved the problem but created some other issue when I do sudo apt update:

E: Failed to fetch file:/var/opt/amdgpu-pro-local/./Packages  File not found - /var/opt/amdgpu-pro-local/./Packages (2: No such file or directory)

E: Some index files failed to download. They have been ignored, or old ones used instead.

My goal would be to remove all the amdgpu-pro dependency and reinstall the mesa driver like it was at the begining. I think I messed up everything…

Thanks for your help.

Do not install the pro driver.

The pro driver is only to be used for compute tasks.

1 Like

I reverted back to the original Mesa driver but the pixel glitch came back. Is it a known issue? Is there a way to re-install those drivers?

I do not know what you mean by ‘pixel glitch’.

Ii you look at the top left corner you will see. It mainly occur when I use chrome. When I had some sort of amdgpu-pro dependency installed it didn’t append.

what happens if you try to perform the same operation from a Pop!_OS 20.04 (the one I assume you are using) live USB?

The problem is not present when im booting on a live USB…

that is good news.

Could you post the content of uname -a

as well as inform us if you have recently done a fresh installation or was an upgrade from a previous installation?

Uname -a:

Linux robocop 5.4.0-7642-generic #46~1598628707~20.04~040157c-Ubuntu SMP Fri Aug 28 18:02:16 UTC x86_64 x86_64 x86_64 GNU/Linux

Last upgrade was made from a previous version of pop os on my pc.

I have to say that the problem first append after I removed the graphic card and re-installed it. However since than I re-seated the card and trace all the connection from the card to the power suply… When I installed the amdgpu-pro driver the “Glitch” disapeard but than I had all sort of other problems with software specifically with error message with apt.

okay now its starting to make more sense.

How exactly did you uninstall the amdgpu-pro drivers? do you still have the terminal output?

You can search your terminal history by typing history and analyzing the log.

Here is my morning quest :slight_smile:

1945 sudo apt autoremove
1946 sudo dpkg --configure -a
1947 sudo apt autoremove
1948 apt --fix-broken install
1949 sudo apt --fix-broken install
1950 sudo dpkg --remove --force-remove-reinstreq amdgpu-dkms amdgpu amdgpu-pro amdgpu-pro-lib32
1951 sudo apt-get update
1952 sudo apt autoremove
1953 sudo apt update
1954 sudo dpkg --remove --force-remove-reinstreq amdgpu-pro-local
1955 sudo apt autoremove
1956 sudo reboot
1957 sudo apt update
1958 sudo apt-get install update
1959 sudo apt install ppa-purge
1960 sudo ppa-purge ppa:paulo-miguel-dias/mesa
1961 dpkg --list | grep -i “glx”
1971 sudo apt update
1972 sudo apt upgrade
1973 sudo apt dist-upgrade
1974 sudo apt autoremove
1975 sudo apt autoclean
1976 sudo fwupdmgr get-devices
1977 sudo fwupdmgr get-updates
1978 sudo fwupdmgr update
1979 sudo apt-add-repository -y ppa:system76-dev/stable
1980 sudo apt-get update
1981 sudo apt-get install -y system76-driver
1992 sudo add-apt-repository ppa:oibaf/graphics-drivers
1993 sudo apt update && sudo apt -y upgrade
1994 sudo apt autoremove

what is the output of apt when you go to update?

Here is the output of apt update:

Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://linux.teamviewer.com/deb stable InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:6 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:7 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [107 kB]    
Hit:8 https://dl.yarnpkg.com/debian stable InRelease                           
Ign:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease     
Hit:10 http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal InRelease        
Hit:11 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release      
Hit:12 http://apt.pop-os.org/proprietary focal InRelease                       
Hit:13 https://repo.steampowered.com/steam stable InRelease                    
Hit:14 http://packages.microsoft.com/repos/vscode stable InRelease             
Get:15 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]    
Get:16 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] 
Hit:17 http://repository.spotify.com stable InRelease                          
Get:18 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease [23.8 kB]
Hit:20 https://deb.nodesource.com/node_12.x focal InRelease                    
Hit:22 http://ppa.launchpad.net/system76-dev/stable/ubuntu focal InRelease     
Hit:19 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Hit:23 http://ppa.launchpad.net/system76/pop/ubuntu focal InRelease      
Fetched 341 kB in 2s (175 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

ah so the amdgpu-pro-local is still present so its pulling those

Yes I saw that… Im not sure how to get rid of those…

did you try this?

Uninstalling the AMD GPU-PRO Driver
If for any reason you wish to remove the AMDGPU-PRO graphics stack you can do this using the uninstallation script which was part of the installation and is present in your path. From the command prompt enter the following command:

sudo amdgpu-pro-uninstall

https://www.amd.com/en/support/kb/faq/gpu-635

I tried this command this morning it was sending me Command not found… but now it worked… Go find why?

When I do apt update nothing related to amdgpu appears anymore. Great!

I rebooted, but the problem is still their…

Glad that its properly removed, now lets make sure you have all the components of the regular amdgpu

This is the new output of apt update:

> Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://repo.steampowered.com/steam stable InRelease                     
Hit:3 https://dl.yarnpkg.com/debian stable InRelease                           
Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [107 kB]    
Hit:5 http://repository.spotify.com stable InRelease                           
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease              
Hit:7 http://apt.pop-os.org/proprietary focal InRelease                        
Hit:8 http://linux.teamviewer.com/deb stable InRelease                         
Hit:9 http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal InRelease         
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]    
Hit:11 https://deb.nodesource.com/node_12.x focal InRelease                    
Hit:12 http://dl.google.com/linux/chrome/deb stable InRelease                  
Ign:13 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease    
Hit:14 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release      
Get:15 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] 
Hit:16 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease  
Hit:18 http://ppa.launchpad.net/system76-dev/stable/ubuntu focal InRelease     
Hit:19 http://ppa.launchpad.net/system76/pop/ubuntu focal InRelease      
Hit:17 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 317 kB in 2s (159 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

amdgpu should be built in kernel module so you shouldn’t need to do anything special for it.