我已经从https://desktime.com/download但它被下载为我电脑中的一个文件夹,我无法安装它。有人知道这背后的原因吗?
我尝试使用以下命令通过终端进行安装
wget https://desktime.com/updates/linux/install/desktime-linux_5.1.30_x64.deb
HTTP request sent, awaiting response... 200 OK
Length: 46990814 (45M) [application/vnd.debian.binary-package]
Saving to: ‘desktime-linux_5.1.30_x64.deb’
desktime-linux_5.1.30_x64.deb 100%[===============================================================================================================>] 44.81M 8.44MB/s in 6.3s
2021-04-14 10:39:38 (7.09 MB/s) - ‘desktime-linux_5.1.30_x64.deb’ saved [46990814/46990814]
Downloads$ ls | grep desktime-linux_5.1.30_x64.deb
desktime-linux_5.1.30_x64.deb
sudo dpkg -i desktime-linux_5.1.30_x64.deb
(Reading database ... 244160 files and directories currently installed.)
Preparing to unpack desktime-linux_5.1.30_x64.deb ...
Unpacking desktime-linux (5.1.30-1) over (5.1.30-1) ...
Setting up desktime-linux (5.1.30-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
安装正常,但当我检查版本时,出现以下错误
desktime-linux --version
(desktime-linux:9886): Gtk-WARNING **: 11:03:10.575: cannot open display:
我也尝试过以下命令
sudo apt-get install -f
请帮忙,并随时添加任何评论
提前致谢
答案1
您对错误信息的解释
(desktime-linux:9886): Gtk-WARNING **: 11:03:10.575: cannot open display:
生成的代码desktime-linux --version
不正确。应用程序已安装,但需要声明 DISPLAY 变量。
此应用程序设计为在具有图形会话的系统上运行。它具有/usr/share/applications/desktime-linux.desktop
绑定到的名为 的桌面文件/usr/bin/desktime-linux
。该应用程序基于 Electron,因此它是 GUI 应用程序。
所以你必须切换到桌面环境然后运行desktime-linux
应用程序。