Weird driver AMD driver issues on new Kubuntu build

Hello all, hope you’re having a good Sunday.

Yesterday I built my (mostly) new system and threw Kubuntu on it because that’s what I’ve been learning for the last 5 or so months. Most stuff worked perfectly fine out of the box but I’m running into a few very strange issues with the GPU driver. I’ve tried downloading and installing the newest drivers released last month from the website but that seems to have just made things worse. Discover, the software installation and update center on Kubuntu, says I have a bunch of video driver updates available but they fail to implement.

I am definately still a noob when it comes to using Linux and the command line. I’ve learned enough to use it full time and get my games working, but not enough to debug anything serious.

Some of the problems I believe are caused by this are:

  1. Faint horizontal lines covering landscapes in Classic WoW, especially when viewed at a distance (only game I’ve tested so far other than Starcraft, which worked perfectly)
  2. VLC media player crashes on startup when trying to play any video file (MP3 files work fine)
  3. Hardware monitor widgets not doing their job

Kubuntu version is 21.04
Hardware is as follows:
Asrock Haitachi B550 Razor Edition mobo
Ryzen 5700G
GSkill Trident Z RAM
Radeon RX 480

Here is the bug info that Konsole gives me:

Summary

The following packages have unmet dependencies:
amdgpu-lib : Depends: libllvm-amdgpu (= 1:12.0.40501-1337797)
Depends: libgl1-amdgpu-mesa-dri (= 1:21.3.0.40501-1337797) but 1:21.1.0-1271047 is to be installed
Depends: mesa-amdgpu-vdpau-drivers (= 1:21.3.0.40501-1337797) but 1:21.1.0-1271047 is to be installed
Depends: mesa-amdgpu-omx-drivers (= 1:21.3.0.40501-1337797) but 1:21.1.0-1271047 is to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu (= 1:19.1.0.40501-1337797) but 1:19.1.0-1271047 is to be installed
Depends: gst-omx-amdgpu (= 1:1.0.0.1.40501-1337797) but 1.0.0.1-1271047 is to be installed
amdgpu-lib32 : Depends: libllvm-amdgpu:i386 (= 1:12.0.40501-1337797)
Depends: libgl1-amdgpu-mesa-dri:i386 (= 1:21.3.0.40501-1337797)
Depends: mesa-amdgpu-vdpau-drivers:i386 (= 1:21.3.0.40501-1337797)
libgl1-amdgpu-mesa-dri : PreDepends: mesa-amdgpu-va-drivers (= 1:21.1.0-1271047) but 1:21.3.0.40501-1337797 is to be installed
Recommends: libtxc-dxtn-s2tc0 but it is not installable or
libtxc-dxtn0 but it is not installable
libgl1-amdgpu-mesa-dri:i386 : PreDepends: mesa-amdgpu-va-drivers:i386 (= 1:21.1.0-1271047) but 1:21.3.0.40501-1337797 is to be installed
Recommends: libtxc-dxtn-s2tc0:i386 but it is not installable or
libtxc-dxtn0:i386 but it is not installable
libxatracker2-amdgpu : Depends: libllvm12.0.40501-amdgpu but it is not going to be installed
libxatracker2-amdgpu:i386 : Depends: libllvm12.0.40501-amdgpu:i386 but it is not going to be installed
mesa-amdgpu-va-drivers : Depends: libllvm12.0.40501-amdgpu but it is not going to be installed
mesa-amdgpu-va-drivers:i386 : Depends: libllvm12.0.40501-amdgpu:i386 but it is not going to be installed

Here is a screenshot of what Discover is telling me when I try to update anything:

Off topic:

  1. If anyone is familiar with Kubuntu and has suggestions on hardware monitors, especially widgets I can put on a side panel that hides when I want it to, suggestions are welcome.
  2. Was getting weird artifacting when I tried running Classic WoW with just the 5700G, no GPU installed. Was hoping I could give the card to my room mate who’s taking my old computer and I"ll just run on integrated graphics till I order a new GPU in a couple weeks. Has anyone had any experience with the 5700G?

I have no idea what is going on but something is very broken at this point. I figured I’d uninstall vlc and reinstall it to see if that did anything, but the system is failing to even remove the package.

When I tried to uninstall vlc via command line, I got the same readout that I posted in the summery above. But then this happened:

Summary

rose@rose-desktop:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
libdbusmenu-gtk3-4 libllvm11 libllvm12.0-amdgpu libllvm12.0-amdgpu:i386 xul-ext-ubufox
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
gst-omx-amdgpu libgl1-amdgpu-mesa-dri libgl1-amdgpu-mesa-dri:i386 libllvm12.0.40501-amdgpu libllvm12.0.40501-amdgpu:i386
mesa-amdgpu-omx-drivers mesa-amdgpu-vdpau-drivers mesa-amdgpu-vdpau-drivers:i386 xserver-xorg-amdgpu-video-amdgpu
Suggested packages:
libglide3 libglide3:i386
Recommended packages:
libtxc-dxtn-s2tc0 | libtxc-dxtn0 libtxc-dxtn-s2tc0:i386 | libtxc-dxtn0:i386
The following NEW packages will be installed:
libllvm12.0.40501-amdgpu libllvm12.0.40501-amdgpu:i386
The following packages will be upgraded:
gst-omx-amdgpu libgl1-amdgpu-mesa-dri libgl1-amdgpu-mesa-dri:i386 mesa-amdgpu-omx-drivers mesa-amdgpu-vdpau-drivers
mesa-amdgpu-vdpau-drivers:i386 xserver-xorg-amdgpu-video-amdgpu
7 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
7 not fully installed or removed.
Need to get 0 B/57.3 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 219050 files and directories currently installed.)
Preparing to unpack …/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_amd64.deb …
Unpacking libllvm12.0.40501-amdgpu:amd64 (1:12.0.40501-1337797) …
dpkg: error processing archive /var/cache/apt/archives/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_amd64.deb (–unpack):
trying to overwrite ‘/opt/amdgpu/lib/x86_64-linux-gnu/llvm-12.0/lib/libLLVM-12.so’, which is also in package libllvm12.0-amdgpu:amd64 1:12.0-1271047
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack …/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_i386.deb …
Unpacking libllvm12.0.40501-amdgpu:i386 (1:12.0.40501-1337797) …
dpkg: error processing archive /var/cache/apt/archives/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_i386.deb (–unpack):
trying to overwrite ‘/opt/amdgpu/lib/i386-linux-gnu/llvm-12.0/lib/libLLVM-12.so’, which is also in package libllvm12.0-amdgpu:i386 1:12.0-1271047
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_amd64.deb
/var/cache/apt/archives/libllvm12.0.40501-amdgpu_1%3a12.0.40501-1337797_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try adding the kisak-mesa PPA. That version of Mesa is actually tested by Valve. If you have broken packages, you may want to start again and add that PPA before any other updates from a fresh install.

You can also try KDE Neon to see if that might not have as may issues.

Hey, thanks for the reply. I’ve been out of state for several days so I didn’t get around to checking the forums till now.

I talked to my room mate about it. He thinks I broke something in the kernal when I unnecessarily tried to manually install updated drivers (new version of Kubuntu did not need my input to have working drivers out of the box).

Because I had just did a fresh install and didn’t have anything to lose other than a couple hours, I just redid the OS and started fresh before I left town.

I would still try the kisak PPA as it’s the most up to date stable Mesa tested by Valve.