User Tools

Site Tools


ubuntu:gpu:mesa:install_mesa_utilities:install_the_ernst_sjoestrand_-_mesa_almost_stable_driver:uninstall

Ubuntu - GPU - Mesa - Install Mesa Utilities - Install the Ernst Sjöstrand - Mesa Almost Stable driver - Uninstall

After purging the Ernst Sjöstrand - Mesa Almost Stable driver PPA, the system still uses the packages from that PPA.

Trying to remove those packages can result in the entire system losing graphic interface.


To confirm that the Ernst Sjöstrand - Mesa Almost Stable driver packages are still being used

dpkg -l | grep mesarc2

returns:

ii  libegl-mesa0:amd64                         23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        free implementation of the EGL API -- Mesa vendor library
ii  libegl-mesa0:i386                          23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 i386         free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa-dev:amd64                     23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        free implementation of the EGL API -- development files
ii  libgbm1:amd64                              23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        generic buffer management API -- runtime
ii  libgbm1:i386                               23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 i386         generic buffer management API -- runtime
ii  libglx-mesa0:amd64                         23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        free implementation of the OpenGL API -- GLX vendor library
ii  libglx-mesa0:i386                          23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 i386         free implementation of the OpenGL API -- GLX vendor library
ii  libosmesa6:amd64                           23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                            23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 i386         Mesa Off-screen rendering extension
ii  libxatracker2:amd64                        23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        X acceleration library -- runtime
ii  mesa-common-dev:amd64                      23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 amd64        Developer documentation for Mesa

NOTE: This shows that even though the PPA is removed, the system still holds onto the Ernst Sjöstrand - Mesa Almost Stable driver packages.


The Problem

If we try to remove one or more of these packages, such as:

sudo apt purge libegl-mesa0

returns:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apg apturl-common cheese-common dctrl-tools dkms docbook-xml evolution-data-server-common gir1.2-accountsservice-1.0 gir1.2-adw-1 gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-3.0 gir1.2-graphene-1.0 gir1.2-gtk-4.0 gir1.2-gweather-3.0 gir1.2-javascriptcoregtk-4.0 gir1.2-json-1.0 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-rsvg-2.0 gir1.2-snapd-1
  gir1.2-totem-1.0 gir1.2-totemplparser-1.0 gir1.2-upowerglib-1.0 gkbd-capplet gnome-bluetooth-3-common gnome-control-center-faces gnome-session-common gnome-todo-common gnome-video-effects grilo-plugins-0.3-base gstreamer1.0-pipewire libasound2-dev libblkid-dev libcamel-1.2-63 libcddb2 libclutter-1.0-common libcogl-common libcolord-gtk1 libdazzle-1.0-0 libdazzle-common
  libdbus-1-dev libdca0 libdecor-0-dev libdmapsharing-3.0-2 libdouble-conversion3 libdvbpsi10 libdvdnav4 libebackend-1.2-10 libebml5 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-26 libfaad2 libfluidsynth3 libfreerdp-server2-2 libgdm1 libgl1-amber-dri libgles1 libgles2 libglib2.0-dev libglib2.0-dev-bin
  libglu1-mesa libglu1-mesa-dev libglvnd-core-dev libgnome-bluetooth-3.0-13 libgnome-todo libgnomekbd-common libgnomekbd8 libgom-1.0-0 libgpod-common libgpod4 libgrilo-0.3-0 libgsound0 libgssdp-1.2-0 libgupnp-1.2-1 libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 libibus-1.0-dev libinput-bin libinput10 libinstpatch-1.0-2 libixml10 libjavascriptcoregtk-4.0-18 libkate1 liblirc-client0
  liblua5.3-0 libluajit-5.1-2 libluajit-5.1-common libmad0 libmanette-0.2-0 libmatroska7 libmbedcrypto7 libmbedtls14 libmbedx509-1 libmd4c0 libmediaart-2.0-0 libmodplug1 libmount-dev libmpcdec6 libmtdev1 libopengl-dev libopengl0 libopenmpt-modplug1 libopusfile0 libpcre16-3 libpcre2-16-0 libpcre2-dev libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libphonenumber8
  libplacebo192 libportmidi0 libprotobuf-lite23 libprotobuf23 libproxy-tools libpugixml1v5 libpulse-dev libqt5core5a libqt5dbus5 libqt5network5 libqt5xml5 libquazip5-1 libraw20 libresid-builder0c2a librest-0.7-0 librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libsdl-image1.2 libsdl1.2debian libsdl2-image-2.0-0 libsdl2-mixer-2.0-0
  libsdl2-ttf-2.0-0 libselinux1-dev libsepol-dev libsgutils2-2 libsidplay2 libsndio-dev libsoup-3.0-0 libsoup-3.0-common libspatialaudio0 libssh2-1 libsysmetrics1 libtext-engine-0.1-0 libtotem0 libudev-dev libupnp13 libutf8proc2 libvlc-bin libvlc5 libvlccore9 libvncserver1 libwoff1 libxcb-composite0 libxcb-ewmh2 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-res0
  libxcb-screensaver0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcb-xv0 libxkbcommon-dev libxkbcommon-x11-0 libxklavier16 linux-headers-5.15.0-60 linux-headers-5.15.0-60-generic linux-image-5.15.0-60-generic linux-modules-5.15.0-60-generic linux-modules-extra-5.15.0-60-generic mame-data mobile-broadband-provider-info network-manager-gnome policykit-1-gnome
  power-profiles-daemon python3-certifi python3-macaroonbakery python3-mako python3-markupsafe python3-protobuf python3-pymacaroons python3-requests python3-rfc3339 python3-tz qttranslations5-l10n rygel sgml-base sgml-data shotwell-common switcheroo-control timgm6mb-soundfont totem-common vlc-bin vlc-data vlc-l10n vlc-plugin-access-extra vlc-plugin-base vlc-plugin-notify
  vlc-plugin-samba vlc-plugin-video-splitter vlc-plugin-visualization x11-apps x11-session-utils x11-xkb-utils xbitmaps xcvt xdg-dbus-proxy xfonts-base xfonts-scalable xinit xinput xml-core xserver-common xserver-xephyr xserver-xorg-legacy xserver-xorg-video-amdgpu xwayland yelp-xsl zenity-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  policykit-1-gnome
The following packages will be REMOVED:
  amdgpu-lib* amdgpu-lib32* apturl* cheese* ckb-next* evolution-data-server* gdm3* gir1.2-gst-plugins-base-1.0* gir1.2-mutter-10* gir1.2-rb-3.0* gir1.2-webkit2-4.0* gnome-calendar* gnome-control-center* gnome-initial-setup* gnome-online-accounts* gnome-remote-desktop* gnome-session-bin* gnome-shell* gnome-shell-extension-appindicator* gnome-shell-extension-desktop-icons-ng*
  gnome-shell-extension-manager* gnome-shell-extension-ubuntu-dock* gnome-startup-applications* gnome-todo* gnome-user-docs* gstreamer1.0-clutter-3.0* gstreamer1.0-gl* gstreamer1.0-gtk3* libcheese-gtk25* libcheese8* libclutter-1.0-0* libclutter-gst-3.0-0* libclutter-gtk-1.0-0* libcogl-pango20* libcogl-path20* libcogl20* libdbusmenu-qt5-2* libedataserverui-1.2-3* libegl-dev*
  libegl-mesa0* libegl1* libegl1-amdgpu-mesa* libegl1-amdgpu-mesa-drivers* libegl1-mesa-dev* libgles-dev* libglvnd-dev* libgoa-backend-1.0-1* libgstreamer-gl1.0-0* libmutter-10-0* libobs0* libqt5gui5* libqt5svg5* libqt5widgets5* libqt5x11extras5* libsdl2-dev* libsdl2-image-dev* libsdl2-mixer-dev* libsdl2-ttf-dev* libwebkit2gtk-4.0-37* libyelp0* mame* mesa-utils*
  mesa-utils-bin* nautilus-share* obs-plugins* obs-studio* qt5-gtk-platformtheme* rhythmbox-plugins* shotwell* totem* totem-plugins* ubuntu-desktop* ubuntu-desktop-minimal* ubuntu-docs* ubuntu-release-upgrader-gtk* ubuntu-session* update-manager* update-notifier* vlc* vlc-plugin-qt* vlc-plugin-skins2* vlc-plugin-video-output* xorg* xserver-xorg*
  xserver-xorg-amdgpu-video-amdgpu* xserver-xorg-core* xserver-xorg-input-all* xserver-xorg-input-libinput* xserver-xorg-input-wacom* xserver-xorg-video-all* xserver-xorg-video-ati* xserver-xorg-video-fbdev* xserver-xorg-video-intel* xserver-xorg-video-nouveau* xserver-xorg-video-qxl* xserver-xorg-video-radeon* xserver-xorg-video-vesa* xserver-xorg-video-vmware* yelp* zenity*
The following NEW packages will be installed:
  policykit-1-gnome
0 upgraded, 1 newly installed, 100 to remove and 4 not upgraded.

ALERT: This wants to remove a huge amount of packages, including xserver and the ubuntu-desktop.

  • Definitely not what we want.
    • CANCEL out of this!!!

The Fix

ALERT: Ensure that the kisak PPA is configured.

sudo dpkg --configure --pending

NOTE: This may show some packages that are problematic.

  • If so, then follow the next instructions to also download those packages too.

Download Package Files Manually

Download each of those packages manually from the kisak site.

  • Expand the mesa package for the specific installation being used.
    • For example, if using Ubuntu jammy, expand mesa - 23.1.2~kisak1~j.
  • Against each of the packages needed, determine the package .deb file name.
    • Ignore any .ddeb files.
  • Download that file using wget.

For example:

wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287312/+files/libglapi-mesa_23.1.2~kisak1~j_i386.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287312/+files/libegl-mesa0_23.1.2~kisak1~j_i386.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287312/+files/libgbm1_23.1.2~kisak1~j_i386.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287312/+files/libglx-mesa0_23.1.2~kisak1~j_i386.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287312/+files/libosmesa6_23.1.2~kisak1~j_i386.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libegl-mesa0_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libegl1-mesa-dev_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libgbm1-dev_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libgbm1_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libglx-mesa0_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libosmesa6_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/libxatracker2_23.1.2~kisak1~j_amd64.deb
wget https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/26287309/+files/mesa-common-dev_23.1.2~kisak1~j_amd64.deb

NOTE: Notice that some of the .deb package files are amd64 and some are i386.

  • It is important to download both types, as per what is shown with:
    dpkg -l | grep mesarc2

Force Install

Install the downloaded .deb package files, with force.

sudo dpkg --force-all -i libegl-mesa0_23.1.2~kisak1~j_amd64.deb libegl1-mesa-dev_23.1.2~kisak1~j_amd64.deb libegl-mesa0_23.1.2~kisak1~j_i386.deb libgbm1_23.1.2~kisak1~j_amd64.deb libgbm1_23.1.2~kisak1~j_i386.deb libglx-mesa0_23.1.2~kisak1~j_amd64.deb libglx-mesa0_23.1.2~kisak1~j_i386.deb libosmesa6_23.1.2~kisak1~j_amd64.deb libosmesa6_23.1.2~kisak1~j_i386.deb libxatracker2_23.1.2~kisak1~j_amd64.deb mesa-common-dev_23.1.2~kisak1~j_amd64.deb

returns:

dpkg: warning: downgrading libegl-mesa0:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
(Reading database ... 280302 files and directories currently installed.)
Preparing to unpack libegl-mesa0_23.1.2~kisak1~j_amd64.deb ...
De-configuring libegl-mesa0:i386 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2), to allow configuration of libegl-mesa0:amd64 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
Unpacking libegl-mesa0:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libegl1-mesa-dev:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libegl1-mesa-dev_23.1.2~kisak1~j_amd64.deb ...
Unpacking libegl1-mesa-dev:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libegl-mesa0:i386 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libegl-mesa0_23.1.2~kisak1~j_i386.deb ...
Unpacking libegl-mesa0:i386 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libgbm1:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libgbm1_23.1.2~kisak1~j_amd64.deb ...
De-configuring libgbm1:i386 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2), to allow configuration of libgbm1:amd64 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
Unpacking libgbm1:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libgbm1:i386 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libgbm1_23.1.2~kisak1~j_i386.deb ...
Unpacking libgbm1:i386 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libglx-mesa0:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libglx-mesa0_23.1.2~kisak1~j_amd64.deb ...
De-configuring libglx-mesa0:i386 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2), to allow configuration of libglx-mesa0:amd64 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
Unpacking libglx-mesa0:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libglx-mesa0:i386 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libglx-mesa0_23.1.2~kisak1~j_i386.deb ...
Unpacking libglx-mesa0:i386 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libosmesa6:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libosmesa6_23.1.2~kisak1~j_amd64.deb ...
De-configuring libosmesa6:i386 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2), to allow configuration of libosmesa6:amd64 (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
Unpacking libosmesa6:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libosmesa6:i386 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libosmesa6_23.1.2~kisak1~j_i386.deb ...
Unpacking libosmesa6:i386 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading libxatracker2:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack libxatracker2_23.1.2~kisak1~j_amd64.deb ...
Unpacking libxatracker2:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
dpkg: warning: downgrading mesa-common-dev:amd64 from 23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2 to 23.1.2~kisak1~j
Preparing to unpack mesa-common-dev_23.1.2~kisak1~j_amd64.deb ...
Unpacking mesa-common-dev:amd64 (23.1.2~kisak1~j) over (23.1.2+git2306081617.1c6f2ef1f98~j~mesarc2) ...
Setting up libegl1-mesa-dev:amd64 (23.1.2~kisak1~j) ...
Setting up libgbm1:amd64 (23.1.2~kisak1~j) ...
Setting up libgbm1:i386 (23.1.2~kisak1~j) ...
Setting up libglx-mesa0:amd64 (23.1.2~kisak1~j) ...
Setting up libglx-mesa0:i386 (23.1.2~kisak1~j) ...
Setting up libosmesa6:amd64 (23.1.2~kisak1~j) ...
Setting up libosmesa6:i386 (23.1.2~kisak1~j) ...
Setting up libxatracker2:amd64 (23.1.2~kisak1~j) ...
Setting up mesa-common-dev:amd64 (23.1.2~kisak1~j) ...
Setting up libegl-mesa0:amd64 (23.1.2~kisak1~j) ...
Setting up libegl-mesa0:i386 (23.1.2~kisak1~j) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...

NOTE: The –force-all option forces the installation of these packages, which results in the Ernst Sjöstrand - Mesa Almost Stable driver packages being overridden by the kisak1 packages.


Check that the Ernst Sjöstrand - Mesa Almost Stable drivers have been removed

dpkg -l | grep mesarc2

returns:

 

NOTE: An empty response shows that those drivers have gone.

  • They have been replaced by the kisak1 drivers.

Check that the kisak1 packages are installed

dpkg -l | grep kisak1

returns:

ii  libegl-mesa0:amd64                         23.1.2~kisak1~j                          amd64        free implementation of the EGL API -- Mesa vendor library
ii  libegl-mesa0:i386                          23.1.2~kisak1~j                          i386         free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa-dev:amd64                     23.1.2~kisak1~j                          amd64        free implementation of the EGL API -- development files
ii  libgbm1:amd64                              23.1.2~kisak1~j                          amd64        generic buffer management API -- runtime
ii  libgbm1:i386                               23.1.2~kisak1~j                          i386         generic buffer management API -- runtime
ii  libgl1-mesa-dri:amd64                      23.1.2~kisak1~j                          amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-dri:i386                       23.1.2~kisak1~j                          i386         free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:amd64                        23.1.2~kisak1~j                          amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                         23.1.2~kisak1~j                          i386         free implementation of the GL API -- shared library
ii  libglx-mesa0:amd64                         23.1.2~kisak1~j                          amd64        free implementation of the OpenGL API -- GLX vendor library
ii  libglx-mesa0:i386                          23.1.2~kisak1~j                          i386         free implementation of the OpenGL API -- GLX vendor library
ii  libosmesa6:amd64                           23.1.2~kisak1~j                          amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                            23.1.2~kisak1~j                          i386         Mesa Off-screen rendering extension
ii  libxatracker2:amd64                        23.1.2~kisak1~j                          amd64        X acceleration library -- runtime
ii  mesa-common-dev:amd64                      23.1.2~kisak1~j                          amd64        Developer documentation for Mesa
ii  mesa-va-drivers:amd64                      23.1.2~kisak1~j                          amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64                   23.1.2~kisak1~j                          amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:amd64                  23.1.2~kisak1~j                          amd64        Mesa Vulkan graphics drivers

NOTE: This confirms that all these packages are using kisak1 drivers.


sudo apt update
sudo apt upgrade
ubuntu/gpu/mesa/install_mesa_utilities/install_the_ernst_sjoestrand_-_mesa_almost_stable_driver/uninstall.txt · Last modified: 2023/06/12 01:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki