在 Ubuntu 16.04 上安装 Unity3d

Eis*_*eim 12 16.04

根据这篇博客文章,我应该能够为 Ubuntu 安装 .deb 版本的 Unity 编辑器。我有推荐的系统要求。但是当我尝试使用 .deb 文件安装时,sudo dpkg -i mydebfile.deb我收到以下错误:

Selecting previously unselected package unity-editor.
(Reading database ... 175283 files and directories currently installed.)
Preparing to unpack unity-editor-5.3.4f1 20160503_amd64.deb ...
Unpacking unity-editor (5.3.4f1) ...
dpkg: dependency problems prevent configuration of unity-editor:
 unity-editor depends on lib32gcc1 (>= 1:4.1.1); however:
  Package lib32gcc1 is not installed.
 unity-editor depends on lib32stdc++6 (>= 4.6); however:
  Package lib32stdc++6 is not installed.
 unity-editor depends on libc6-i386 (>= 2.15); however:
  Package libc6-i386 is not installed.
 unity-editor depends on libpq5; however:
  Package libpq5 is not installed.
 unity-editor depends on npm; however:
  Package npm is not installed.

dpkg: error processing package unity-editor (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 unity-editor
Run Code Online (Sandbox Code Playgroud)

有人在 Ubuntu 16.04 上成功安装了 Unity3d 吗?如果可以的话请帮忙。

编辑:有人问我如何通过命令行安装 .deb 文件的问题解决了我的问题。答案是:不,它没有。该问题中的答案可能会帮助人们学习如何修复损坏的依赖项,sudo apt-get -f install但这并没有解决我的问题。我不得不一个一个安装每个丢失的包(见下面的评论)。所以,我认为如果问题被标记为重复,来这里解决同样问题的人将无法知道他们必须手动安装软件包。

Ben*_*nny 6

下载

Unity 为 Ubuntu 提供官方支持

您可以随时获得最新版本的Unity3D

向下滚动页面以获取最新版本。


安装


dob*_*bey 4

dpkg -i命令不会解析依赖项并从apt存储库中提取它们。您需要使用Ubuntu 软件应用程序安装该软件包,或者您需要apt-get install在终端中手动列出列出的依赖项,以便安装它们并unity-editor.deb满足文件的依赖项。

  • 我相信在安装 DEB 后运行 sudo apt-get install -f 将会安装它的依赖项。 (6认同)
  • @dobey 为什么不在这里粘贴安装所有 Unity3D 依赖项的命令?我认为这对其他人可能有用? (2认同)