簡體   English   中英

Centos 6.7 Yum沒事做

[英]Centos 6.7 Yum Nothing to do error

我的專用服務器在Centos 6.7上運行百勝似乎根本沒有工作。 無論我嘗試使用Yum安裝哪個軟件包,在沒有可用的軟件包“ xyx”且沒有任何錯誤的情況下,根本無法使用。

如何將整個yum重置為默認值。

我嘗試過

yum update

yum clean all

沒有任何效果。

示例:當我嘗試安裝軟件包時。

root@ns321982 [~]# sudo yum install -y tigervnc-server
Setting up Install Process
No package tigervnc-server available.
Error: Nothing to do
root@ns321982 [~]# subscription-manager list
-bash: subscription-manager: command not found
root@ns321982 [~]# yum search tigervnc-server
No Matches found

示例:當我嘗試更新yum時

root@ns321982 [~]# yum update
Setting up Update Process
base                                                                       | 3.4 kB     00:00
base/primary_db                                                            | 4.3 MB     00:00
epel/metalink                                                              |  25 kB     00:00
epel                                                                       | 4.3 kB     00:00
epel/primary_db                                                            | 5.0 MB     00:00
extras                                                                     | 3.4 kB     00:00
extras/primary_db                                                          |  30 kB     00:00
updates                                                                    | 3.4 kB     00:00
updates/primary_db                                                         | 4.3 MB     00:00
Resolving Dependencies
--> Running transaction check
---> Package bind.i686 32:9.8.2-0.30.rc1.el6_6.1 will be updated
--> Processing Dependency: bind = 32:9.8.2-0.30.rc1.el6_6.1 for package: 32:bind-chroot-9.8.2-0.30.rc1.el6_6.1.i686
---> Package bind.i686 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-devel.i686 32:9.8.2-0.30.rc1.el6_6.1 will be updated
---> Package bind-devel.i686 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-libs.i686 32:9.8.2-0.30.rc1.el6_6.1 will be updated
---> Package bind-libs.i686 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-utils.i686 32:9.8.2-0.30.rc1.el6_6.1 will be updated
---> Package bind-utils.i686 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package initscripts.i686 0:9.03.46-1.el6.centos.1 will be updated
---> Package initscripts.i686 0:9.03.49-1.el6.centos.4 will be an update
--> Processing Dependency: sysvinit-tools >= 2.87-6 for package: initscripts-9.03.49-1.el6.centos.4.i686
--> Processing Dependency: module-init-tools >= 3.9-25 for package: initscripts-9.03.49-1.el6.centos.4.i686
---> Package libcgroup.i686 0:0.40.rc1-15.el6_6 will be updated
---> Package libcgroup.i686 0:0.40.rc1-17.el6_7 will be an update
---> Package ntpdate.i686 0:4.2.6p5-2.el6.centos will be updated
---> Package ntpdate.i686 0:4.2.6p5-5.el6.centos.4 will be an update
---> Package openssh.i686 0:5.3p1-104.el6_6.1 will be updated
---> Package openssh.i686 0:5.3p1-114.el6_7 will be an update
---> Package openssh-clients.i686 0:5.3p1-104.el6_6.1 will be updated
---> Package openssh-clients.i686 0:5.3p1-114.el6_7 will be an update
---> Package openssh-server.i686 0:5.3p1-104.el6_6.1 will be updated
---> Package openssh-server.i686 0:5.3p1-114.el6_7 will be an update
--> Finished Dependency Resolution
Error: Package: 32:bind-chroot-9.8.2-0.30.rc1.el6_6.1.i686 (@updates)
           Requires: bind = 32:9.8.2-0.30.rc1.el6_6.1
           Removing: 32:bind-9.8.2-0.30.rc1.el6_6.1.i686 (@updates)
               bind = 32:9.8.2-0.30.rc1.el6_6.1
           Updated By: 32:bind-9.8.2-0.37.rc1.el6_7.7.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.7
           Available: 32:bind-9.8.2-0.37.rc1.el6_7.1.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.1
           Available: 32:bind-9.8.2-0.37.rc1.el6_7.2.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.2
           Available: 32:bind-9.8.2-0.37.rc1.el6_7.4.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.4
           Available: 32:bind-9.8.2-0.37.rc1.el6_7.5.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.5
           Available: 32:bind-9.8.2-0.37.rc1.el6_7.6.i686 (base)
               bind = 32:9.8.2-0.37.rc1.el6_7.6
Error: Package: initscripts-9.03.49-1.el6.centos.4.i686 (base)
           Requires: module-init-tools >= 3.9-25
           Installed: module-init-tools-3.9-24.el6.i686 (@base)
               module-init-tools = 3.9-24.el6
Error: Package: initscripts-9.03.49-1.el6.centos.4.i686 (base)
           Requires: sysvinit-tools >= 2.87-6
           Installed: sysvinit-tools-2.87-5.dsf.el6.i686 (@base)
               sysvinit-tools = 2.87-5.dsf.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

輸入時返回

root@ns321982 [~]# yum repolist
repo id                   repo name                                                      status
base                      CentOS-6 - Base                                                1,068+103
epel                      Extra Packages for Enterprise Linux 6 - i386                   9,199+710
extras                    CentOS-6 - Extras                                                     40
updates                   CentOS-6 - Updates                                             1,068+103
repolist: 11,375

我基本上想安裝GNOME之類的桌面環境,以便可以使用GUI遠程控制專用托管服務器。

在不同的存儲庫中有具有相同版本的相同軟件包。 運行yum info bind-chroot以找出哪些存儲庫提供bind-chroot軟件包(您應該對initscripts軟件包執行此操作。

找到提供相同軟件包的存儲庫后,請保持最新/穩定狀態,並禁用其他/其他。

我認為extras存儲庫可能會導致問題。 您可以禁用它,然后重試運行yum update

另一種情況是排除包裝。 例如,我系統的yum.conf文件包含exclude = *。i386 * .i586 * .i686

這意味着默認情況下不包括任何i686軟件包! 該情況的解決方法是:

sudo yum install --disableexcludes = all foobar.i686.rpm yum cleanall yum更新

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM