Je ne parviens pas à installer ZFS sur une installation d'Ubuntu récemment mise à niveau du 14.04 au 16.04. J'espérais que la mise à niveau résoudrait un problème avec zfs que j'avais alors où ni zpool
ni zfs
ne seraient exécutés.
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-0ubuntu16) but 0.6.5.9-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
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.
J'ai essayé d'installer manuellement les dépendances listées ainsi qu'un apt clean
et autoclean
.
la case à cocher indiquant que le logiciel (univers) libre et à source ouvert géré par la communauté est coché dans Software Updater
Je serais reconnaissant pour tout conseil sur la façon de déboguer plus loin et/ou de le résoudre. J'ai trouvé des rapports similaires sur SE et ailleurs, mais aucune des suggestions ne fonctionnait pour moi.
J'ai aussi essayé 'Essayez de télécharger zfs-doc à partir d'ici. Tous les autres forfaits semblent en dépendre. Vous pouvez l'installer en lançant dpkg -i 'mais vous obtenez les erreurs suivantes:
systemctl status zfs-mount.service
● zfs-mount.service - Mount ZFS filesystems
Loaded: loaded (/lib/systemd/system/zfs-mount.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-05-28 11:49:35 BST; 1min 34s ago
Process: 5358 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
Main PID: 5358 (code=exited, status=1/FAILURE)
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: Starting Mount ZFS filesystems...
May 28 11:49:35 codecowboy-P5E3-Premium zfs[5358]: The ZFS modules are not loaded.
May 28 11:49:35 codecowboy-P5E3-Premium zfs[5358]: Try running '/sbin/modprobe zfs' as root to load them.
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: Failed to start Mount ZFS filesystems.
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Unit entered failed state.
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
codecowboy@codecowboy-P5E3-Premium:~/Downloads$ Sudo sbin/modprobe zfs
Sudo: sbin/modprobe: command not found
codecowboy@codecowboy-P5E3-Premium:~/Downloads$ Sudo /sbin/modprobe zfs
modprobe: ERROR: could not insert 'zfs': Invalid argument
codecowboy@codecowboy-P5E3-Premium:~/Downloads$ Sudo journalctl -xe
May 28 11:49:35 codecowboy-P5E3-Premium systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
May 28 11:49:48 codecowboy-P5E3-Premium Sudo[30638]: pam_unix(Sudo:session): session closed for user root
May 28 11:50:01 codecowboy-P5E3-Premium cron[1029]: (*system*zfsutils-linux) RELOAD (/etc/cron.d/zfsutils-linux)
May 28 11:51:38 codecowboy-P5E3-Premium Sudo[11155]: codecowboy : TTY=pts/1 ; PWD=/home/codecowboy/Downloads ; USER=root ; COMMAND=/sbin/modprobe z
May 28 11:51:38 codecowboy-P5E3-Premium Sudo[11155]: pam_unix(Sudo:session): session opened for user root by codecowboy(uid=0)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_init
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_init (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_close
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_close (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol cv_timedwait_hires
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol cv_timedwait_hires (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_seek
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_seek (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_destroy
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_destroy (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_timedwait_sig
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_timedwait_sig (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol rootdir
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol rootdir (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_close_file
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_close_file (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_read_file
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_read_file (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_delete
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_delete (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_open
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_open (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_open_file
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_open_file (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_getf
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_getf (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol kobj_get_filesize
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol kobj_get_filesize (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_fsync
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_fsync (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_getattr
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_getattr (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait_sig
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait_sig (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_install
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_install (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_signal
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_signal (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_rdwr
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_rdwr (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_wait_io
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_wait_io (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_create
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_create (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __cv_broadcast
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __cv_broadcast (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol vn_openat
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol vn_openat (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: disagrees about version of symbol __kstat_set_raw_ops
May 28 11:51:38 codecowboy-P5E3-Premium kernel: zfs: Unknown symbol __kstat_set_raw_ops (err -22)
May 28 11:51:38 codecowboy-P5E3-Premium Sudo[11155]: pam_unix(Sudo:session): session closed for user root
May 28 11:52:00 codecowboy-P5E3-Premium Sudo[11159]: codecowboy : TTY=pts/1 ; PWD=/home/codecowboy/Downloads ; USER=root ; COMMAND=/bin/journalctl
May 28 11:52:00 codecowboy-P5E3-Premium Sudo[11159]: pam_unix(Sudo:session): session opened for user root by codecowboy(uid=0)
J'ai eu la même erreur après la mise à niveau de 14.04 à 16.04:
zfsutils-linux : Depends: zfs-doc (= 0.6.5.6-0ubuntu16) but 0.6.5.9-1~trusty is to be installed
apt-get remove zfs-doc
qui a supprimé toutes les dépendances zfs associées (toutes étaient 0.6.5.9-1 ~ dignes de confiance).apt-get install zfsutils-linux
a fonctionné, mais après le redémarrage du module zfs, aucune installation n'a eu lieu (dmsg a affiché des erreurs de résolution de symbole lors du chargement du module zfs zfs: désaccord sur la version du symbole __cv_init)dkms remove spl/0.6.5.9 -all
puis à redémarrer. Mon volume zfs a été automatiquement monté à nouveau.Accédez aux paramètres Software and Updates
(recherchez Software and Updates
dans le tableau de bord).
Assurez-vous que la case à cocher indiquant Community-maintained free and open-source software (universe)
est cochée.
Exécutez Sudo apt update
pour ajouter tous les packages supplémentaires à votre système.
Essayez d’installer zfs
à nouveau.