Upgrade from Linux Mint 16 Petra to Linux Mint 17 Qiana

I will be presenting the process of upgrading using the apt command line tool.

So first update the apt repositories

 sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list
 sudo sed -i 's/petra/qiana/' /etc/apt/sources.list
 sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list
 sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list

Then make the system upgrade

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get upgrade

The apt manager will ask you for keeping various configuration files during the upgrade. I chose to replace them with the new ones.

How to fix xdg-open in Mate DE

Users of Linux Mint or other GNU/Linux distributions that use MATE Desktop environment have surely encountered this problem where xdg-open does not work properly.

This is most often seen when using Chromium  browser and trying to open a downloaded file. Almost every time it fails to open the file with the right software. To fix this you have to fix xdg-open.

Here is a quick fix:

  1. Go to Menu > Terminal
  2. Enter gksu pluma /usr/bin/xdg-open
  3. Search for detectDE(), then above this line else DE=””, insert a new line:
    elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate;
    
  4. Search for open_gnome(), then after the section of open_gnome() {…}, insert a new section:
    open_mate()
    {
    if gvfs-open --help 2>/dev/null 1>&2; then
    gvfs-open "$1"
    else
    mate-open "$1"
    fi
    if [ $? -eq 0 ]; then
    exit_success
    else
    exit_failure_operation_failed
    fi
    }
    
  5. Search for this line case “$DE” in, and after this line, add a new section:
    mate)
    open_mate "$url"
    ;;
    
  6. Save the file and retry the download links.