Yum 壊れた問題をスキップしています。

Yum 壊れた問題をスキップしています。

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

それで、必要なlibodbcファイルと一緒にunixodbcを手動でインストールして実行してみました。

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このプラグインをお勧めします基地を守るこのプラグインは、複数のサードパーティのリポジトリを処理するときに機能します。EPEL/RPMForge

あなたはそれを使用することができます:

yum --disablerepo=[reponame] update

ただし、これはワンタイムオプションであるため、システムを継続的に保護するために「protectbase」を強くお勧めします。

"yum install yum-plugins-protectbase"

"protect=1"次に、保護したいリポジトリを追加します。 CentOS-Baseとも呼ばれ、protect=0epel.repoに ""を追加すると、サードパーティのリポジトリを処理するときの最も一般的な競合が解決されます。

私のブログでより詳細なガイドを作成しました。複数のストレージ処理CentOS 4/5/6/7

おすすめ記事