包 [zfsnap] 安装不正确 - 是什么?

包 [zfsnap] 安装不正确 - 是什么?

在 Ubuntu Xenial 服务器上,安装时zfsnap出现错误状态0。但是,软件包未正确安装:

$ zfsnap
zfsnap: command not found
$
$ sudo dpkg -p zfsnap
dpkg-query: package 'zfsnap' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
$
$ sudo dpkg -s zfsnap
Package: zfsnap
Status: install ok installed
Priority: extra
Section: admin
Installed-Size: 80
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Version: 1.11.1-3
Depends: zfs-fuse | zfsutils | zfs, bc

这里有什么内容(或我应该看看的其他内容)可以表明为什么该软件包不能正常工作吗?


以下是apt安装的输出:

$ sudo apt install zfsnap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bc
The following NEW packages will be installed:
  bc zfsnap
0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded.
Need to get 97.9 kB of archives.
After this operation, 328 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://il.archive.ubuntu.com/ubuntu xenial/main amd64 bc amd64 1.06.95-9build1 [82.6 kB]
Get:2 http://il.archive.ubuntu.com/ubuntu xenial/universe amd64 zfsnap all 1.11.1-3 [15.4 kB]
Fetched 97.9 kB in 1s (69.7 kB/s)
Selecting previously unselected package bc.
(Reading database ... 175968 files and directories currently installed.)
Preparing to unpack .../bc_1.06.95-9build1_amd64.deb ...
Unpacking bc (1.06.95-9build1) ...
Selecting previously unselected package zfsnap.
Preparing to unpack .../zfsnap_1.11.1-3_all.deb ...
Unpacking zfsnap (1.11.1-3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up bc (1.06.95-9build1) ...
Setting up zfsnap (1.11.1-3) ...
$ echo $?
0

答案1

您可以使用以下命令查看软件包中包含的文件列表

dpkg-query -L zfsnap

要查看可用的命令,在本例中你可以搜索 /usr/bin 或 /usr/sbin:

dpkg-query -L zfsnap|grep /usr/sbin

编辑:用花哨的正则表达式捕获所有内容;)

dpkg-query -L zfsnap|egrep "(/usr)*/(s*)bin"

答案2

»» $ zfsnap
zfsnap: command not found ««

zfsnap 软件包提供/usr/sbin/zfSnap:请注意大写年代赞吧

拼写,1)阅读文件列表dpkg -L zfsnap 2)在线阅读http://packages.ubuntu.com/xenial/all/zfsnap/filelist

相关内容