vulkan ubuntu 18.04 upgrade problems: the road to happiness

Maybe I should make “The Road To Happiness” a series or something, but I’ve been having some knotty little problems with getting the Vulkan SDK working since upgrading from my old Ubuntu 16.04 installation to the nice, shiny new Ubuntu 18.04. One of the helpful things that happened was that my Vulkan SDK I downloaded from the LunarG site got royally rogered, and I needed to reinstall.

So a nice sudo apt purge lunarg-vulkan-sdk and an autoremove, followed by adding the Bionic Beaver apt list and it should work, right? No… instead I get this:

The following packages have unmet dependencies:
lunarg-vulkan-sdk : Depends: libvulkan-dev (>= 1.1.80) but 1.1.80-xenial is to be installed
E: Unable to correct problems, you have held broken packages

Oh, goody. So I tried deleting the list, readding the list, reinstalling it but no, that error insisted on carrying on popping up. I was at my wits end. Then I remembered that while apt might not work, aptitude’s command line interface had managed to resolve such errors in the past.

So after that, I installed aptitude (for those who don’t know, sudo apt install aptitude), and then doing sudo aptitude install lunarg-vulkan-sdk caused aptitude to kick into life and do its awesome little fixy-thing whereby it manages to resolve broken packages. It asked me if I wanted to keep everything at current version, I answered “y” (or fuck yes) and then it just went ahead and installed everything neatly. Or so I thought – the Ubuntu 18.04 upgrade had blitzed my ICD install too!

Well, after I did sudo apt install mesa-vulkan-drivers, I typed vkcube and…

vkcube

Never have I been so happy to see a simple rotating cube appear on my screen. So this blog post (and a return to my blog!) is the result of about an hour of frustration… and there you have it – the road to happiness for when your Vulkan SDK files get fucked upgrading to Ubuntu 18.04!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s