安装 Leap Motion Orion 时出现问题

安装 Leap Motion Orion 时出现问题

我在安装 Leap Motion Orion 时遇到了一些问题。我尝试按如下方式安装它:

cd Downloads/
cd Leap_Motion_Installer_Packages_release_public_linux/
sudo dpkg --install Leap-2.3.1+31549-x64.deb 

错误信息:

dpkg --install Leap-2.3.1+31549-x64.deb 
(Reading database ... 280274 files and directories currently installed.)
Preparing to unpack Leap-2.3.1+31549-x64.deb ...
Failed to stop leapd.service: Unit leapd.service not loaded.
Unpacking leap (2.3.1+31549) over (2.3.1+31549) ...
removed '/etc/init.d/leapd'
Setting up leap (2.3.1+31549) ...
Leap Motion installed under /usr/bin and /usr/sbin
Failed to start leapd.service: Unit leapd.service not found.
dpkg: error processing package leap (--install):
subprocess installed post-installation script returned error exit status 5
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
leap

答案1

Leap 仍然是为 upstart 设置的,最近从 upstart 转移到 systemd 导致一些像 Leap 这样的软件包无法安装。

请按照以下步骤操作:

sudo nano /lib/systemd/system/leapd.service
sudo ln -s /lib/systemd/system/leapd.service /etc/systemd/system/leapd.service
sudo systemctl daemon-reload
sudo dpkg --install Leap-2.3.1+31549-x64.deb

leapd.service文件:

[Unit]
Description=LeapMotion Daemon
After=syslog.target

[Service]
Type=simple
ExecStart=/usr/sbin/leapd

[Install]
WantedBy=multi-user.target

安装完成后可以看到:

Check Leap Motion daemon with: service leapd status 
Open the Leap Motion GUI with: LeapControlPanel 
See /usr/share/Leap/README.linux for more information

来源

相关内容