在 Ubuntu 14.04 上将 Tex Live 从 2013 升级到 2015

在 Ubuntu 14.04 上将 Tex Live 从 2013 升级到 2015

我使用给出的指南Tex Live从升级20132015Ubuntu 14.04在这个很好的答案中Tex Live。但是有一些问题。升级后,当我使用命令检查版本时,tex --version它给出以下信息:

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.

然而,在改变 PATH 之后(如这个答案) 通过:

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

Tex Live如果我检查使用命令的版本,tex --version它会提供以下信息:

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.

但关闭终端后,PATH再次重置为原始状态PATH并显示TeX Live 2013 version。如果有人能帮助我解决这个问题并删除,我将不胜感激Tex Live 2013。提前感谢您的帮助。

已编辑

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

内容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

答案1

看起来就像您刚刚export PATH=...在控制台中输入了内容。

将其写入您的控制台~/.profile并在打开新控制台后检查。

相关内容