[SOLVED]Cannot install vulkan-sdk

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
ShinShin
Level 1
Level 1
Posts: 31
Joined: Fri Feb 07, 2014 4:01 pm
Location: Tokyo, Japan

[SOLVED]Cannot install vulkan-sdk

Post by ShinShin »

OS: Linux Mint 20.3 (Una) Cinnamon 64 bit version
CPU: AMD Ryzen 9 3900
GPU: AMD Radeon RX 6600 XT
GPU Driver: Radeon Software for Linux installer version 22.10.2 for Ubuntu 20.04.4

Please allow my poor English.
According to the official docmentation of Getting Started with the Ubuntu Vulkan SDK,
I succeeded

Code: Select all

$ wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
$ sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list
$ sudo apt update
.

Then I typed
$ LANG=C sudo apt install vulkan-sdk

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vulkan-sdk : Depends: vulkan-headers (>= 1.3.216.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ 
So I typed
$ LANG=C sudo apt install vulkan-headers

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libvulkan-dev
The following NEW packages will be installed:
  vulkan-headers
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 981 kB of archives.
After this operation, 42.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://packages.lunarg.com/vulkan focal/main amd64 vulkan-headers all 1.3.216.0~rc1-1lunarg20.04-1 [981 kB]
Fetched 981 kB in 2s (616 kB/s)         
(Reading database ... 689517 files and directories currently installed.)
Removing libvulkan-dev:amd64 (1.3.216.0-0ubuntu1~20.04.sav0) ...
Selecting previously unselected package vulkan-headers.
(Reading database ... 689461 files and directories currently installed.)
Preparing to unpack .../vulkan-headers_1.3.216.0~rc1-1lunarg20.04-1_all.deb ...
Unpacking vulkan-headers (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up vulkan-headers (1.3.216.0~rc1-1lunarg20.04-1) ...
$ 
And then I typed again
$ LANG=C sudo apt install vulkan-sdk

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vulkan-sdk : Depends: libvulkan-dev (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-via (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-vkconfig (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-vulkan-layers (>= 1.3.216.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ 
So I typed
$ LANG=C sudo apt install libvulkan-dev lunarg-via lunarg-vkconfig lunarg-vulkan-layers

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  vulkan-validationlayers
The following packages will be REMOVED:
  vulkan-headers
The following NEW packages will be installed:
  libvulkan-dev lunarg-via lunarg-vkconfig lunarg-vulkan-layers
  vulkan-validationlayers
0 upgraded, 5 newly installed, 1 to remove and 0 not upgraded.
Need to get 7969 kB of archives.
After this operation, 50.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://packages.lunarg.com/vulkan focal/main amd64 vulkan-validationlayers amd64 1.3.216.0~rc1-1lunarg20.04-1 [4232 kB]
Get:2 http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu focal/main amd64 libvulkan-dev amd64 1.3.216.0-0ubuntu1~20.04.sav0 [971 kB]
Get:3 https://packages.lunarg.com/vulkan focal/main amd64 lunarg-via amd64 1.3.216.0~rc1-1lunarg20.04-1 [151 kB]
Get:4 https://packages.lunarg.com/vulkan focal/main amd64 lunarg-vkconfig amd64 1.3.216.0~rc1-1lunarg20.04-1 [760 kB]
Get:5 https://packages.lunarg.com/vulkan focal/main amd64 lunarg-vulkan-layers amd64 1.3.216.0~rc1-1lunarg20.04-1 [1853 kB]
Fetched 7969 kB in 3s (2485 kB/s)          
(Reading database ... 689515 files and directories currently installed.)
Removing vulkan-headers (1.3.216.0~rc1-1lunarg20.04-1) ...
Selecting previously unselected package libvulkan-dev:amd64.
(Reading database ... 689461 files and directories currently installed.)
Preparing to unpack .../libvulkan-dev_1.3.216.0-0ubuntu1~20.04.sav0_amd64.deb ..
.
Unpacking libvulkan-dev:amd64 (1.3.216.0-0ubuntu1~20.04.sav0) ...
Selecting previously unselected package vulkan-validationlayers.
Preparing to unpack .../vulkan-validationlayers_1.3.216.0~rc1-1lunarg20.04-1_amd
64.deb ...
Unpacking vulkan-validationlayers (1.3.216.0~rc1-1lunarg20.04-1) ...
Selecting previously unselected package lunarg-via.
Preparing to unpack .../lunarg-via_1.3.216.0~rc1-1lunarg20.04-1_amd64.deb ...
Unpacking lunarg-via (1.3.216.0~rc1-1lunarg20.04-1) ...
Selecting previously unselected package lunarg-vkconfig.
Preparing to unpack .../lunarg-vkconfig_1.3.216.0~rc1-1lunarg20.04-1_amd64.deb .
..
Unpacking lunarg-vkconfig (1.3.216.0~rc1-1lunarg20.04-1) ...
Selecting previously unselected package lunarg-vulkan-layers.
Preparing to unpack .../lunarg-vulkan-layers_1.3.216.0~rc1-1lunarg20.04-1_amd64.
deb ...
Unpacking lunarg-vulkan-layers (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up libvulkan-dev:amd64 (1.3.216.0-0ubuntu1~20.04.sav0) ...
Setting up vulkan-validationlayers (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up lunarg-vulkan-layers (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up lunarg-vkconfig (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up lunarg-via (1.3.216.0~rc1-1lunarg20.04-1) ...
$ 
And then I typed again
$ LANG=C sudo apt install vulkan-sdk

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vulkan-sdk : Depends: vulkan-headers (>= 1.3.216.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ 
So I typed
$ LANG=C sudo apt install vulkan-headers

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  vulkan-validationlayers
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  libvulkan-dev lunarg-via lunarg-vkconfig lunarg-vulkan-layers
The following NEW packages will be installed:
  vulkan-headers
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 981 kB of archives.
After this operation, 14.2 MB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 https://packages.lunarg.com/vulkan focal/main amd64 vulkan-headers all 1.3.216.0~rc1-1lunarg20.04-1 [981 kB]
Fetched 981 kB in 1s (729 kB/s)         
(Reading database ... 689539 files and directories currently installed.)
Removing lunarg-via (1.3.216.0~rc1-1lunarg20.04-1) ...
Removing lunarg-vulkan-layers (1.3.216.0~rc1-1lunarg20.04-1) ...
Removing lunarg-vkconfig (1.3.216.0~rc1-1lunarg20.04-1) ...
Removing libvulkan-dev:amd64 (1.3.216.0-0ubuntu1~20.04.sav0) ...
Selecting previously unselected package vulkan-headers.
(Reading database ... 689466 files and directories currently installed.)
Preparing to unpack .../vulkan-headers_1.3.216.0~rc1-1lunarg20.04-1_all.deb ...
Unpacking vulkan-headers (1.3.216.0~rc1-1lunarg20.04-1) ...
Setting up vulkan-headers (1.3.216.0~rc1-1lunarg20.04-1) ...
$ 
And then I typed again
$ LANG=C sudo apt install vulkan-sdk

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vulkan-sdk : Depends: libvulkan-dev (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-via (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-vkconfig (>= 1.3.216.0~rc1) but it is not going to be installed
              Depends: lunarg-vulkan-layers (>= 1.3.216.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ 
These are looping.
So I could not install vulkan-sdk successfully.
Please tell me how to install vulkan-sdk completely.
Last edited by LockBot on Fri Jan 06, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
OS:Linux Mint 21.1 (Vera) Cinnamon 64bit, CPU:AMD Ryzen9 5900X, MEMORY:32GB, M.2 NVMe SSD:1TB, HDD:40TB, GPU:AMD Radeon RX 6800 XT
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: Cannot install vulkan-sdk

Post by trytip »

if you already have the key installed:
this is what i have for my /etc/apt/sources.list.d/lunarg-vulkan-1.3.216-bionic.list

Code: Select all

deb https://packages.lunarg.com/vulkan/1.3.216 bionic main
you can change bionic for focal
every time there an update all i do is change the name of the file to reflect the version ex. change 1.3.211 with 1.3.216 then apt update

if you have more than one base repo bionic and focal you get conflicted
Image
User avatar
ShinShin
Level 1
Level 1
Posts: 31
Joined: Fri Feb 07, 2014 4:01 pm
Location: Tokyo, Japan

Re: [SOLVED]Cannot install vulkan-sdk

Post by ShinShin »

Thank you, Mr. trytip!

I've resolved this problem.

First I deleted LunarG packages on Terminal. And then I deleted LunarG repositories by GUI like the following steps.
1. Open the "Update Manager" window. Click "Edit". Select "Software Source".
2. Click "Additional Repository". Delete two "Lunarg / focal".
3. Click "???? Key". ???? is in Japanese. I don't know its English word, Sorry. Delete "LunarG Signing Key".
4. Click "Maintenance". Select "Downgrade external packages". Downgrade packages including "lunarg".

Then I installed vulkan-sdk again by the following commands.

Code: Select all

wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list
sudo apt update
sudo apt install vulkan-sdk
I could install vulkan-sdk completely without the error.

Thank you for reading!
OS:Linux Mint 21.1 (Vera) Cinnamon 64bit, CPU:AMD Ryzen9 5900X, MEMORY:32GB, M.2 NVMe SSD:1TB, HDD:40TB, GPU:AMD Radeon RX 6800 XT
Locked

Return to “Software & Applications”