이 명령을 사용하여 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
.
upgrade
먼저 다음 대신에 다음을 수행합니다 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
이 패키지도 필요하지 않습니다. 일반적으로 실제로 필요한 패키지 설치를 제한하는 것이 가장 좋습니다. 더 많은 패키지를 설치할수록 이러한 문제가 발생할 가능성이 높아집니다.