(I have no experience with recent AMD support on Debian so my answer will be a bit generic.)
I would do something like this:
Run dpkg -l '*mesa*'|grep ^.i
to list the installed packages which have "mesa" in their names.
Uninstall that AMD thing using whatever method fits best (purging looks like a good approach).
Re-check what mesa-related packages you still have installed.
If anything seems to be gone compared to the list obtained on step 1, install it by apt install
.
Note that all APT operations get logged in /var/log/apt/history.log
, so if purging that AMD stuff leaves you w/o graphics (you did not tell which precisely—no way to run X and/or Wayland or no 3D (OpenGL)), a way to recover is to read the tail part of that log file to find out what packages were uninstalled and try installing back those which look relevant.
Also note that the problem might be not with Mesa but with plain X.org driver for AMD hardware—Buster has at least the following packages which provide drivers for AMD video cards:
xserver-xorg-video-amdgpu
: X.Org X server — AMDGPU display driver
xserver-xorg-video-ati
: X.Org X server — AMD/ATI display driver wrapper
xserver-xorg-video-radeon
: X.Org X server — AMD/ATI Radeon display driver
…and it may so happen that that AMD thing you've installed declares a conflict on any/all of these packages so they get uninstalled when that thing is installed, and to regain F/OSS driver for your card you need to install some of these packages.
I can get a console, but no graphics (recovery mode only) – The Renaissance – 2019-10-27T14:28:47.890
Your answer helped me get to something that worked. In the end, using just
apt remove amdgpu*
and installing some other drivers worked. I want to detail the process in case anyone else is suffering from similar issues, but I want you to know that this really helped me get there. Thanks! – The Renaissance – 2019-10-27T15:41:04.543