If you want to force-install the latest Mesa drivers from the Kisak PPA (targeting Ubuntu Noble 24.04) on an older Ubuntu release (like 22.04 Jammy), you can do so by manually adding the PPA and pinning it. However, this is highly risky and may break your system due to dependency conflicts.
Steps to Force Install Newer Mesa from Noble (24.04) on Jammy (22.04)
1. Add the Kisak PPA for Noble (24.04)
sudo add-apt-repository -y ppa:kisak/kisak-mesa
If the PPA doesn't automatically detect the correct release, manually add it:
echo "deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/kisak-mesa-noble.list
2. Add the GPG Key (if missing)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB4C7FDE2C175D5A
3. Pin the PPA to Force Higher Priority
Create a pinning file to ensure the PPA packages are preferred:
sudo tee /etc/apt/preferences.d/99-kisak-mesa-pin <<EOF
Package: *
Pin: release o=LP-PPA-kisak-kisak-mesa
Pin-Priority: 1001
EOF
4. Update & Install Mesa Packages
sudo apt update
sudo apt install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
mesa-utils libgl1-mesa-dri libglx-mesa0 libgbm1 libegl-mesa0 libglapi-mesa0 \
mesa-vulkan-drivers mesa-va-drivers libosmesa6
5. Fix Broken Dependencies (if needed)
If you get dependency errors, try:
sudo apt --fix-broken install
sudo dpkg --configure -a
Alternative: Manually Download & Install .deb Files
If the PPA method fails, you can manually download the .deb files from the PPA and install them with dpkg -i:
- Visit: https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa
- Select the Noble (24.04) packages.
- Download the required
.deb files and install them with:
sudo dpkg -i *.deb
sudo apt --fix-broken install
Warnings & Risks
- Dependency Hell: Newer Mesa may require newer versions of
libdrm, llvm, or other libraries.
- System Instability: If dependencies conflict, your system may fail to boot or lose graphical output.
- No Official Support: This is unsupported and may break future updates.
Recovery Options
Would you like help with a specific issue if something breaks?