記 openSUSE 42.3 升級到Leap 15.0


  1. 先將系統的軟件更新到最新版本
sudo zypper update 
  1. 刪除42.3的軟件源,若有其他數據源,如nginx的,也需要一並刪除,可使用zypper lr -d 來查詢
sudo zypper rr USTC:42.3:NON-OSS  USTC:42.3:OSS USTC:42.3:UPDATE-NON-OSS USTC:42.3:UPDATE-OSS

假如運行這個命令之后,沒有移除到軟件源的話,可進入 YaSt 控制中心,在 Software , 找到 Software Repositories 雙擊進入,將列表中的與 42.3有關的軟件源移除完,然后 點擊 ok,就也達到刪除 42.3軟件源的目的

3.然后添加新的軟件源,以中科大的源為例

sudo zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.0/repo/oss USTC:15.0:OSS
sudo zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.0/repo/non-oss USTC:15.0:NON-OSS
sudo zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/15.0/oss USTC:15.0:UPDATE-OSS
sudo zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/15.0/non-oss USTC:15.0:UPDATE-NON-OSS

4.確認軟件源更新成功

zypper lr -d

5.刷新

sudo zypper ref
  1. 先更新zypper
sudo zypper patch --updatestack-only
  1. 更新系統
sudo zypper dup

8.更新完畢后,重啟系統

shutdown -r now
  1. 重啟后,查看系統信息。
cat /etc/os-release

會顯示

NAME="openSUSE Leap"
VERSION="15.0" 
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.0"
PRETTY_NAME="openSUSE Leap 15.0"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.0"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

如果出現有關 openSUSE Leap 15.0的信息,說明更新成功了


其中遇到的問題是:

  1. wifi 正常連接成功了,但是用firefox或者chrome打開網頁,會顯示無法聯網,提示檢查 DSN 配置

在參考了 openSUSE leap 15 connects to router but cannot connect to internet 執行了

sudo netconfig update -f

之后

linux-2ywt:/home/wakasann # netconfig -f update
<13>Aug 30 14:23:32 dns-resolver: force replace set: backup created as /etc/resolv.conf.20180830-142332

更新這個之后,我打開瀏覽器,訪問網頁就正常了。

參考

  1. openSUSE 42.3 升級到 openSUSE 15.0 整個升級系統的命令是參考這里的
  2. Bug 1092352 - Upgrade Leap 42.3 to 15.0 breaks DNS resolution 頁面中的 DNS does not work after NetworkManager update的主題鏈接中,提到 /etc/resolv.conf 文件,我看了自己電腦的,發現里面的內容只有注釋,沒有內容
  3. openSUSE leap 15 connects to router but cannot connect to internet 解決連接網絡,但是電腦的瀏覽器無法正常打開網頁,顯示的可能是DNS配置問題部分

我的部分.bash_history

#1535116255
zypper update 
#1535118046
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.0/repo/oss USTC:15.0:OSS
#1535118053
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.0/repo/non-oss USTC:15.0:NON-OSS
#1535118063
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/15.0/oss USTC:15.0:UPDATE-OSS
#1535118078
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/15.0/non-oss USTC:15.0:UPDATE-NON-OSS
#1535118089
zypper rr USTC:42.3:NON-OSS  USTC:42.3:OSS USTC:42.3:UPDATE-NON-OSS USTC:42.3:UPDATE-OSS
#1535118101
zypper lr -d 
#1535118361
zypper lr -d
#1535118369
zypper ref
#1535118388
zypper patch --updatestack-only
#1535118400
zypper dup
#1535121261
shutdown -r now


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM