百胜跳过损坏的问题

百胜跳过损坏的问题

我正在尝试使用 yum 安装 mysql-connector-odbc。它给了我这个错误。

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package mysql-connector-odbc.x86_64 0:5.3.6-1.el7 will be installed
--> Processing Dependency: libodbcinst.so.2()(64bit) for package: mysql-connector-odbc-5.3.6-1.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: mysql-connector-odbc-5.3.6-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-connector-odbc-5.3.6-1.el7.x86_64 (mysql-connectors-community)
           Requires: libodbc.so.2()(64bit)
Error: Package: mysql-connector-odbc-5.3.6-1.el7.x86_64 (mysql-connectors-community)
           Requires: libodbcinst.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

所以我手动安装了 unixodbc,其中包含所需的 libodbc 文件,并尝试运行它

yum install mysql-connector-odbc --skip-broken

这给了我另一个错误。

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package mysql-connector-odbc.x86_64 0:5.3.6-1.el7 will be installed
--> Processing Dependency: libodbcinst.so.2()(64bit) for package: mysql-connector-odbc-5.3.6-1.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: mysql-connector-odbc-5.3.6-1.el7.x86_64

Packages skipped because of dependency problems:
    mysql-connector-odbc-5.3.6-1.el7.x86_64 from mysql-connectors-community

我不确定我在这里做错了什么。

答案1

我推荐这个CentOS插件保护基地这个插件在处理多个第 3 方存储库或只是EPEL/RPMForge

您可以使用:

yum --disablerepo=[reponame] update

但这是一次性选项,如果您想持续保护您的系统,那么我强烈推荐“protectbase”

"yum install yum-plugins-protectbase"

然后添加"protect=1"您想要保护的存储库。又名 CentOS-Base 并将“ protect=0”添加到 epel.repo 这应该可以解决处理第 3 方存储库时最常见的冲突。

我在我的博客上创建了更深入的指南处理多个存储库CentOS 4/5/6/7

答案2

回答一个老问题,但万一有人遇到这个问题:

答案是该unixODBC软件包提供了这些依赖项,它们是“rhel-7-server-rpms”RHEL 通道的一部分,该通道似乎未在主机上启用。

相关内容