在 Centos7 上安装 gtk-sharp2

在 Centos7 上安装 gtk-sharp2

我正在尝试安装(在 centOS 7 上)这个包,但是出现以下错误(我承认我也是 yum 新手):

sudo yum install gtk-sharp2

Loaded plugins: fastestmirror, langpacks, priorities, protectbase

Loading mirror speeds from cached hostfile
 * base: mirror.jgotteswinter.com
 * elrepo: ftp.nluug.nl
 * epel: mirror.netcologne.de
 * extras: centos.copahost.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.rackspeed.de

0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package gtk-sharp2.x86_64 0:2.12.11-12.el7 will be updated
--> Processing Dependency: gtk-sharp2 = 2.12.11-12.el7 for package: gtk-sharp2-devel-2.12.11-12.el7.x86_64
--> Processing Dependency: mono(glib-sharp) = 2.12.0.0 for package: gtk-sharp2-2.12.26-0.x86_64
---> Package gtk-sharp2.x86_64 0:2.12.26-0 will be an update
--> Running transaction check
---> Package glib-sharp2.x86_64 0:2.12.26-0 will be installed
---> Package gtk-sharp2.x86_64 0:2.12.11-12.el7 will be updated
--> Processing Dependency: gtk-sharp2 = 2.12.11-12.el7 for package: gtk-sharp2-devel-2.12.11-12.el7.x86_64
--> Finished Dependency Resolution

Error: Package: gtk-sharp2-devel-2.12.11-12.el7.x86_64 (@epel)
           Requires: gtk-sharp2 = 2.12.11-12.el7
           Removing: gtk-sharp2-2.12.11-12.el7.x86_64 (@epel)
               gtk-sharp2 = 2.12.11-12.el7
           Updated By: gtk-sharp2-2.12.26-0.x86_64 (download.mono-project.com_repo_centos_)
               gtk-sharp2 = 2.12.26-0
           Available: gtk-sharp2-2.12.11-7.el7.nux.x86_64 (nux-dextop)
               gtk-sharp2 = 2.12.11-7.el7.nux  You could try using --skip-broken to work around the problem  You could try running: rpm -Va --nofiles --nodigest

有人知道如何修复 yum 来解决这个问题吗?

亲切的问候。


仍然有问题。启动 yum distro-sync:

    Error: Package: mono-complete-4.6.1.5-0.xamarin.1.x86_64 (@download.mono-project.com_repo_centos_)
           Requires: mono-data = 4.6.1.5
           Removing: mono-data-4.6.1.5-0.xamarin.1.x86_64 (@download.mono-project.com_repo_centos_)
               mono-data = 4.6.1.5-0.xamarin.1
           Downgraded By: mono-data-2.10.8-9.el7.x86_64 (epel)
               mono-data = 2.10.8-9.el7
Error: Package: mono-complete-4.6.1.5-0.xamarin.1.x86_64 (@download.mono-project.com_repo_centos_)
           Requires: mono-data-sqlite = 4.6.1.5
           Removing: mono-data-sqlite-4.6.1.5-0.xamarin.1.x86_64 (@download.mono-project.com_repo_centos_)
               mono-data-sqlite = 4.6.1.5-0.xamarin.1
           Downgraded By: mono-data-sqlite-2.10.8-9.el7.x86_64 (epel)
               mono-data-sqlite = 2.10.8-9.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

仍然出了问题……我遇到的错误比上述还多

答案1

您安装了一些第三方存储库,它们都附带同一软件包的不兼容版本。

运送坏包裹的仓库是:

  • nux-dextop
  • 下载.mono-project.com_repo_centos_

解决此问题的方法:

  1. 从目录中删除提供这些存储库的文件/etc/yum.repos.d
  2. 使用 修复这些 repos 可能造成的任何预先存在的软件包问题yum distro-sync
  3. 再次尝试安装。

相关内容