• 【Unity实战】在RHEL 9上安装UnityHub


    一般来说,Unity编辑器的安装,官方已经给出了安装教程。

     

    但是这个忽略了RHEL 9的一个特性:默认的加解密策略已经不支持SHA1了,你会在执行yum install unityhub那里出现如下报错:

    1. [shepherd@localhost ~]$ sudo yum install unityhub
    2. \Last metadata expiration check: 0:00:05 ago on Mon 01 Jul 2024 12:39:57 AM CST.
    3. Dependencies resolved.
    4. ================================================================================
    5. Package Architecture Version Repository Size
    6. ================================================================================
    7. Installing:
    8. unityhub x86_64 3.8.0-1 unityhub 110 M
    9. Installing dependencies:
    10. libXScrnSaver x86_64 1.2.3-10.el9 appstream 25 k
    11. Transaction Summary
    12. ================================================================================
    13. Install 2 Packages
    14. Total download size: 110 M
    15. Installed size: 434 M
    16. Is this ok [y/N]: y
    17. Is this ok [y/N]: y
    18. Downloading Packages:
    19. (1/2): libXScrnSaver-1.2.3-10.el9.x86_64.rpm 42 kB/s | 25 kB 00:00
    20. (2/2): unityhub-x86_64-3.8.0.rpm 8.4 MB/s | 110 MB 00:13
    21. --------------------------------------------------------------------------------
    22. Total 7.8 MB/s | 110 MB 00:14
    23. Unity Hub 3.2 kB/s | 3.1 kB 00:00
    24. Importing GPG key 0x34E8243F:
    25. Userid : "Unity Technologies ApS "
    26. Fingerprint: A08C A7CD 4D00 6A41 28EC 2850 BE3E 6EA5 34E8 243F
    27. From : https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key
    28. Is this ok [y/N]: y
    29. Key imported successfully
    30. warning: Signature not supported. Hash algorithm SHA1 not available.
    31. warning: Signature not supported. Hash algorithm SHA1 not available.
    32. Import of key(s) didn't help, wrong key(s)?
    33. Problem opening package unityhub-x86_64-3.8.0.rpm. Failing package is: unityhub-3.8.0-1.x86_64
    34. GPG Keys are configured as: https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key
    35. The downloaded packages were saved in cache until the next successful transaction.
    36. You can remove cached packages by executing 'yum clean packages'.
    37. Error: GPG check FAILED

    解决方法很简单,将默认的crypto策略改称SHA1即可。 

    1. [shepherd@localhost ~]$ sudo update-crypto-policies --set DEFAULT:SHA1
    2. Setting system policy to DEFAULT:SHA1
    3. Note: System-wide crypto policies are applied on application start-up.
    4. It is recommended to restart the system for the change of policies
    5. to fully take place.

    然后重试命令。

  • 相关阅读:
    LeetCode 90 双周赛
    【环境搭建】linux docker-compose安装mysql5.7
    19、架构-虚拟化容器
    新手做独立站需要掌握哪些技能
    工业企业网络推广解决方案 | 网络营销专家分享 | 上海添力
    依赖的aar包跟项目jdk版本不一致问题
    基于Paddle的手写数字识别模型
    集成并查集
    Java学习笔记 --- 构造器
    什么是Java中的“内存屏障“(Memory Barrier)?它们有什么作用?
  • 原文地址:https://blog.csdn.net/u012587406/article/details/140089258