我想在 Ubuntu 20.04 上安装 Open3D,但出现以下错误。我该如何解决?
mona@goku:~$ wget https://github.com/intel-isl/Open3D/releases/download/v0.12.0/open3d-app-0.12.0-Ubuntu_20.04.deb
--2021-01-28 19:03:24-- https://github.com/intel-isl/Open3D/releases/download/v0.12.0/open3d-app-0.12.0-Ubuntu_20.04.deb
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/75413130/8cd1a380-4e88-11eb-9639-e33b0a383434?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210129%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210129T000324Z&X-Amz-Expires=300&X-Amz-Signature=5f04a7b6d5eee8340ea6f3ebaf8fb2ac5a949d2e1bbfba71bcac6a3eea365a11&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=75413130&response-content-disposition=attachment%3B%20filename%3Dopen3d-app-0.12.0-Ubuntu_20.04.deb&response-content-type=application%2Foctet-stream [following]
--2021-01-28 19:03:24-- https://github-releases.githubusercontent.com/75413130/8cd1a380-4e88-11eb-9639-e33b0a383434?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210129%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210129T000324Z&X-Amz-Expires=300&X-Amz-Signature=5f04a7b6d5eee8340ea6f3ebaf8fb2ac5a949d2e1bbfba71bcac6a3eea365a11&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=75413130&response-content-disposition=attachment%3B%20filename%3Dopen3d-app-0.12.0-Ubuntu_20.04.deb&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.111.154, 185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 110120788 (105M) [application/octet-stream]
Saving to: ‘open3d-app-0.12.0-Ubuntu_20.04.deb’
open3d-app-0.12.0-Ubuntu_20.04.d 100%[=========================================================>] 105.02M 5.11MB/s in 22s
2021-01-28 19:03:47 (4.74 MB/s) - ‘open3d-app-0.12.0-Ubuntu_20.04.deb’ saved [110120788/110120788]
mona@goku:~$ sudo dpkg -i open3d-app-0.12.0-Ubuntu_20.04.deb
[sudo] password for mona:
Selecting previously unselected package open3d-viewer.
(Reading database ... 408548 files and directories currently installed.)
Preparing to unpack open3d-app-0.12.0-Ubuntu_20.04.deb ...
Unpacking open3d-viewer (0.12.0) ...
dpkg: dependency problems prevent configuration of open3d-viewer:
open3d-viewer depends on libc++1; however:
Package libc++1 is not installed.
open3d-viewer depends on libglfw3; however:
Package libglfw3 is not installed.
dpkg: error processing package open3d-viewer (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.15-1) ...
Errors were encountered while processing:
open3d-viewer
mona@goku:~$ sudo apt install libc++1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc++1 : Depends: libc++1-10 (>= 10~) but it is not going to be installed
libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed
open3d-viewer : Depends: libglfw3 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
mona@goku:~$ sudo apt --fix-broken install libc++1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc++1 : Depends: libc++1-10 (>= 10~) but it is not going to be installed
libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed
open3d-viewer : Depends: libglfw3 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
在没有第三方存储库的全新 Ubuntu 20.04 LTS 系统上,您必须使用 apt 安装此软件包才能解决依赖关系:
上述软件包集将不需要
libpng12
.在您当前的情况下,您必须提供有关使用的依赖项的其他信息。