我正在尝试使用此命令更新 centos 中的绑定。
$ sudo yum update bind
出现此错误
Transaction check error: file /usr/libexec/setup-named-chroot.sh from install of bind-chroot-32:9.9.4-61.el7.x86_64 conflicts with file from package bind-sdb-chroot-32:9.9.4-51.el7.x86_64
细节
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 32:9.9.4-51.el7 will be updated
--> Processing Dependency: bind = 32:9.9.4-51.el7 for package: 32:bind-pkcs11-9.9.4-51.el7.x86_64
--> Processing Dependency: bind = 32:9.9.4-51.el7 for package: 32:bind-chroot-9.9.4-51.el7.x86_64
---> Package bind.x86_64 32:9.9.4-61.el7 will be an update
--> Processing Dependency: bind-libs = 32:9.9.4-61.el7 for package: 32:bind-9.9.4-61.el7.x86_64
--> Running transaction check
---> Package bind-chroot.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-chroot.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-libs.x86_64 32:9.9.4-51.el7 will be updated
--> Processing Dependency: bind-libs = 32:9.9.4-51.el7 for package: 32:bind-devel-9.9.4-51.el7.x86_64
--> Processing Dependency: bind-libs = 32:9.9.4-51.el7 for package: 32:bind-sdb-9.9.4-51.el7.x86_64
--> Processing Dependency: bind-libs = 32:9.9.4-51.el7 for package: 32:bind-pkcs11-libs-9.9.4-51.el7.x86_64
--> Processing Dependency: bind-libs = 32:9.9.4-51.el7 for package: 32:bind-utils-9.9.4-51.el7.x86_64
---> Package bind-libs.x86_64 32:9.9.4-61.el7 will be an update
--> Processing Dependency: bind-license = 32:9.9.4-61.el7 for package: 32:bind-libs-9.9.4-61.el7.x86_64
---> Package bind-pkcs11.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-pkcs11.x86_64 32:9.9.4-61.el7 will be an update
--> Running transaction check
---> Package bind-devel.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-devel.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-license.noarch 32:9.9.4-51.el7 will be updated
--> Processing Dependency: bind-license = 32:9.9.4-51.el7 for package: 32:bind-libs-lite-9.9.4-51.el7.x86_64
---> Package bind-license.noarch 32:9.9.4-61.el7 will be an update
---> Package bind-pkcs11-libs.x86_64 32:9.9.4-51.el7 will be updated
--> Processing Dependency: bind-pkcs11-libs = 32:9.9.4-51.el7 for package: 32:bind-pkcs11-utils-9.9.4-51.el7.x86_64
--> Processing Dependency: bind-pkcs11-libs = 32:9.9.4-51.el7 for package: 32:bind-pkcs11-devel-9.9.4-51.el7.x86_64
---> Package bind-pkcs11-libs.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-sdb.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-sdb.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-utils.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-utils.x86_64 32:9.9.4-61.el7 will be an update
--> Running transaction check
---> Package bind-libs-lite.x86_64 32:9.9.4-51.el7 will be updated
--> Processing Dependency: bind-libs-lite = 32:9.9.4-51.el7 for package: 32:bind-lite-devel-9.9.4-51.el7.x86_64
---> Package bind-libs-lite.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-pkcs11-devel.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-pkcs11-devel.x86_64 32:9.9.4-61.el7 will be an update
---> Package bind-pkcs11-utils.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-pkcs11-utils.x86_64 32:9.9.4-61.el7 will be an update
--> Running transaction check
---> Package bind-lite-devel.x86_64 32:9.9.4-51.el7 will be updated
---> Package bind-lite-devel.x86_64 32:9.9.4-61.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Updating:
bind x86_64 32:9.9.4-61.el7 base 1.8 M
Updating for dependencies:
bind-chroot x86_64 32:9.9.4-61.el7 base 87 k
bind-devel x86_64 32:9.9.4-61.el7 base 399 k
bind-libs x86_64 32:9.9.4-61.el7 base 1.0 M
bind-libs-lite x86_64 32:9.9.4-61.el7 base 734 k
bind-license noarch 32:9.9.4-61.el7 base 85 k
bind-lite-devel x86_64 32:9.9.4-61.el7 base 308 k
bind-pkcs11 x86_64 32:9.9.4-61.el7 base 298 k
bind-pkcs11-devel x86_64 32:9.9.4-61.el7 base 105 k
bind-pkcs11-libs x86_64 32:9.9.4-61.el7 base 1.1 M
bind-pkcs11-utils x86_64 32:9.9.4-61.el7 base 198 k
bind-sdb x86_64 32:9.9.4-61.el7 base 353 k
bind-utils x86_64 32:9.9.4-61.el7 base 204 k
Transaction Summary
============================================================================================================================================================================================================
Upgrade 1 Package (+12 Dependent packages)
Total size: 6.6 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file /usr/libexec/setup-named-chroot.sh from install of bind-chroot-32:9.9.4-61.el7.x86_64 conflicts with file from package bind-sdb-chroot-32:9.9.4-51.el7.x86_64
Error Summary
-------------
已安装的软件包信息
32:bind-9.9.4-51.el7.x86_64
checksum_data = 1b77b76443d842c156c6c888bc9c0735ff4f8f7cbdbd2e4fb2dcecb03833a042
checksum_type = sha256
command_line = install bind bind-utils -y
from_repo = updates
from_repo_revision = 1506987578
from_repo_timestamp = 1506987830
installed_by = 1000
origin_url = http://mirror.san.fastserv.com/pub/linux/centos/7.4.1708/updates/x86_64/Packages/bind-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-chroot-9.9.4-51.el7.x86_64
checksum_data = e58293072f5aeb6082a1a8e62f18d66a882b7a8aa224a5d6234945a83be1d9bf
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-chroot-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-devel-9.9.4-51.el7.x86_64
checksum_data = ee5b0d89888964680e42ddba18b4c95dabb96360f2a38a55cd84dbd1dfe2839e
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://linux.cc.lehigh.edu/centos/7.4.1708/updates/x86_64/Packages/bind-devel-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
bind-dyndb-ldap-11.1-4.el7.x86_64
checksum_data = 8f33bcdbc883179beeeff80124ab85a3e51ac1f25d020560765c5520298bf3d3
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.atlantic.net/centos/7.4.1708/updates/x86_64/Packages/bind-dyndb-ldap-11.1-4.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-libs-9.9.4-51.el7.x86_64
changed_by = 1000
checksum_data = b0630f026c8ad1e6b03e757895466c2dc82af85e810c477f25ddef1332322a8c
checksum_type = sha256
command_line = install bind bind-utils -y
from_repo = updates
from_repo_revision = 1506987578
from_repo_timestamp = 1506987830
installed_by = 4294967295
reason = dep
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-libs-lite-9.9.4-51.el7.x86_64
changed_by = 1000
checksum_data = cd27101f3bfe45e4dd9cde2e9d72298ada09c205aedbb280b4b16c5796b68d2d
checksum_type = sha256
command_line = install bind bind-utils -y
from_repo = updates
from_repo_revision = 1506987578
from_repo_timestamp = 1506987830
installed_by = 4294967295
reason = dep
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-license-9.9.4-51.el7.noarch
changed_by = 1000
checksum_data = 88012038d30a8c2af898e885e857753a2a6dcae2a24b37e78233b2a5cf2faae3
checksum_type = sha256
command_line = install bind bind-utils -y
from_repo = updates
from_repo_revision = 1506987578
from_repo_timestamp = 1506987830
installed_by = 4294967295
origin_url = http://linux.cc.lehigh.edu/centos/7.4.1708/updates/x86_64/Packages/bind-license-9.9.4-51.el7.noarch.rpm
reason = dep
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-lite-devel-9.9.4-51.el7.x86_64
checksum_data = 48f8a49a979fc4863ea933db6b8a5d6788cfb1ec13cd2accd1cbb707c79683d9
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirrors.cat.pdx.edu/centos/7.4.1708/updates/x86_64/Packages/bind-lite-devel-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-pkcs11-9.9.4-51.el7.x86_64
checksum_data = 8b3d84f4467dc9a78d90803feabe86c587ddf85636e81373445047dfc2f9d25b
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirrors.tripadvisor.com/centos/7.4.1708/updates/x86_64/Packages/bind-pkcs11-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-pkcs11-devel-9.9.4-51.el7.x86_64
checksum_data = 47e16dffd439f079ebbe21d81256923b67a20460685e8c40d9c534dbdef73fee
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-pkcs11-devel-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-pkcs11-libs-9.9.4-51.el7.x86_64
checksum_data = fff99f3f69933bef1e37a8cbc3e4b04c1b37d16fa844c55f4ce1649bc49c1ad2
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-pkcs11-libs-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-pkcs11-utils-9.9.4-51.el7.x86_64
checksum_data = 446d074072063172ddd4e60f949b4d7d91258ddc6d2f1d5adcba53f142d564b6
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-pkcs11-utils-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-sdb-9.9.4-51.el7.x86_64
checksum_data = 12da8b3c7b63cb2f7cab21f444d6fbaf6db76e0552281a9a30f9e91716425a60
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-sdb-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-sdb-chroot-9.9.4-51.el7.x86_64
checksum_data = c11178ad4948e15f3f1b96cb4d21a45b7d9ea899bb01e50dc5d0a709ae8b1b59
checksum_type = sha256
command_line = install bind*
from_repo = updates
from_repo_revision = 1510935926
from_repo_timestamp = 1510936321
installed_by = 1000
origin_url = http://mirror.sigmanet.com/centos/7.4.1708/updates/x86_64/Packages/bind-sdb-chroot-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
32:bind-utils-9.9.4-51.el7.x86_64
changed_by = 1000
checksum_data = 25b6002054aff619ad803df1f883bfad37dc1565ffa33511b09a3af449d3f433
checksum_type = sha256
command_line = install bind bind-utils -y
from_repo = updates
from_repo_revision = 1506987578
from_repo_timestamp = 1506987830
installed_by = 4294967295
origin_url = http://centos.vwtonline.net/centos/7.4.1708/updates/x86_64/Packages/bind-utils-9.9.4-51.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
bindfs-1.13.7-3.el7.x86_64
checksum_data = 8becb7be67e1c9429c543bbf0bc088527f5121bca964b636838ebc10a738f83d
checksum_type = sha256
command_line = install bind*
from_repo = epel
from_repo_revision = 1511032237
from_repo_timestamp = 1511035134
installed_by = 1000
origin_url = http://mirror.seas.harvard.edu/epel/7/x86_64/Packages/b/bindfs-1.13.7-3.el7.x86_64.rpm
reason = user
releasever = 7
var_infra = stock
var_uuid = cd5d7927-7fb0-48bf-9cbc-77c5d3532633
答案1
从表面上看,该文件/usr/libexec/setup-named-chroot.sh
之前是打包在其中的,bind-chroot
但已移至bind-sdb-chroot
.既然我们正在评估发生的事情,那么尝试强迫事情继续发展是安全的。
首先,我会做 aupgrade
而不是 an update
:
$ sudo yum upgrade
这将删除任何可能导致此处发生冲突的过时软件包。如果您仍然遇到问题,我会删除 2 个有问题的软件包,然后进行更新,然后重新安装它们。这可能是解决您遇到的包装问题的最简单方法。
$ sudo yum remove bind-chroot bind-sdb-chroot
$ sudo yum update
$ sudo yum install bind-chroot bind-sdb-chroot
看来您发现了一个错误
如果您安装这两个软件包,您将发现以下情况,而这在软件包管理中是不应该发生的:
$ rpm -qf /usr/libexec/setup-named-chroot.sh
bind-sdb-chroot-9.9.4-61.el7.x86_64
bind-chroot-9.9.4-61.el7.x86_64
这两个包都声明了该文件的所有权。奇怪的是我能够使用yum
.
安装不需要的包
在你的情况下,这个bind-sdb
包裹似乎是不必要的,如果我错了,请纠正我。如果您想将bind
配置存储在 SQL 数据库而不是平面文件中,则使用该包。
如果您只是使用bind
配置文件,那么您甚至不需要这个包。通常最好将软件包的安装限制为您实际需要的内容。安装的软件包越多,遇到此类问题的可能性就会增加。