amdgpu is built into the kernel. you should never have to install it.
You might need packages for Xorg/Wayland, or Vulkan or EGL, or whatever, but it shouldn’t be installed with a script like that.
Don’t take this the wrong way, but you strike me as someone new to Linux. I say that because you’re stuck in the windows (or mac) style mentality of:
- go to website for program
- download installer for program
- run installer.
Whereas, 99.9999% of programs and tools that you will use on Linux are as follows:
- use package manager to search for program/tool name
- install package with package manager.
If you get in this mindset, you’ll allow the package manager to use it’s built-in safeties to prevent you from having a damaged system.
Now with that said, I’m going to ask that you have a install USB ready, because my next suggestions could leave you with a system that will boot, but won’t start the graphical interface, and at that point, it’s sometimes easier to reinstall. (also backup personal stuff in /home
)
Now, if you’re feeling up to it, let’s remove these packages:
sudo dpkg -r libegl1-amdgpu-mesa:amd64 libegl1-amdgpu-mesa:i386 libwayland-amdgpu-client0:amd64 libwayland-amdgpu-client0:i386 mesa-amdgpu-va-drivers:amd64 mesa-amdgpu-va-drivers:i386 libllvm7.0-amdgpu:amd64 libllvm7.0-amdgpu:i386 amdgpu-lib32 amdgpu-dkms xserver-xorg-amdgpu-video-amdgpu mesa-amdgpu-vdpau-drivers:amd64 mesa-amdgpu-vdpau-drivers:i386 glamor-amdgpu:amd64 libgbm1-amdgpu:amd64 libgbm1-amdgpu:i386 libglapi-amdgpu-mesa:amd64 libglapi-amdgpu-mesa:i386 libgles1-amdgpu-mesa:amd64 libgles1-amdgpu-mesa:i386 libxatracker2-amdgpu:amd64 libxatracker2-amdgpu:i386 libosmesa6-amdgpu:amd64 libosmesa6-amdgpu:i386 libgles2-amdgpu-mesa:amd64 libgles2-amdgpu-mesa:i386 libgl1-amdgpu-mesa-dri:amd64 libgl1-amdgpu-mesa-dri:i386 libdrm-amdgpu-common libwayland-amdgpu-server0:amd64 libwayland-amdgpu-server0:i386 amdgpu-lib gst-omx-amdgpu mesa-amdgpu-omx-drivers:amd64 libegl1-amdgpu-mesa-drivers:amd64 libegl1-amdgpu-mesa-drivers:i386 libwayland-amdgpu-egl1:amd64 libwayland-amdgpu-egl1:i386 libdrm2-amdgpu:amd64 libdrm2-amdgpu:i386 amdgpu libgl1-amdgpu-mesa-glx:amd64 libgl1-amdgpu-mesa-glx:i386 libdrm-amdgpu-amdgpu1:amd64 libdrm-amdgpu-amdgpu1:i386
Basically, what we’re doing here is removing all those packages (hopefully, they’re only packages that were installed by the amdgpu-install
script).
Once you’re done with that, go ahead and run the following:
sudo apt -f install
Let’s see if that throws a fit. If it doesn’t, let’s make sure the system is not going to break on reboot by doing the following:
sudo apt install ubuntu-desktop
ubuntu-desktop
is a metapackage that has dependencies for everything you need for a functional system. If the amdgpu-install script removed anything critical, this should reinstall it.
If nothing errors out, go ahead and give it a reboot while crossing your fingers, your kids fingers, your dogs fingers and your pet rock’s fingers.