在 Ubuntu 16.04LTS 上安装 ZFS

在 Ubuntu 16.04LTS 上安装 ZFS

我最近将我的家庭服务器从 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.

答案1

不知何故,您破坏了依赖关系,这就是 zfs 无法安装的原因。您的 zfs ppa 是否仍处于活动状态?使用更新管理器删除 ppa 即可摆脱它们。

在 16.04LTS 中,zfs 是标准安装。

使用sudo apt clean,然后sudo apt update重新开始。执行下一步apt purge zfs*,但确保除了 zfs 之外没有其他东西被删除!

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

相关内容