Flatpak 安装 Nvidia 驱动 403 错误解决记录

问题

flatpak install flathub org.freedesktop.Platform.GL.nvidia-550-90-07
寻找匹配项…
在多个安装中发现远程仓库“flathub”:

   1) system
   2) user

您要使用哪个(0 为放弃)? [0-2]: 1


        ID                                                       分支             操作            远程               下载
 1. [✗] org.freedesktop.Platform.GL.nvidia-550-90-07             1.4              i               flathub            1.1 kB / 308.7 MB

错误:下载 https://us.download.nvidia.com/XFree86/Linux-x86_64/550.90.07/NVIDIA-Linux-x86_64-550.90.07.run 时:Server returned status 403
错误: 安装 org.freedesktop.Platform.GL.nvidia-550-90-07 失败:下载 https://us.download.nvidia.com/XFree86/Linux-x86_64/550.90.07/NVIDIA-Linux-x86_64-550.90.07.run 时:Server returned status 403

参考下载链接路径

/home/debian/应用/Applications/Nvidia_GPU_Drivers/Drivers/XFree86/Linux-x86_64/550.144.03/

开启http文件服务

python3 -m http.server 8443 --bind 0.0.0.0 --directory /home/debian/应用/Applications/Nvidia_GPU_Drivers/Drivers 

手动安装

参考(镜像)
参考

  • 克隆项目后将内部所有文本文件的"https://us.download.nvidia.com/“全部替换成"http://localhost:8443/”
  • 按照参考执行命令
  • user 安装完成后可查看system有没有
  • 记得安装GL和GL32两个包

system 添加(也许非必要)

生成 GPG 密钥对(需安装 gnupg)
gpg --full-generate-key  # 按提示操作生成密钥
导出公钥到仓库目录
gpg --output repo/public.gpg --export <密钥ID,一般为完整指纹的后 ​8 位>
  • 参照参考去除“–user”添加本地源
应对错误
flatpak remote-add --gpg-import=repo/public.gpg nvidia-local repo/
错误: GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable)
  • 编辑/var/lib/flatpak/repo/config,其中一项配置修改为"gpg-verify-summary=false"
    • 参考
[core]
repo_version=1
mode=bare-user-only
min-free-space-size=500MB
xa.pinned=runtime/org.freedesktop.Platform.GL.nvidia-515-105-01/x86_64/1.4;runtime/org.freedesktop.Platform.GL.nvidia-535-183-01/x86_64/1.4;runtime/org.freedesktop.Platform.GL.nvidia-570-86-16/x86_64/1.4;runtime/org.freedesktop.Platform.GL32.nvidia-515-105-01/x86_64/1.4;runtime/org.freedesktop.Platform.GL32.nvidia-535-183-01/x86_64/1.4;runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/24.08

[remote "flathub"]
url=https://mirror.sjtu.edu.cn/flathub
xa.title=Flathub
gpg-verify=true
gpg-verify-summary=false
xa.comment=Central repository of Flatpak applications
xa.description=Central repository of Flatpak applications
xa.icon=https://dl.flathub.org/repo/logo.svg
xa.homepage=https://flathub.org/
url-is-set=true
  • 添加源后即可安装

安装后测试

参考
参考(镜像)

  • 从软件包里提取vulkaninfo至当前目录
flatpak run --command=$PWD/vulkaninfo --filesystem=$PWD:ro com.valvesoftware.Steam --summary 
……省略……
Devices:
========
GPU0:
        apiVersion         = 1.2.296
        driverVersion      = 24.3.4
        vendorID           = 0x8086
        deviceID           = 0x041a
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Intel(R) HD Graphics P4600/P4700 (HSW GT2)
        driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
        driverName         = Intel open-source Mesa driver
        driverInfo         = Mesa 24.3.4 (git-769e51468b)
        conformanceVersion = 0.0.0.0
        deviceUUID         = 86801a04-0600-0000-0400-000000000000
        driverUUID         = 8d5c0afb-9feb-71f3-7ae5-84f470e00e3e
GPU1:
        apiVersion         = 1.3.277
        driverVersion      = 550.144.3.0
        vendorID           = 0x10de
        deviceID           = 0x1bb0
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = GRID P40-2B
        driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
        driverName         = NVIDIA
        driverInfo         = 550.144.03
        conformanceVersion = 1.3.7.2
        deviceUUID         = 4117988e-0bb1-11f0-b5e1-60a00300f2fc
        driverUUID         = 38474641-f375-59a9-952e-301ac330fdac
GPU2:
        apiVersion         = 1.3.296
        driverVersion      = 0.0.1
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_CPU
        deviceName         = llvmpipe (LLVM 19.1.7, 256 bits)
        driverID           = DRIVER_ID_MESA_LLVMPIPE
        driverName         = llvmpipe
        driverInfo         = Mesa 24.3.4 (git-769e51468b) (LLVM 19.1.7)
        conformanceVersion = 1.3.1.1
        deviceUUID         = 6d657361-3234-2e33-2e34-000000000000
        driverUUID         = 6c6c766d-7069-7065-5555-494400000000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值