Mint 14 (mate) 已經end-of-life, 2個月前更新了工作用的電腦. 現在留下一個記錄.
如果沒有太多customization, 其實直接安裝mint 17 再copy home directory back 比較方便.
Reference:
- http://www.linuxmint.com/oldreleases.php
- https://wiki.ubuntu.com/Releases
- https://gist.github.com/hgomez/7074150
- http://www.tecmint.com/upgrade-linux-mint-16-to-linux-mint-17/
Mint version | Mint codename | Ubuntu version | Ubuntu codename |
17 | Qiana | 14.04 LTS | Trusty |
16 | Petra | 13.10 | Saucy |
15 | Olivia | 13.04 | Raring |
14 | Nadia | 12.10 | Quantal |
Step 1: Backup
$ sudo cp /etc/apt/sources.list ~/sources.list.org備份home 連同其他有需要directories, mysqldump, CloneZilla image ….etc.
Step 2: verify current version
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ sudo cat /etc/issue.net && echo -e \\n && cat /etc/lsb-release && echo -e && cat /etc/os-release Linux Mint 14 Nadia DISTRIB_ID=LinuxMint DISTRIB_RELEASE=14 DISTRIB_CODENAME=nadia DISTRIB_DESCRIPTION="Linux Mint 14 Nadia" NAME="Ubuntu" VERSION="12.10, Quantal Quetzal" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu quantal (12.10)" VERSION_ID="12.10" |
Step 3: mint 14 升級到 mint 17
將code name 改到 17
1 2 3 4 5 6 7 |
$ sudo sed -i 's/quantal/trusty/' /etc/apt/sources.list $ sudo sed -i 's/nadia/qiana/' /etc/apt/sources.list $ sudo sed -i '/medibuntu/s/^/#/' /etc/apt/sources.list # medibuntu has been closed $ sudo apt-get update && sudo apt-get dist-upgrade 1998 upgraded, 534 newly installed, 31 to remove and 4 not upgraded. Need to get 1,463 MB of archives. After this operation, 1,415 MB of additional disk space will be used. |
過程中會有問題要回答, Yes 就可以
例如 “install the package maintainer’s version”? <<– Yes
“Restart service during package upgrades without asking?” <<– Yes
有些package 會有問題, 例如
1 2 3 4 5 6 7 8 9 |
npacking libmatekbd-common (1.8.0-0+qiana) ... dpkg: error processing archive /var/cache/apt/archives/libmatekbd-common_1.8.0-0+qiana_all.deb (--unpack): trying to overwrite '/usr/share/locale/gu/LC_MESSAGES/libmatekbd.mo', which is also in package libmatekbd 1.4.0-1+precise No apport report written because MaxReports is reached already Processing triggers for libglib2.0-0:i386 (2.40.0-2) ... Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ... Errors were encountered while processing: /var/cache/apt/archives/libmatekbd-common_1.8.0-0+qiana_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) |
再執行強制更新, 然後重新啟動
1 2 3 4 5 6 7 8 |
$ sudo apt-get -f install .... Answer Yes to "install the package maintainer's version" $ sudo apt-get dist-upgrade ....... $ sudo apt-get upgrade ..... $ sudo shutdown -r now |
Step 4: 第一次登入
輸入用戶名稱及密碼, 登入 >> 失敗!! 黑畫面.
1 |
$ sudo apt-get dist-upgrade -t trusty |
都係唔得, fail to display xsession (in /etc/X11/Xsession.d/ 00…. pointing to /usr/bin/gnome-session)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ cat ~/.xsession-errors /etc/mdm/Xsession: Beginning session setup... localuser:steve being added to access control list Script for ibus started at run_im. Script for auto started at run_im. Script for default started at run_im. Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Script for ibus started at run_im. Script for auto started at run_im. Script for default started at run_im. x-session-manager[4190]: CRITICAL: We failed, but the fail whale is dead. Sorry.... |
可以install lightdm 代替mdm $ sudo apt-get install lightdm 最後找到原因, 不用install lightdm. 其實係default option: last session 唔得, 要改用MATE.
Step 5: verify
official repository 如下.
1 2 3 4 5 6 7 8 |
$ sudo vim /etc/apt/sources.list.d/official-package-repositories.list deb http://packages.linuxmint.com qiana main upstream import deb http://extra.linuxmint.com qiana main deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ trusty partner |
repeat step 2
完成!! 其他tweaking 另外再說