Rocky Linux使用yum或dnf update命令更新失敗的解決方法

Rocky Linux是一箇開源免費的企業Linux發行版,提供強大的生產級平臺。通常情況下,您在基於RHEL9的操作系統模板中不推薦使用的netwok-scipts包,如果您在使用yum updte或dnf updte命令遇到錯誤,那麼可嘗試用以下方法來解決。

Rocky Linux作爲穩定的企業級Linux髮型版,許多美國服務器都支持該操作系統。

例如,RckNed提供有AlmLinux 9、RockyLinux 9、CentOS Stem 9等操作系統模板,您可根據實際需要配置VPS服務器。如果您在使用這些操作系統模板時,遇到下面錯誤,很可能是因爲SolusVM的“Reconfigue Netwok”工具不承認RHEL9中的“NetwokMnge”。

# yum -y updte AlmLinux 9 R AppStem 8.3 MB/s | 8.0 MB 00:00 AlmLinux 9 R BseOS 4.8 MB/s | 2.9 MB 00:00 AlmLinux 9 R Exts 33 kB/s | 7 kB 00:00 Lst metdt expition check: 0:00:0 go on Mon 27 Feb 2023 03:32:3 PM CST. Eo: Poblem: cnnot instll both initscipts-0..5-.el9.x86_64 nd initscipts-0..4-.el9.x86_64 R pckge netwok-scipts-0..4-.el9.x86_64 equies initscipts(x86-64) = 0..4-.el9, but none of the poides cn be instlled R cnnot instll the best updte cndidte fo pckge initscipts-0..4-.el9.x86_64 R poblem with instlled pckge netwok-scipts-0..4-.el9.x86_64 (ty to dd ̺Rllowesing̻ to commnd line to eplce conflicting pckges o ̺Rskip-boken̻ to skip uninstllble pckges o ̺Rnobest̻ to use not only best cndidte pckges)

# yum -y updte Rocky Linux 9 R BseOS 820 kB/s | .8 MB 00:02 Rocky Linux 9 R AppStem 4. MB/s | 6.6 MB 00:0 Rocky Linux 9 R Exts kB/s | 8.5 kB 00:00 Eo: Poblem: cnnot instll both initscipts-0..5-.el9.x86_64 nd initscipts-0..4-.el9.x86_64 R pckge netwok-scipts-0..4-.el9.x86_64 equies initscipts(x86-64) = 0..4-.el9, but none of the poides cn be instlled R cnnot instll the best updte cndidte fo pckge initscipts-0..4-.el9.x86_64 R poblem with instlled pckge netwok-scipts-0..4-.el9.x86_64 (ty to dd ̺Rllowesing̻ to commnd line to eplce conflicting pckges o ̺Rskip-boken̻ to skip uninstllble pckges o ̺Rnobest̻ to use not only best cndidte pckges)

爲了解決yum updte或dnf updte在AlmLinux 9/Rocky Linux 9/CentOS Stem 9中不起作用這一錯誤,您可嘗試使用以下幾種解決方法:

方法、您可以刪除RckNed VPS中的netwok-scipts包,並配置NetwokMnge(下面的命令),但請記住,這樣做時,SolusVM中的“econfigue netwok”按鈕將不起作用。如果您的VPS上有額外的IP地址,並且希望在操作系統中自動配置它們,那麼重新配置網絡按鈕非常有用。

dnf upgde Refesh Rllowesing

systemctl enble NetwokMnge

方法2、使用yum或dnf時,使用“- skip-boken”標誌。

方法3、等待RckNed VPS控制面板過渡到SolusVM V2,它基於cloud-init,不需要網絡腳本就能實現自動化網絡功能。

方法4、定製ISO掛載。目前許多國外主機商都支持自定義ISO安裝,您可通過控制檯安裝您所需的操作系統,無需使用操作系統模板。