[Tex/LaTex] Upgrading Tex Live from 2013 to 2015 on Ubuntu 14.04

pathstexliveUbuntu

I upgraded Tex Live from 2013 to 2015 on Ubuntu 14.04 using the guidelines given in this nice answer. But have some problems. After upgrading when I check the version of Tex Live using tex --version command it gives the the following information:

TeX 3.1415926 (TeX Live 2013/Debian)
kpathsea version 6.1.1
Copyright 2013 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

However, after changing the PATH (as explained in this answer) through:

export PATH=/usr/local/texlive/2015/bin/i386-linux/":$PATH"

if I check the version of Tex Live using tex --version command it gives the the following information:

TeX 3.14159265 (TeX Live 2015)
kpathsea version 6.2.1
Copyright 2015 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

But after closing the terminal, the PATH again reset to original PATH and show the TeX Live 2013 version. I would highly appreciate if someone help me figure out this problem and have to delete Tex Live 2013. Thanks in advance for your help.

Edited

yaseen@yaseen:~$ /etc/environment
bash: /etc/environment: Permission denied
yaseen@yaseen:~$ ~/.profile
bash: /home/yaseen/.profile: Permission denied
yaseen@yaseen:~$ ~/.bashrc
bash: /home/yaseen/.bashrc: Permission denied

Contents of sudo gedit ~/.profile

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Best Answer

It seems like you just typed the export PATH=... into the console.

Write this into your ~/.profile and check after you opened a new console.