无法在 ubuntu 20.04 上找到软件包 mesa

无法在 ubuntu 20.04 上找到软件包 mesa

我跟着itsfoss 上的指南在我的 dell optiplex 9020 上安装 mesa。原因是我想在 Jellyfin 中使用硬件加速,这显然需要 mesa。

我使用添加了 kisak reposudo add-apt-repository ppa:kisak/kisak-mesa 然后我使用sudo apt update 但是,当我使用sudo apt install mesa(如指南所建议的那样)时,我只收到一条unable to locate package mesa消息。

似乎已启用使用apt policykisak repo。我还启用了 multiverse、main、restricted 和 universe 存储库。

使用glxinfo | grep Mesa; lscpi -k; lspci -k | grep -Ei "video|vga|3d" -A2; apt-cache policy mesa-utils; dpkg -l | grep -i mesa给了我这个输出:

Error: unable to open display

00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
        Subsystem: Dell 4th Gen Core Processor DRAM Controller
        Kernel driver in use: hsw_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
        Kernel driver in use: pcieport
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family USB xHCI
        Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family MEI Controller
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:16.3 Serial controller: Intel Corporation 8 Series/C220 Series Chipset Family KT Controller (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family KT Controller
        Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
        DeviceName:  Onboard LAN
        Subsystem: Dell Ethernet Connection I217-LM
        Kernel driver in use: e1000e
        Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family USB EHCI
        Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset High Definition Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family USB EHCI
        Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation Q87 Express LPC Controller (rev 04)
        Subsystem: Dell Q87 Express LPC Controller
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich
00:1f.2 RAID bus controller: Intel Corporation SATA Controller [RAID mode] (rev 04)
        DeviceName:  Onboard SATA controller #1
        Subsystem: Dell SATA Controller [RAID mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
        Subsystem: Dell 8 Series/C220 Series Chipset Family SMBus Controller
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 / Radeon 520 OEM]
        Subsystem: Dell Oland [Radeon HD 8570 / R7 240/340 / Radeon 520 OEM]
        Kernel driver in use: radeon
        Kernel modules: radeon, amdgpu
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
        Subsystem: Dell Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 / Radeon 520 OEM]
        Subsystem: Dell Oland [Radeon HD 8570 / R7 240/340 / Radeon 520 OEM]
        Kernel driver in use: radeon

>mesa-utils:
  Installed: 8.4.0-1build1
  Candidate: 8.4.0-1build1
  Version table:
 *** 8.4.0-1build1 500
        500 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
ii  libegl-mesa0:amd64                   20.2.6-0ubuntu0.20.04.1               amd64        free implementation of the EGL API -- Mesa vendor library
ii  libgl1-mesa-dri:amd64                20.2.6-0ubuntu0.20.04.1               amd64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:amd64                  20.2.6-0ubuntu0.20.04.1               amd64        free implementation of the GL API -- shared library
ii  libglx-mesa0:amd64                   20.2.6-0ubuntu0.20.04.1               amd64        free implementation of the OpenGL API -- GLX vendor library
ii  mesa-utils                           8.4.0-1build1                         amd64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:amd64                20.2.6-0ubuntu0.20.04.1               amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64             20.2.6-0ubuntu0.20.04.1               amd64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:amd64            20.2.6-0ubuntu0.20.04.1               amd64        Mesa Vulkan graphics drivers

答案1

  • 我只在通过 ssh 登录时看到命令。尝试在正常登录后在终端窗口中使用该Error: unable to open display命令glxinfo

  • 您无法安装,mesa因为没有名为该名称的包。

  • 您正在使用的“指南”无法按书面形式工作,因为没有名为的包mesa

  • 当您将其中一个 ppa 添加到系统时,系统上和 ppa 中存在的所有软件包都将被 ppa 版本替换。要实现这一点,请在添加 ppa 后sudo apt update执行以下命令sudo apt upgrade。您不必专门安装软件包即可实现这一点。这是使用 ppa 的风险之一。

  • 我将kisakppa 添加到运行 mesa 的虚拟机中。--
    在添加它之前,glxinfo | grep Mesa报告OpenGL version string: 3.1 Mesa 21.0.1

    --添加它并执行更新和升级后,相同的命令报告OpenGL version string: 3.1 Mesa 21.1.1 - kisak-mesa PPA我没有执行任何sudo apt install mesa命令。

    ——以下软件包已更新和/或添加。

在此处输入图片描述

简而言之,您不需要“安装 mesa”即可从该 ppa 获取 Mesa 的升级版本。添加 ppa,执行更新和升级即可。

相关内容