我从 .deb 包安装了 bbk-cli
eddie@laptop:~/Downloads$ sudo apt install ./bbk-cli_1.0.0_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'bbk-cli' instead of './bbk-cli_1.0.0_amd64.deb'
The following NEW packages will be installed:
bbk-cli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/209 kB of archives.
After this operation, 503 kB of additional disk space will be used.
Get:1 /home/eddie/Downloads/bbk-cli_1.0.0_amd64.deb bbk-cli amd64 1.0.0 [209 kB]
Selecting previously unselected package bbk-cli.
(Reading database ... 292678 files and directories currently installed.)
Preparing to unpack .../bbk-cli_1.0.0_amd64.deb ...
Unpacking bbk-cli (1.0.0) ...
Setting up bbk-cli (1.0.0) ...
据我所知,它安装正确。但是当我尝试运行它时,发生了这种情况
eddie@laptop:~/Downloads$ bbk-cli
Command 'bbk-cli' not found, but can be installed with:
sudo snap install bbk-cli
我知道我可以通过 snap 移除并安装它,但是有没有办法不使用 snap 而是从已经安装的包中运行它?
编辑:我也尝试使用 dpkg 安装,结果相同
eddie@laptop:~/Downloads$ sudo dpkg -i ./bbk-cli_1.0.0_amd64.deb
Selecting previously unselected package bbk-cli.
(Reading database ... 292678 files and directories currently installed.)
Preparing to unpack ./bbk-cli_1.0.0_amd64.deb ...
Unpacking bbk-cli (1.0.0) ...
Setting up bbk-cli (1.0.0) ...
eddie@laptop:~/Downloads$ bbk-cli
Command 'bbk-cli' not found, but can be installed with:
sudo snap install bbk-cli
应@user535733 的要求编辑 II:
eddie@laptop:~/Downloads$ sudo dpkg -l bbk-cli
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-======================================
ii bbk-cli 1.0.0 amd64 Measurement client for Bredbandskollen
答案1
您安装了某个bbk-cli
软件包,似乎期望它会为您提供一个同名的可执行文件,并安装在您路径的某个目录中。但事实并非如此,在本例中,确实没有发生这种情况。
您描述的症状表明
你从某个未指定的来源下载的软件包确实安装正确
该软件包没有安装可执行文件
bbi-cli
。可执行文件的名称是什么,您需要从文档中找出答案。或者,该命令
dpkg -L bbi-cli
将列出所有已安装的文件。安装在系统路径目录中的文件(通常/usr/bin
,但也可能位于其他地方)是您可以通过在命令行中键入其名称来运行的可执行文件。
答案2
我刚刚.deb
从本网站bbk_cli
进入主目录中的新文件夹
然后我打开了 Nautilus,进入bbk_cli
文件夹,右键单击并选择“使用软件安装打开”,输入我的密码,然后安装就没问题了。
然后我bbk_cli
在终端中输入了以下输出(请注意下划线是不是与减号相同)
raffles@raffles-MS-7917:~$ bbk_cli
Start: 2022-07-17 18:36:40
Network operator: GVA-Canalbox
Support ID: mmo207d12952
Latency: 178.777 ms
Download: 15.073 Mbit/s
Upload: 14.868 Mbit/s
Measurement ID: 417725462
我不喜欢快照,很快就会更新原因。
这段视频将让你深入了解 Snap切换到Linux