ZFS安装在Ubuntu 16.04LTS上

我最近将家用服务器表格14.04LTS升级到16.04 LTS。 ZFS工作正常,这个盒子成功地提供了我的samba共享并充当了KODI服务器和最终用户(我成功地运行了SQL数据库并且在房子周围有多个节点)。

也许我做错了,但重启后ZFS不再启动并运行,我不得不尝试重新安装它。 我已经尝试过关注我在网上的所有信息都无济于事。 下面是我得到的输入和输出。

所有帮助都预先准备好了。

sudo apt install zfs Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'zfsutils-linux' instead of 'zfs' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: zfsutils-linux : Depends: zfs-doc (= 0.6.5.6-0ubuntu14) but 0.6.5.7-1~trusty is to be installed Depends: libnvpair1linux but it is not going to be installed Depends: libuutil1linux but it is not going to be installed Depends: libzfs2linux but it is not going to be installed Depends: libzpool2linux but it is not going to be installed Recommends: zfs-zed but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

不知何故,你已经破坏了依赖关系,这就是zfs无法安装的原因。 你还有zfs ppa活跃吗? 通过使用更新管理器删除ppa来摆脱它们。

使用16.04LTS,zfs处于标准安装状态。

使用sudo apt clean ,然后sudo apt update重新开始。 做一个apt purge zfs* next,但要确保除了zfs之外别的东西都被删除了!

sudo apt-get install zfsutils-linux是您重新安装zfs所需的全部内容。 确保通过zpool import mypoolname导入旧池,如果之前未导出,请使用-f开关。