Ubuntu 20.04(焦点窝)

Ubuntu 20.04(焦点窝)

我正在打字

mar@Android-4311:~$ sudo apt-get install vulkan-sdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package vulkan-sdk

always E: Unable to locate package vulkan-sdk

我不知道我必须要做什么?

答案1

Ubuntu 20.04(焦点窝)

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

来源:LunarG 文档


请原谅重复的答案,但我想将链接发布为评论,但还没有足够的声誉:)

答案2

有两个 LTS 版本的存储库,在apt install工作之前必须执行这两行

  • 要添加存储库的密钥:

    wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
    
  • Ubuntu 18.04 (Bionic Beaver):

    sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-bionic.list http://packages.lunarg.com/vulkan/lunarg-vulkan-bionic.list
    
  • 或 Ubuntu 20.04 (Focal Fossa):

    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

相关内容