首页 > 系统相关 >Linux下安装Unity3d时可能会遇到的问题,以及解决方案

Linux下安装Unity3d时可能会遇到的问题,以及解决方案

时间:2022-12-04 12:55:41浏览次数:63  
标签:Unity3d Hub 解决方案 sudo add apt Unity Linux

未经许可禁止转载,不制造互联网垃圾,从你我做起

本人Linux环境:Mint Linux 21

从Unity官方源下载unity

官方文档

Debian or Ubuntu

Installing:

To install the Unity Hub on a Debian or Ubuntu Linux distribution, you need to add the Unity Hub Debian repository along with the public signing key to verify the integrity of the packages.

To add the Unity Hub repository, you need an entry in /etc/apt/sources.list.

Run the following command to add the Unity Hub repository:

$ sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'

To add the public signing key, run the following command:

$ wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -

Then update the package cache and install the package using:

$ sudo apt update
$ sudo apt-get install unityhub
Uninstalling the Hub:

To remove the Unity Hub from the system, run the following command:

$ sudo apt-get remove unityhub

UnityHub无法启动,如何安装UnityHub的openssl依赖

在启动UnityHub时,在有些Linux发行版上,UnityHub会卡在转圈的界面,这是因为缺少一个依赖,如果在终端中启动unityhub,会看到如下报错

ERROR: Licensing SDK logging callback is not registered. 
Please use 'registerLoggingAdapter' function from the SDK to do so.

在论坛中有人贴出了解决办法,原帖链接第20楼

Got the same error after upgrading to Ubuntu 22
Installing openssl 1.1 did not work for me
Installing libssl1.1 did work -
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

libssl1.1安装完毕后重启电脑,如果不出意外,unityhub就可以使用了

如果还是不能使用那我也没办法,愿伟大的开源之神保佑这个被Bug折磨的可怜孩子


VSCode中,没有Unity代码提示

Tips:默认读者已经做了以下几件事情

  1. 在UnityEditor中,在External Tools中选中了VSCode作为代码编辑器
  2. 安装了VSCode的C#拓展
  3. 安装了最新的dotnet-sdk(老版本没尝试过,本人使用的是dotnet-6.0-sdk)
  4. 安装了mono

原帖中,给出的解决办法是在C#拓展中搜索设置Use Globle Mono,并将参数修改为always

但如果你用的是最新版本的C#拓展,那么是没有这个选项的

我的解决办法是,将C#拓展降级到一年前的版本,这样就可以找到这个选项

降级方法:

在插件菜单点击C#拓展右下角小齿轮,选择安装另一个版本,找到一个有着Use Globle Mono设置的版本

标签:Unity3d,Hub,解决方案,sudo,add,apt,Unity,Linux
From: https://www.cnblogs.com/hellofriland/p/16949681.html

相关文章

  • dwc3 linux usb3.0 driver架构
    USB控制器1.DRDdriverDRD驱动在usb/dwc31.1dtsdwc3@44000000{/*CompatibleIDusedbytheLinuxdriverforthiskindofdevice*/compatible="snps,dwc......
  • QEMU虚拟开发板 与 嵌入式Linux装机步骤
    2、下面是使用QEMU虚拟开发板,安装的工具http://wiki.100ask.org/QemuA、安装KVM可选的(注意,如果想要有更快的效果,在ubuntu下可以安装KVM):安装kvm加速qemu运行,在终端下......
  • Linux下BMP图片截图
    Linux下BMP图片截图    MP是英文Bitmap(位图)的简写,它是Windows操作系统中的标准图像文件格式,能够被多种Windows应用程序所支持。随着Windows操作系统的流行与丰富的Wind......
  • [Linux]-----进程信号
    文章目录​​前言​​​​一、什么是信号​​​​我们是如何得知这些信号呢?​​​​我们知道对应的信号产生时,要做什么呢?​​​​二、进程信号​​​​前台进程和后台进程​......
  • LINUX安装openssl
    openssl官网下载​​https://www.openssl.org/source/old/​​1、解压openssl包:tar-xzfopenssl-1.1.1n.tar.gz2、得到openssl-1.1.1n目录,然后进入openssl-1.1.1n目录中......
  • Linux下查看电脑硬件及系统信息
    一、查看CPU信息1.查看CPU的统计信息:       lscpu2.查看CPU的详细信息:       cat/proc/cpuinfo二、内存信息1.查看内存使用情况:       ......
  • SELinux相关包
    https://github.com/SELinuxProject/selinux/wiki#SELinuxUserspaceThisistheupstreamrepositoryforthe SecurityEnhancedLinux(SELinux) userlandlibrarie......
  • 07Linux的那点事
    使用记录【闲】磁盘占用内存占用持续记录中.........
  • 在linux虚拟机中运行python
    在linux虚拟机中运行python方法1:运用python指令运行一般情况linux系统会自动安装python所以在终端中输入python3就自动进入python的交互模式输入ctrl+z退出交互模式......
  • Linux基础-学会使用命令帮助
    概述使用whatis使用man查看命令程序路径which总结参考资料概述Linux命令及其参数繁多,大多数人都是无法记住全部功能和具体参数意思的。在linux终端,面对命令......