Thursday, 21 April 2016

Upgrade to Ubuntu 16.04 with Aptik

Ubuntu-16.04-upgrade-with-aptik.md

Upgrade to Ubuntu 16.04 with Aptik

Ubuntu 16.04 was just released a few hours ago. Here’s the easy way to upgrade to Xenial using the Aptik Migration Utility.

1. Install Aptik on your current system

Open a terminal window and run the following commands to install Aptik.

sudo apt-add-repository -y ppa:teejee2008/ppa ; \
sudo apt-get update ; \
sudo apt-get install aptik

Note: Copy-paste the entire text given above. Don’t copy line by line.

2. Backup your current system

  1. Plug-in a portable hard-disk or a USB thumb drive with enough free space (8GB or more is recommended).

  2. Start Aptik from the Application Menu and select a folder on the portable disk as the backup location.

https://1.bp.blogspot.com/-USQkqQAYyUU/Vxj_ymwBnbI/AAAAAAAADX8/UHsrw9b2PA4oXRAlB6aMywVDp4z7siXNQCLcB/s1600/Aptik%2BMigration%2BUtility%2Bv16.4.2_005.png

  1. Click on the “One-Click Backup” button and let it finish. This will create a backup of pretty much everything on your current system.

3. Install Ubuntu 16.04

Download Ubuntu 16.04 from the official website and do a fresh installation.

4. Restore Backups

  1. Install Aptik again on the new system using the command given in Step 1.

  2. Plug-in the hard disk that was used earlier and select the backup folder in Aptik.

  3. Click on the “One-Click Restore” button and let it finish. This may take a while as all the softwares that you had on your previous system will be re-installed.

Tips:

Reset Desktop Layout

Restoring the Application Settings will also restore your desktop layout from the previous system. In case you want a fresh desktop, you need to run the following commands, log-out and then log-in again.

Note: Copy-paste the entire text given below in a terminal window. Don’t copy line by line.

Cinnamon:

rm -rf $HOME/.cinnamon ; \
rm -rf $HOME/.config/cinnamon-session ; \
rm -rf $HOME/.local/share/cinnamon ; \
dconf reset -f /org/cinnamon/

Unity:

dconf reset -f /org/compiz/

Xfce (source):

xfce4-panel --quit ; \
pkill xfconfd ; \
rm -rf $HOME/.config/xfce4/panel ; \
rm -rf $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ; \
xfce4-panel

MATE:

rm -rf $HOME/.config/mate ; \
mate-panel --reset

Note: You need to log out and log-in again for the changes to take effect.

Free Up Disk Space by Clearing APT Cache

Run the following command to delete downloaded packages in the cache located at /var/cache/apt/archives. This should free up nearly 1-2 GB on your system.

sudo apt-get autoclean

In case you plan to re-install some software in the future and wish to keep the downloaded packages, run the following command instead:

sudo apt-get clean

This will delete older package versions from the cache (new versions will be kept).

Install the Latest Linux Kernel

Xenial comes with Linux v4.4.6 which is already one month old. You can upgrade to the latest mainline kernel (v5.1 as of now) using the Ubuntu Kernel Update Utility.

16 comments:

  1. Thanks a lot for this post and this utility.
    A painful process transformed to painless one!

    ReplyDelete
    Replies
    1. Just to add one improvement..
      when i backed up the applications settings individually.. it only backed up root user, as that one is selected by default. It would be nice if it can notify this that only selected user was backed up.. It is easy to miss, as i missed it. Though .bashrc or .profile that i was interested in did not had much of the content difference from root's , it didnt had much impact.. but a notification about what the utility did.. would be better.
      Thanks for this good utility.

      Delete
    2. I'll change this in the next update

      Delete
  2. This is a timeshift question, I hope that is ok. I installed timeshift but the backup device pulldown menu will not let me select any devices, no usb sticks, no other partitions.The only choice is /dev/sda5 etc...

    Am I doing something wrong? peasnsod@yahoo.com

    ReplyDelete
    Replies
    1. The pull-down menu will display only Linux partitions. It looks like /dev/sda5 is the only Linux partition on your system. Format a USB stick with EXT3. It will show up in the menu.

      Delete
    2. Hi Tony,
      In following up the TimeShift conversation, a USB stick can't be added to a VPS in the cloud! It would be good if TimeShift could connect to a remote backup server, which would avoid backing up to the VPS's drive and copying separately. Rsync?
      Thanks for your utilities.
      John

      Delete
    3. Copying snapshots to a remote server is not supported since it will break the hard-links between snapshots. The snapshots can be copied manually to the remote server but this will create a new copy of each hard-linked file.

      Delete
  3. What about a /opt & /usr/local backup option ?

    ReplyDelete
  4. thank you for making this software

    ReplyDelete
  5. Thanks for this. Makes a clean install a breeze.

    ReplyDelete
  6. Conky Lua next generation from Conky Manager doesn't work in Linux Mint 18. Could you make it to work again?

    Thank you!

    ReplyDelete
  7. LOVE THIS APP! I moved from one Ubuntu 16.04 machine to another painlessly.

    One small bug or improvement: It didn't move my current Unity menu settings over.

    ReplyDelete
  8. One more improvement suggestion: Copy VPN setups.

    ReplyDelete
  9. Any chances of creating an AppImg portable version of Aptik?

    ReplyDelete
  10. thanks for this software I tell my all friends they use this software Thanks for sharing with us



    blackfridaysale

    ReplyDelete

If you are reporting an issue and commenting as an anonymous user, please leave your email address so that I can get in touch with you.