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
.texfile. Try the command<editor> ~/.profile, where<editor>is your favourite text editor (e.g.,emacsorgeditornanoor -- dare I say it? --vi). Note that you need administrator powers for/etc/environment, so you'd do something likesudo emacs /etc/environmentif you want to go there. (I use~/.profile, personally.) – jon Jul 10 '15 at 13:38cat file, e.g.cat ~/.bashrc. They are just text files, so running them makes no sense. – daleif Jul 10 '15 at 13:40sudo gedit ~/.profileand guide me accordingly. Sorry for bothering you again and again for such small this but this is a very serious problem for me. – MYaseen208 Jul 10 '15 at 13:56sudofor files in your HOME directory (=~/=/home/<user>/. You should just usegedit ~/.profileas I wrote. I'm still using TL 2014, but you probably want: to add the line:PATH=/usr/local/texlive/2015/bin/i386-linux/:$PATHat the end of the file.profile. – jon Jul 10 '15 at 13:59MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATHandINFOPATH=/usr/local/texlive/2015/texmf-dist/doc/info:$INFOPATH. (But I'm not on 2015 yet, so you should check.). Then, to apprise your session of the changes,source ~/.profile. – jon Jul 10 '15 at 14:00