我遇到了包依賴性問題。有人可以幫忙理解如何解決這個問題嗎?
問Requires: zfs-kmod = 0.7.7 Available: kmod-zfs-0.6.5.11-1.el7_4.x86_64 (zfs-kmod)
當它說例如我是否需要刪除它們,它們是否在快取中以及需要清理快取時,我需要採取哪些步驟?
觸發此問題的原因是我正在使用zfsonlinux
,並從 DKMS 遷移到卡比追蹤法。我已經刪除了 DKMS 模組根據文件,這似乎進展順利,但是沿線的一些東西不同步。
/etc/yum.repos.d/zfs.repo
1 [zfs]
2 name=ZFS on Linux for EL7 - dkms
3 baseurl=http://download.zfsonlinux.org/epel/7.4/$basearch/
4 enabled=0
5 metadata_expire=7d
6 gpgcheck=1
7 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
8
9 [zfs-kmod]
10 name=ZFS on Linux for EL7 - kmod
11 baseurl=http://download.zfsonlinux.org/epel/7.4/kmod/$basearch/
12 enabled=1
13 metadata_expire=7d
14 gpgcheck=1
15 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
...
當我嘗試安裝時:
$ sudo yum install zfs
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package zfs.x86_64 0:0.7.7-1.el7_4 will be installed
--> Processing Dependency: zfs-kmod = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: spl = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libzpool2 = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libzfs2 = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libuutil1 = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libnvpair1 = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libzpool.so.2()(64bit) for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libzfs_core.so.1()(64bit) for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libzfs.so.2()(64bit) for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libuutil.so.1()(64bit) for package: zfs-0.7.7-1.el7_4.x86_64
--> Processing Dependency: libnvpair.so.1()(64bit) for package: zfs-0.7.7-1.el7_4.x86_64
--> Running transaction check
---> Package libnvpair1.x86_64 0:0.7.7-1.el7_4 will be installed
---> Package libuutil1.x86_64 0:0.7.7-1.el7_4 will be installed
---> Package libzfs2.x86_64 0:0.7.7-1.el7_4 will be installed
---> Package libzpool2.x86_64 0:0.7.7-1.el7_4 will be installed
---> Package spl.x86_64 0:0.7.7-1.el7_4 will be installed
--> Processing Dependency: spl-kmod = 0.7.7 for package: spl-0.7.7-1.el7_4.x86_64
---> Package zfs.x86_64 0:0.7.7-1.el7_4 will be installed
--> Processing Dependency: zfs-kmod = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Running transaction check
---> Package kmod-spl.x86_64 0:0.7.7-1.el7_4 will be installed
---> Package zfs.x86_64 0:0.7.7-1.el7_4 will be installed
--> Processing Dependency: zfs-kmod = 0.7.7 for package: zfs-0.7.7-1.el7_4.x86_64
--> Finished Dependency Resolution
Error: Package: zfs-0.7.7-1.el7_4.x86_64 (zfs-kmod)
Requires: zfs-kmod = 0.7.7
Available: kmod-zfs-0.6.5.11-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.6.5.11-1.el7_4
Available: kmod-zfs-0.7.1-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.1-1.el7_4
Available: kmod-zfs-0.7.2-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.2-1.el7_4
Available: kmod-zfs-0.7.3-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.3-1.el7_4
Available: kmod-zfs-0.7.4-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.4-1.el7_4
Available: kmod-zfs-0.7.4-2.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.4-2.el7_4
Available: kmod-zfs-0.7.5-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.5-1.el7_4
Available: kmod-zfs-0.7.6-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.6-1.el7_4
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Error: Package: zfs-0.7.7-1.el7_4.x86_64 (zfs-kmod)
Requires: zfs-kmod = 0.7.7
Available: kmod-zfs-0.6.5.11-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.6.5.11-1.el7_4
Available: kmod-zfs-0.7.1-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.1-1.el7_4
Available: kmod-zfs-0.7.2-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.2-1.el7_4
Available: kmod-zfs-0.7.3-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.3-1.el7_4
Available: kmod-zfs-0.7.4-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.4-1.el7_4
Available: kmod-zfs-0.7.4-2.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.4-2.el7_4
Available: kmod-zfs-0.7.5-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.5-1.el7_4
Available: kmod-zfs-0.7.6-1.el7_4.x86_64 (zfs-kmod)
zfs-kmod = 0.7.6-1.el7_4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
當我嘗試時,它看起來--skip-broken
可行,但我沒有讓它完成,也沒有答應它。
問我不確定rpm -Va --nofiles --nodigest
是什麼,這有幫助嗎?
問我確實嘗試暫時啟用已停用的儲存庫,但這不起作用。
這是我現在看到的已安裝內容:(目前 dkms、spl、zfs 沒有顯示任何內容)
$ sudo yum list installed | grep zfs
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the configuration
$ sudo yum list installed | grep kmod
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the configuration
kmod.x86_64 20-15.el7_4.7 @rhel-7-server-rpms
kmod-libs.x86_64 20-15.el7_4.7 @rhel-7-server-rpms
python-kmod.x86_64 0.9-4.el7 @anaconda/7.2
即使當我安裝 zfs-release 時,sudo yum install http://download.zfsonlinux.org/epel/zfs-release.el7_4.noarch.rpm
我也會遇到相同的 kmod 套件錯誤。
我採取的另外幾個步驟沒有幫助,如下所示,但我仍然有相同的症狀。
$ sudo yum autoremove
$ sudo yum clean metadata
我不知道如何修復此問題,以便我可以重新獲得 ZSF 檔案存取權限。
問我應該如何進行?