解決yum錯誤retry_no_cache=self._retry_no_cache

在本文中,我們解決了 yum 錯誤 retry_no_cache=self._retry_no_cache。

您正在嘗試將 CentOS 系統轉換為 CloudLinux,但轉換過程失敗並顯示以下消息:

File "/usr/share/yum-plugins/rhnplugin.py', line 410, in _getFile
start, end, copy_local, checkfunc, text, reget, cache, size)
File "/usr/share/yum-plugins/rhnplugin.py', line 490, in _noExceptionWrappingGet
retry_no_cache=self._retry_no_cache
AttributeError: 'RhnRepo' object has no attribute '_retry_no_cache'

總之,這個問題在較新的 yum 版本中已經解決了,所以你只需要在轉換前更新 yum 包。

但無論如何,直接解決問題的方法很少。

第一種方法:

  • 在 /etc/yum/pluginconf.d/rhnplugin.conf 中禁用 rhnplugin(將 enabled=1 更改為 enabled=0)
  • 恢復 CentOS 存儲庫:
    mv /etc/cl-convert-saved/CentOS* /etc/yum.repos.d/
  • 運行 yum 更新 yum
  • 刪除 CentOS 存儲庫:
    mv /etc/yum.repos.d/CentOS* /etc/cl-convert-saved/
  • 通過編輯 /etc/yum/pluginconf.d/rhnplugin.conf 文件重新啟用 rhnplugin

第二種方法:

使用 rpm 更新所需的軟件包:

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/yum-3.4.3-154.el7.cloudlinux.noarch.rpm

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/rpm-4.11.3-25.el7.x86_64.rpm

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/rpm-python-4.11.3-25.el7.x86_64.rpm

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/rpm-libs-4.11.3-25.el7.x86_64.rpm

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/rpm-build-libs-4.11.3-25.el7.x86_64.rpm

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/rpm-build-4.11.3-25.el7.x86_64.rpm

wget http://repo.cloudlinux.com/cloudlinux/7.4/install/x86_64/Packages/python-urlgrabber-3.10-8.el7.noarch.rpm

進而:

rpm -Uv rpm-4.11.3-25.el7.x86_64.rpm rpm-libs-4.11.3-25.el7.x86_64.rpm rpm-python-4.11.3-25.el7.x86_64.rpm yum-3.4.3-154.el7.cloudlinux.noarch.rpm rpm-build-4.11.3-25.el7.x86_64.rpm rpm-build-libs-4.11.3-25.el7.x86_64.rpm python-urlgrabber-3.10-8.el7.noarch.rpm

今天,我們了解了我們的支持工程師如何解決 yum 錯誤 retry_no_cache=self._retry_no_cache。


[錯誤] InnoDB:無法鎖定 ./ibdata1 錯誤:11 CloudLinux 7

[錯誤] InnoDB:無法鎖定 ./ibdata1 錯誤:11 CloudLinux 7

如果您在 CloudLinux 中收到 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11, 以下步驟將對您有所幫助。使用以下命令停止 MySQL 服務

無法在 KernelCare 上應用補丁

無法在 KernelCare 上應用補丁

如果您無法在 KernelCare 上應用補丁,在本文中,我們已經解釋瞭如何解決它。

SolusVM 錯誤:設備 2049 無法啟動 VPS

SolusVM 錯誤:設備 2049 無法啟動 VPS

我們將看看如何解決 SolusVM 錯誤:設備 2049 無法啟動 VPS。錯誤:無法連接設備 2049 (vbd)。熱插拔腳本不起作用。

WordPress SSL 混合內容問題

WordPress SSL 混合內容問題

我們將看到如何修復 WordPress SSL 混合內容問題。通常它會發現 SSL 正在安裝在 WordPress 站點上。

無法更新 CentOS 服務器錯誤 rpmdb 打開失敗

無法更新 CentOS 服務器錯誤 rpmdb 打開失敗

我們將看到如何解決無法更新 CentOS 服務器錯誤 rpmdb 打開失敗的問題。在 CentOS 服務器上 yum 更新軟件包時是否出現錯誤?

解決yum錯誤retry_no_cache=self._retry_no_cache

解決yum錯誤retry_no_cache=self._retry_no_cache

在本文中,我們解決了 yum 錯誤 retry_no_cache=self._retry_no_cache。

mysqld 表被標記為崩潰,應該修復

mysqld 表被標記為崩潰,應該修復

我們將學習如何解決mysqld表被標記為crashed and should be repaired錯誤。mysqld:表...被標記為崩潰,應該修復。

解決SSH Host key Verification failed錯誤

解決SSH Host key Verification failed錯誤

在本文中,我們將解決 Linux 中的 SSH 主機密鑰驗證失敗錯誤。

Plesk 504網關超時nginx

Plesk 504網關超時nginx

在本文中,我們解釋瞭如何解決 Plesk 504 網關超時 nginx 錯誤。耗時超過 60 秒的操作或腳本。

CloudLinux 508 服務臨時不可用錯誤

CloudLinux 508 服務臨時不可用錯誤

在本文中,我們介紹了我們的支持工程師如何解決 CloudLinux 508 服務臨時不可用錯誤。很可能由於使用率高而受到限制。