一半君的总结纸

听话只听一半君

thinkpad t450s fedora 26 to 27 upgrade

一般照官方教程搞总是会出点问题的

  1. 升级当前的F26到最新
    sudo dnf upgrade --refresh
    

    结果出现错误提示

    failed:
      python2-urllib3.noarch 1.20-2.fc26                                                                                                                        
    
    Error: Transaction failed
    

    再来一遍,错误依旧

    [oglop@t450s]$ sudo dnf upgrade --refresh
    [sudo] password for oglop: 
    Last metadata expiration check: 0:00:00 ago on Sat 31 Mar 2018 05:02:58 PM PDT.
    Dependencies resolved.
    
     Problem 1: package qt5-qtbase-common-5.9.4-4.fc26.noarch obsoletes qt5-qtquick1 < 5.9.0 provided by qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64
      - package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64 requires libQt5Declarative.so.5()(64bit), but none of the providers can be installed
      - cannot install the best update candidate for package qt5-qtbase-common-5.7.1-19.fc26.noarch
      - problem with installed package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64
     Problem 2: package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64 requires libQt5Declarative.so.5()(64bit), but none of the providers can be installed
      - package qt5-qtbase-common-5.9.4-4.fc26.noarch obsoletes qt5-qtquick1 < 5.9.0 provided by qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64
      - cannot install the best update candidate for package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64
      - cannot install the best update candidate for package qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64
    ============================================================================================================================================================
     Package                                   Arch                             Version                                 Repository                         Size
    ============================================================================================================================================================
    Upgrading:
     python2-urllib3                           noarch                           1.20-2.fc26                             updates                           149 k
    
    Transaction Summary
    ============================================================================================================================================================
    Upgrade  1 Package
    
    Total download size: 149 k
    Is this ok [y/N]: y
    Downloading Packages:
    python2-urllib3-1.20-2.fc26.noarch.rpm                                                                                      317 kB/s | 149 kB     00:00    
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                       125 kB/s | 149 kB     00:01     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                    1/1 
      Upgrading        : python2-urllib3-1.20-2.fc26.noarch                                                                                                 1/2 
    Error unpacking rpm package python2-urllib3-1.20-2.fc26.noarch
    Error unpacking rpm package python2-urllib3-1.20-2.fc26.noarch
    error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename
    python2-urllib3-1.20-2.fc26.noarch was supposed to be installed but is not!
      Verifying        : python2-urllib3-1.20-2.fc26.noarch                                                                                                 1/2 
    python2-urllib3-1.20-1.fc26.noarch was supposed to be removed but is not!
      Verifying        : python2-urllib3-1.20-1.fc26.noarch                                                                                                 2/2 
    
    Failed:
      python2-urllib3.noarch 1.20-2.fc26                                                                                                                        
    
    Error: Transaction failed
    

    照搜到的指示先删除pip安装的urllib3,再次重复上面命令即可

    sudo pip uninstall urllib3
    
  2. 安装dnf插件
    sudo dnf install dnf-plugin-system-upgrade
    
  3. 下载升级文件

    sudo dnf system-upgrade download --releasever=27
    

    没想到这也会出错

    [oglop@t450s]$ sudo dnf system-upgrade download --releasever=27
    Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
    Fedora 27 - x86_64 - Updates                                                                                                3.6 MB/s |  21 MB     00:06    
    Fedora 27 - x86_64                                                                                                          2.9 MB/s |  58 MB     00:19    
    google-chrome                                                                                                                44 kB/s | 3.6 kB     00:00    
    RPM Fusion for Fedora 27 - Free - Updates                                                                                   420 kB/s | 352 kB     00:00    
    RPM Fusion for Fedora 27 - Free                                                                                             1.6 MB/s | 717 kB     00:00    
    Failed to synchronize cache for repo 'Dropbox', disabling.
    Last metadata expiration check: 0:00:00 ago on Sat 31 Mar 2018 05:21:59 PM PDT.
    Error: 
     Problem: package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64 requires libQt5Declarative.so.5()(64bit), but none of the providers can be installed
      - qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64 does not belong to a distupgrade repository
      - problem with installed package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64
    

    先把他删了

    oglop@t450s]$ sudo dnf update  qt5-qtquick1      
    Last metadata expiration check: 0:16:44 ago on Sat 31 Mar 2018 05:19:10 PM PDT.
    Dependencies resolved.
    
     Problem: package qt5-qtbase-common-5.9.4-4.fc26.noarch obsoletes qt5-qtquick1 < 5.9.0 provided by qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64
      - package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64 requires libQt5Declarative.so.5()(64bit), but none of the providers can be installed
      - cannot install the best update candidate for package qt5-qtbase-common-5.7.1-19.fc26.noarch
      - problem with installed package qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64
    Nothing to do.
    Complete!
    
    ~
    [oglop@t450s]$ sudo dnf remove  qt5-qtquick1
    Dependencies resolved.
    ============================================================================================================================================================
     Package                                    Arch                        Version                                         Repository                     Size
    ============================================================================================================================================================
    Removing:
     qt5-qtquick1                               x86_64                      5.7.1-1.2bc722agit.fc25                         @updates                      4.2 M
    Removing dependent packages:
     qt5-qtquick1-devel                         x86_64                      5.7.1-1.2bc722agit.fc25                         @updates                      1.3 M
     qt5-qtquick1-examples                      x86_64                      5.7.1-1.2bc722agit.fc25                         @updates                      9.8 M
    
    Transaction Summary
    ============================================================================================================================================================
    Remove  3 Packages
    
    Freed space: 15 M
    Is this ok [y/N]: y
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                    1/1 
      Erasing          : qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64                                                                               1/3 
      Erasing          : qt5-qtquick1-devel-5.7.1-1.2bc722agit.fc25.x86_64                                                                                  2/3 
      Erasing          : qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64                                                                                        3/3 
      Running scriptlet: qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64                                                                                        3/3 
      Verifying        : qt5-qtquick1-5.7.1-1.2bc722agit.fc25.x86_64                                                                                        1/3 
      Verifying        : qt5-qtquick1-devel-5.7.1-1.2bc722agit.fc25.x86_64                                                                                  2/3 
      Verifying        : qt5-qtquick1-examples-5.7.1-1.2bc722agit.fc25.x86_64                                                                               3/3 
    
    Removed:
      qt5-qtquick1.x86_64 5.7.1-1.2bc722agit.fc25   qt5-qtquick1-devel.x86_64 5.7.1-1.2bc722agit.fc25   qt5-qtquick1-examples.x86_64 5.7.1-1.2bc722agit.fc25  
    
    Complete!
    
  4. 重启进行升级
    sudo dnf system-upgrade reboot
    

    果然不出所料,升级后挂了,进不去桌面,停止在如下画面

    尝试重新安装375.39驱动(之前F26上使用的),结果提示少libelf包

    幸好wifi还能用,于是

    [oglop@t450s]$ dnf search libelf-dev
    Failed to synchronize cache for repo 'Dropbox', disabling.
    Last metadata expiration check: 0:44:38 ago on Sun 01 Apr 2018 05:50:53 PM PDT.
    ================================================================= Name Matched: libelf-dev =================================================================
    elfutils-libelf-devel.x86_64 : Development support for libelf
    elfutils-libelf-devel.i686 : Development support for libelf
    elfutils-libelf-devel-static.i686 : Static archive of libelf
    elfutils-libelf-devel-static.x86_64 : Static archive of libelf
    
    ~
    [oglop@t450s]$ sudo dnf install elfutils-libelf-devel
    

    不过装好以后再次安装还是不行,错误提示如下

    于是用优盘在另一台电脑下载了最新版驱动390.48, 拷贝到笔记本上安装,终于解决了

    oglop@t450s]$ sudo fdisk -l                                 
    ...
    Device     Boot Start      End  Sectors  Size Id Type
    /dev/sdd1        8064 30240767 30232704 14.4G  c W95 FAT32 (LBA)
    
    # 挂载优盘
    sudo mount  /dev/sdd1 /media/usb
    
    # 移除优盘
    sudo umount /media/usb
    

启动时闪现画面,不过不影响使用, 此bug被记录在这里

参考:
Upgrading Fedora 26 to Fedora 27
Bug 1187057 – Python-urllib3 fails to install
Bug 1459317 – ACPI Error / Exception AE_AML_OPERAND_TYPE

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

%d 博主赞过: