CentOS从8.0版本升级到8.1版本

CentOS社区已经正式发布了CentOS 8.1.1911(Py3.6.8),和此前8.0版本相隔四个月时间。對於目前已經是 CentOS 8 (1905)版本的系統,升級到CentOS 8.1.1911(Py3.6.8)就相對比較簡單了。

但是實際在 CentOS 8 (1905) 執行更新,會發現無法更新.

[root@localhost ~]# yum update
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 5:52:13 ago on Wed Jan 15 15:39:37 2020.
Dependencies resolved.
Nothing to do.
Complete!

通過 dnf 也一樣,關於 YUM , DNF 請參考 Linux 套件管理 ( Package Manager ) 說明

[root@localhost ~]# dnf update
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 4:26:08 ago on Wed Jan 15 19:21:48 2020.
Dependencies resolved.
Nothing to do.
Complete!

在官網有找到說明.
https://wiki.centos.org/Manuals/ReleaseNotes/CentOSStream#Stream_1905_users_need_to_take_action_after_install

Stream 1905 users need to take action after install
If you have used any of the current 1905 CentOS Stream iso images to perform an install then you are currently at risk of missing patches, including those that may fix security vulnerabilities.
A problem has been discovered with the current CentOS Stream 1905 iso images. Under at least some circumstances and possibly all CentOS Stream installs will neglect to install the centos-release-stream package which should provide access to the CentOS Stream specific dnf repositories. The effect of this is that the initial will pick up all the latest Stream packages as they are at install time but these will never have been updated since that install. You are potentially missing patches that are in the 8.0.1905 BaseOS/AppStream/PowerTools/extras repos because your currently installed packages are at a higher version number already.
Fortunately the remedy is easy : dnf install -y centos-release-stream and then dnf update
The problem will be fixed in the upcoming 8.1 when it is released. Only those people who use the 1905 media are affected.

解決方式有下面兩種

  1. DNF
    解決方案就是透過 dnf 但須先安裝 centos-release-stream 套件.也就是執行命令dnf install -y centos-release-stream

    接下來就可以透過 dfn 更新了.

    [root@localhost ~]# dnf update
    CentOS-Stream - AppStream                                                        512 kB/s | 5.8 MB     00:11   
    CentOS-Stream - Base                                                             252 kB/s | 4.3 MB     00:17   
    CentOS-Stream - Extras                                                           1.4 kB/s | 2.1 kB     00:01   
    Dependencies resolved.
    =================================================================================================================
     Package                               Arch   Version                                     Repository        Size
    =================================================================================================================
    Installing:
     kernel                                x86_64 4.18.0-151.el8                              Stream-BaseOS    2.1 M
     kernel-core                           x86_64 4.18.0-151.el8                              Stream-BaseOS     26 M
     kernel-modules                        x86_64 4.18.0-151.el8                              Stream-BaseOS     23 M
    Upgrading:
     firefox                               x86_64 68.3.0-1.el8_1                              Stream-AppStream  95 M
     flatpak                               x86_64 1.0.9-1.el8_1                               Stream-AppStream 1.0 M
     flatpak-libs                          x86_64 1.0.9-1.el8_1                               Stream-AppStream 350 k
     fribidi                               x86_64 1.0.4-7.el8_1                               Stream-AppStream  89 k
     ghostscript                           x86_64 9.25-5.el8_1.1                              Stream-AppStream  82 k
    ......

    更新到 CentOS 8.1 之後就可以使用 yum update

    [root@localhost ~]# cat /etc/redhat-release
    CentOS Linux release 8.1.1911 (Core)
    [root@localhost ~]# yum update
    Failed to set locale, defaulting to C.UTF-8
    CentOS-Stream - AppStream                                                        789 kB/s | 5.8 MB     00:07   
    CentOS-Stream - Base                                                             1.1 MB/s | 4.3 MB     00:03   
    CentOS-Stream - Extras                                                           2.5 kB/s | 2.1 kB     00:00   
    Dependencies resolved.
    Nothing to do.
    Complete!
  2. Continuous Release (CR) Repository
    Continuous Release (CR) Repository 會使用 CentOS 還正在測試階段的修補程式 (下一版本).也可以使用.

    [root@localhost ~]# yum update --enablerepo=cr

暂无评论

发表评论

您的电子邮件地址不会被公开,必填项已用*标注。

相关推荐

RT-ARCH17 解锁“开核” 为新品 RT-AC2200

最近京东上上架了一款华硕的新路由器RT-AC2200,我仔细一看配置,和 RT-ARCH17基本上一模一样,价格却是贵了不少。於是我又跑去華碩的官網瞅了一下這兩個路由器的固件,竟然神奇的發現這兩個固件的md5都是一模一樣 ...

小米ax3600官方固件安装adguardhome

小米ax3600路由器開啟SSH權限後就可以安裝插件了,目前使用最多的莫過於于shellclash+adguardhome,第一個shellclash安裝過於簡單,就一行代碼的事情,這裡就不過多贅述。adguardhome是一款非常好用的去廣告程序 ...

小米路由器AX3600 解锁SSH

小米AIoT路由器AX3600,是一台标准的Wi-Fi 6路由,采用高通第二代Wi-Fi 6方案,更加成熟。全套高通芯片,2.4GHz频段支持2T2R ,5GHz频段支持4T4R,二者共可提供高达3000Mbps的无线速率,而小米又分别为两个频段 ...

非华为电脑使用华为多屏协同功能教程

不得不说华为的多屏协同功能非常的好用,安装了华为电脑管家的华为笔记本,手机内容可以无缝协同到电脑屏幕上进行操作。因而很多技术大佬就想方设法破解华为电脑管家的原生限制,让它可以安装到其他电脑上实现多 ...