VIM4 Remove GPU Package

In order to have better desktop experience, the Ubuntu OS has Wayland GPU support by default.

But in some situations, this may break some software, so we provide a way to uninstall the GPU package here to use CPU rendering.

Ubuntu 22.04

sudo apt remove linux-gpu-mali-wayland
sudo apt install --reinstall libegl1-mesa  libegl1  libgles2  libgles2-mesa  libegl1-mesa-dev  libgles2-mesa-dev  libglvnd-dev  libgles1  libwayland-dev  mesa-common-dev  libgl-dev  libegl-dev libgles-dev libgbm-dev  libgbm1  libwayland-egl1
sync
sudo reboot

If it still not working please try the extra steps below:

cd /tmp
wget http://ports.ubuntu.com/pool/main/g/gst-plugins-base1.0/libgstreamer-gl1.0-0_1.20.1-1ubuntu0.2_arm64.deb
sudo dpkg -i libgstreamer-gl1.0-0_*_arm64.deb
sync
sudo reboot

Ubuntu 24.04

sudo apt remove linux-gpu-mali-wayland
sudo apt reinstall  libegl1  libgles2   libegl1-mesa-dev  libgles2-mesa-dev  libglvnd-dev  libgles1  libwayland-dev  mesa-common-dev  libgl-dev  libegl-dev libgles-dev libgbm-dev  libgbm1  libwayland-egl1
sync
sudo reboot