It is my understanding that you tried to install the official TeXLive
packages through Ubuntu repositories by running sudo apt-get install texlive-full
in Ubuntu 12.04 but hit a wall at some point. The links provided by @JosephWright is a good start. The answers and links there were what helped me when I had the same problem with TexLive in Ubuntu 12.04 two months ago.
I don't know if the TeXLive in the Ubuntu repositories is now updated to 2012. Last time I checked (2 months ago) it was still TeXlive 2009. So if you have already installed TeXLive by running sudo apt-get install texlive-full
you may want to uninstall it again by running sudo apt-get remove texlive-full
in your terminal then follow the online installation procedure here.
Specifically, you download install-tl-unx.tar.gz
and extract to your desired folder, say at ~/Downloads.
In your terminal type cd
to the extracted folder and run sudo perl install-tl
. Type I
to install. You may accept default values. The installer will then download and install TeXLive from the nearest ctan
mirror near you. Take note of your installation path.
After the download has finished, run gedit ~/.profile
or alternatively, open your file browser and go to home
, hit ctrl+h
and run .profile.
At the end of the file, write the path to your texmf directory. For 32-bit computers, the default is:
PATH=/usr/local/texlive/2012/bin/i386-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2012/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2012/texmf/doc/info:$INFOPATH; export INFOPATH
For 64-bit computers, the default is:
PATH=/usr/local/texlive/2012/bin/x86_64-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2012/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2012/texmf/doc/info:$INFOPATH; export INFOPATH
Again, check the location of your texmf
carefully to avoid problems later on. Save the file and close it. To check if your installation is successful, run tex
in your terminal. It should show something like:
This is TeX, Version 3.1415926 (TeX Live 2012)
**
If it doesn't work, try rebooting.
To install texstudio
, run the following commands:
sudo add-apt-repository ppa:blahota/texstudio
sudo apt-get update
sudo apt-get install texstudio --ignore-depends=texlive
The --ignore-depends
option will cause dpkg
to ignore the dependency check.
After installation, you may have to configure texstudio but if there is no problem with the installation, it should work fine.
If all went well, you will find that xcoffins.sty
is also installed in your tex directory. Also, you can now update using tlmgr
. And texstudio will also work out just fine.
tlmgr
and you get what Ubuntu provides. On the other hand, you can install TeX Live yourself 'outside' of the system manager, then do your own thing.tlmgr
tool. Runtlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet
on a terminal to change the repository and then runtlmgr update --self --all
to updatetlmgr
itself and your installation; you need to run this last command when you want to update your installation. Here you can find a tutorial ontlmgr
. To install packages which are not included in the TeX Live distribution, see tex.stackexchange.com/q/1137/3954.