scottkosty / install-tl-ubuntu Goto Github PK
View Code? Open in Web Editor NEWInstall script for TeX Live on Ubuntu
License: GNU General Public License v2.0
Install script for TeX Live on Ubuntu
License: GNU General Public License v2.0
Hello. Deepin is based on Debian's stable branch and I tried this script in the past on Ubuntu and worked great.
On Ubuntu 14.04.2,
sudo ./install-tl-ubuntu --hebrew --more-tex
results
logname: no login name
It is followed by another error (?) message a bit later:
sudo: unknown user:
sudo: unable to initialise policy plug-in
Any consequences I should be worried about..?
Three days ago, TeX Live 2015 was released, and I wanna upgrade my TeX Live 2014 to this version using the script. I installed TeX Live 2014 with this script.
I need the base texlive
and texlive-xetex
for a github action, which definitely should not install the 5GB texlive-full
, so: is that possible? The README.md does not indicate which version of texlive gets installed, making it impossible to tell whether additional components need to be installed with tlmgr
or not, and whether this script is even a viable option (because if it can only grab texlive-full
that makes it unsuitable for github actions)
Action code:
- name: Installing TeX Live
run: |
apt-get update
wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu
chmod +x ./install-tl-ubuntu
./install-tl-ubuntu
tlmgr --version
Which should, reasonably speaking, just work. Instead it does this:
| --2020-06-07 18:57:18-- https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu
| Resolving github.com (github.com)... 140.82.113.3
| Connecting to github.com (github.com)|140.82.113.3|:443... connected.
| HTTP request sent, awaiting response... 302 Found
| Location: https://raw.githubusercontent.com/scottkosty/install-tl-ubuntu/master/install-tl-ubuntu [following]
| --2020-06-07 18:57:18-- https://raw.githubusercontent.com/scottkosty/install-tl-ubuntu/master/install-tl-ubuntu
| Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.52.133
| Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.52.133|:443... connected.
| HTTP request sent, awaiting response... 200 OK
| Length: 36820 (36K) [text/plain]
| Saving to: 'install-tl-ubuntu.2'
|
install-tl-ubuntu.2 100%! (BADINDEX) 35.96K --.-KB/s in 0.02s
|
| 2020-06-07 18:57:19 (2.09 MB/s) - 'install-tl-ubuntu.2' saved [36820/36820]
|
| ./install-tl-ubuntu: line 356: lsb_release: command not found
| install-tl-ubuntu: checking for TeX Live environment variables...
| ./install-tl-ubuntu: line 299: sudo: command not found
| install-tl-ubuntu: running apt and dpkg commands...
At the very least this should be able to run without sudo
if it's already running with superuser permissions.
When ./install-tl-ubuntu
is run, it does not finish. The log file "install-tl-ubuntu_EXTRAS.log" is attached (changed to .txt). The errors came after a 404 not found while trying to connect to "http://mirror.utexas.edu/ctan//install-tl-unx.tar.gz".
I tried installing tl-ubuntu
, and now I would like to remove it.
Is there an option in the script? Or else, which files and directories need to be manually removed? Which system files have been changed, and need to be changed back?
Thank you.
You have been doing quite a lot of change since the last release (in 2014!) so you should probably program a new one.
Some people prefer downloading the tar.gz in the release section instead of cloning the git repo because release are supposed to be stable, which is not always the case for git repos.
An automated system that cycles through mirrors and finds the fastest one would be good!
Hi, I would just like to say that this is a fantastic script; it looks like the perfect solution to the problem I was having being stuck using Linux Mint 17's TeXLive 2013, so thanks!
It looks like because of poor network connectivity, the download of TexLive 2016 from the fastest available repo will take ~11 hours. So I will probably have to kill it, as our machines here at work get automatically shut down after work hours. Will the script be able to figure out where it left off in a subsequent run?
Here is what I get in a naive run:
install-tl-ubuntu: no repository was specified so using the following:
http://mirror.utexas.edu/ctan/systems/texlive/tlnet
install-tl-ubuntu: ERROR: required file, debian-control-texlive-in.txt, does not exist.
this TeX.SX question: http://tex.stackexchange.com/q/114623/8057
I just found out, that the mirror selection only works with the 'time' package installed. Perhaps you can add that as prereq?
For several days I have problems with the internet. The internet goes time to time and downloading packets is interrupted. The most frustrating thing is that the download starts again from scratch. There would be some form of texlive-tl-ubuntu to restart the download from where the download was interrupted? Sorry for my English.
Today, when you do ./install-tl-ubuntu --help
, the description section begins with:
DESCRIPTION
This script uses the TeX Live 2016 installer to install TeX Live so that LaTeX
packages can be updated through CTAN with tlmgr. To do this, the official TeX
Live 2016 installer is downloaded...
but that description is out-of-sync with the README.md
file which says:
Does not support HTTP, network instability may lead to installation failure.
i don't tried to install your package on debian.
i would like to know if i can or not?
if for some reasons i can't, doe's it exist an equivalent way. which one?
thanks
Hello,
I've installed a fresh Ubuntu Subsystem and runt he script with the following result:
[sudo] password for schorschie:
install-tl-ubuntu: checking for TeX Live environment variables...
install-tl-ubuntu: running apt and dpkg commands...
install-tl-ubuntu: determining the fastest repository...
install-tl-ubuntu: the fastest repo is: http://vesta.informatik.rwth-aachen.de/ftp/pub/mirror/ctan
install-tl-ubuntu: downloading and extracting install-tl for time number 1...
install-tl-ubuntu: install-tl downloaded and extracted successfully.
install-tl-ubuntu: starting install-tl for time number 1...
install-tl-ubuntu: going to run the following command:
echo "i" | ./install-tl -repository "http://vesta.informatik.rwth-aachen.de/ftp/pub/mirror/ctan/systems/texlive/tlnet/" -v -logfile "/home/schorschie/install-tl-1.log"
progress: [4057/4068, time/total: 14:54/14:54]
running config scripts (could take up to 10 mins)...
install-tl-ubuntu: install-tl finished successfully.
install-tl-ubuntu: linking...
install-tl-ubuntu: WARNING: previous TeX Live install detected. Link will be updated so
that the newer installation is used. However, the old installation will not be removed
by this script, so if you are concerned about space, please consider removing the old
TeX Live directory. If space if not a concern, no action is needed.
install-tl-ubuntu: installing Evince AppArmor fix for TeX Live fonts...
install-tl-ubuntu: installing tlmgr.desktop...
ln: failed to create symbolic link 'UbuntuTexDir': File exists
install-tl-ubuntu: running texhash...
install-tl-ubuntu: texhash was successful.
install-tl-ubuntu: Tue Oct 6 11:13:10 CEST 2020: Finished (all successful).
install-tl-ubuntu: you might need to restart your computer
so that your PATH (in /etc/environment) will be sourced.
It seems, that everything worked. I rebooted the computer and restarted the wls, but:
schorschie@DESKTOP-1H52M59:~$ pdflatex
Command 'pdflatex' not found, but can be installed with:
sudo apt install texlive-latex-base
Any Idea what's wrong?
regards
Gregory
I have recently loaded the fonts from the culmus project to ctan, both in 8-bit format and in opentype format (but I don't think I have loaded any fonts from culmus-fancy, do you need them?). The version in TeX Live is up to date, and will be maintained. Installing the files from source-forge is not recommended as it can override the new version.
Hi,
how were the packages for the current debian-control-texlive-in.txt in the repo chosen? I installed texlive on my Ubuntu 17.04 system and read the warning. Then I thought that it may just be all the packages contained in texlive-full. Running apt install texlive-full on my system would install all the following packages:
aglfn asymptote biber blt chktex cm-super cm-super-minimal context dvidvi dvipng feynmf fonts-arphic-bkai00mp
fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-gkai00mp fonts-baekmuk fonts-cabin fonts-comfortaa
fonts-croscore fonts-crosextra-caladea fonts-crosextra-carlito fonts-ebgaramond fonts-ebgaramond-extra
fonts-font-awesome fonts-freefont-otf fonts-gfs-artemisia fonts-gfs-baskerville fonts-gfs-complutum fonts-gfs-didot
fonts-gfs-neohellenic fonts-gfs-olga fonts-gfs-porson fonts-gfs-solomos fonts-hosny-amiri fonts-ipaexfont-gothic
fonts-ipaexfont-mincho fonts-ipafont-gothic fonts-ipafont-mincho fonts-junicode fonts-linuxlibertine fonts-lobster
fonts-lobstertwo fonts-oflb-asana-math fonts-roboto-hinted fonts-sil-gentium fonts-sil-gentium-basic
fonts-sil-gentiumplus fonts-sil-gentiumplus-compact fonts-stix fonts-unfonts-core fonts-unfonts-extra fragmaster
freeglut3 lacheck latex-cjk-all latex-cjk-chinese latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphic-bsmi00lp
latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp latex-cjk-common latex-cjk-japanese
latex-cjk-japanese-wadalab latex-cjk-korean latex-cjk-thai latexdiff latexmk lcdf-typetools libalgorithm-c3-perl
libautovivification-perl libb-hooks-endofscope-perl libbtparse1 libbusiness-isbn-data-perl libbusiness-isbn-perl
libbusiness-ismn-perl libbusiness-issn-perl libclass-c3-perl libclass-factory-util-perl libclass-singleton-perl
libdata-compare-perl libdata-dump-perl libdata-optlist-perl libdata-uniqid-perl libdate-simple-perl
libdatetime-calendar-julian-perl libdatetime-format-builder-perl libdatetime-format-strptime-perl
libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libdevel-stacktrace-perl libencode-eucjpms-perl
libencode-hanextra-perl libencode-jis2k-perl libeval-closure-perl libexception-class-perl libexporter-tiny-perl
libfile-find-rule-perl libfile-slurp-perl libfile-slurp-tiny-perl libfile-slurp-unicode-perl libipc-run3-perl
liblist-allutils-perl liblist-moreutils-perl liblist-someutils-perl liblist-utilsby-perl liblog-log4perl-perl
libmodule-implementation-perl libmodule-runtime-perl libmro-compat-perl libnamespace-autoclean-perl
libnamespace-clean-perl libnumber-compare-perl libosp5 libostyle1c2 libpackage-deprecationmanager-perl
libpackage-stash-perl libparams-classify-perl libparams-util-perl libparams-validate-perl
libparams-validationcompiler-perl libplot2c2 libpoppler-qt4-4 libpstoedit0c2a libreadonly-perl libregexp-common-perl
librole-tiny-perl libscalar-list-utils-perl libsort-key-perl libspecio-perl libsub-exporter-perl
libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libtest-fatal-perl libtext-bibtex-perl
libtext-csv-perl libtext-csv-xs-perl libtext-glob-perl libtext-roman-perl libtext-unidecode-perl libtie-cycle-perl
libtry-tiny-perl libunicode-collate-perl libvariable-magic-perl libxml-libxml-simple-perl libxml-libxslt-perl
libxml-writer-perl openjade pfb2t1c2pfb prerex preview-latex-style prosper pstoedit psutils purifyeps python-pil
python-pil.imagetk python-tk tex-gyre texinfo texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils
texlive-font-utils texlive-fonts-extra texlive-fonts-extra-doc texlive-fonts-recommended
texlive-fonts-recommended-doc texlive-formats-extra texlive-full texlive-games texlive-generic-extra
texlive-generic-recommended texlive-htmlxml texlive-humanities texlive-humanities-doc texlive-lang-african
texlive-lang-arabic texlive-lang-chinese texlive-lang-cjk texlive-lang-cyrillic texlive-lang-czechslovak
texlive-lang-english texlive-lang-european texlive-lang-french texlive-lang-german texlive-lang-greek
texlive-lang-indic texlive-lang-italian texlive-lang-japanese texlive-lang-korean texlive-lang-other
texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-latex-base texlive-latex-base-doc
texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex
texlive-metapost texlive-metapost-doc texlive-music texlive-omega texlive-pictures texlive-pictures-doc
texlive-plain-extra texlive-pstricks texlive-pstricks-doc texlive-publishers texlive-publishers-doc texlive-science
texlive-science-doc texlive-xetex tipa tk8.6-blt2.5 ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis vprerex
Would it be appropiate to update the debian-control-texlive-in.txt to contain these packages for Ubuntu 16.04 and higher or are some packages in there that cannot get statisfied by the vanilla texlive installation and that are special to the apt-package?
I'm trying to install texlive on a vagrant vm (specifically this Ubuntu 16.04 bento box), but the script is simply failing when I try to use an iso image as source.
vagrant@vagrant:/vagrant$ sudo ./install-tl-ubuntu --iso iso/texlive2016-20160523.iso
Killed
No log files were generated. Now if I run the script as default, there are no problems, but I really would like to avoid the pain to download every time the source.
vagrant@vagrant:/vagrant$ sudo ./install-tl-ubuntu
install-tl-ubuntu: WARNING: this script currently supports Ubuntu 12.04, 12.10, 13.04, 13.10, and 14.04.
For other versions, one would probably want to use a different
debian-control-texlive-in.txt file.
install-tl-ubuntu: downloading the Debian control file...
--2016-09-20 21:03:05-- https://raw.github.com/scottkosty/install-tl-ubuntu/master/debian-control-texlive-in.txt
Running the same script file and using the iso as source, but on my own real Xubuntu 16.04 machine, is also working ok (at least in first glance)
➜ sudo ./install-tl-ubuntu --iso iso/texlive2016-20160523.iso
install-tl-ubuntu: WARNING: this script currently supports Ubuntu 12.04, 12.10, 13.04, 13.10, and 14.04.
For other versions, one would probably want to use a different
debian-control-texlive-in.txt file.
install-tl-ubuntu: downloading the Debian control file...
--2016-09-20 18:11:09-- https://raw.github.com/scottkosty/install-tl-ubuntu/master/debian-control-texlive-in.txt
Any idea what could be wrong?
Although the --hebrew option installs the culmus font package, and enables compiling Hebrew, it does not install the culmus-latex package which, as far as I understand it, is needed in order to use the entire variety of the culmus fonts, as well as the Nikud.
I also did not manage to install it using tlmgr
as it is not in the repository.
The package has it's own installation process, but it failed when I tried it.
You can see the difference in the compilation of an example file provided in the culmus-latex package between a compilation with the package (on the left - texlive is installed in the usual Ubuntu way) and without it (on the right - texlive installed using install-tl)
As it stands, it seems like a full installation of Texlive must be done, it'd be good if there were some sort of option allowing for not every single package to be installed.
The current setting only allows TeX Live fonts to be loaded. We should also include the permission of running mktexpk
, mktextfm
, dvipdfm
and mkofm
for evince
to view dvi
files (https://www.tug.org/texlive/debian.html):
${MAINTEXDIR}/bin/x86_64-linux/mktexpk Cx -> sanitized_helper,
${MAINTEXDIR}/bin/x86_64-linux/mktextfm Cx -> sanitized_helper,
${MAINTEXDIR}/bin/x86_64-linux/dvipdfm Cx -> sanitized_helper,
${MAINTEXDIR}/bin/x86_64-linux/mkofm Cx -> sanitized_helper,
and also modify ubuntu-helper
(I don't know what is the correct way to modify this file - there is no local file), adding
${dTEXMFDIST}/web2c/{,**/}* Pixr,
${MAINTEXDIR}/bin/x86_64-linux/* Pixr,
Since it takes a long time to install the packages, it'd be good if there was some sort of indication of progress. Perhaps if the console could echo the package it's up to e.g. [1043/2500].
The script tells me that it may not support "other version" (means 16.04) of Ubuntu.
It write something about a debian-control-texlive-in.txt
file. But I don't know what it is or what it does.
The install itself runs. But I am not sure if everything is ok.
I understand that your code creates and installs an "equivs" package during installation. What's the advantage compared to a PPA?
https://www.tug.org/texlive/acquire.html
TeX Live 2017 was released today.
This after running ./install-tl-ubuntu
:
...
install-tl-ubuntu: downloading and extracting install-tl for time number 1...
install-tl-ubuntu: install-tl downloaded and extracted successfully.
install-tl-ubuntu: ERROR: cannot find install-tl dir to cd into.
When I run ls
on the dir:
AUTHORS install-tl-2.log install-tl-ubuntu_EXTRAS.log
debian-control-texlive-in.txt install-tl-3.log install-tl-unx.tar.gz
example.profile install-tl-4.log LICENSE
findEquivs install-tl-5.log mirrorCandidates.log
install-tl-1.log install-tl-6.log mirrorWgets.log
install-tl-20140817 install-tl-7.log README.md
install-tl-20140818 install-tl-ubuntu
There's no clan way to install asymptote
without pulling in texlive-binaries
and texlive-common
. Need an equivs
package here, too.
See also krlmlr/texlive-dummy-ubuntu#3.
Ubuntu 14.04
I get WARNING: dpkg could not install dummy TeX Live package when running the script (with the -m option)
(Just tried it without -m : Same problem)
Then I try to run it manually - this is what I get:
root@wlr-laptop:/tmp# dpkg -i tmp.RxjO2Hl7Jg/texlive-local_2014-19_all.deb9_all.deb containing texlive-local:
dpkg: regarding .../texlive-local_2014-1
texlive-binaries conflicts with makejvf
texlive-local provides makejvf and is to be installed.
dpkg: error processing archive tmp.RxjO2Hl7Jg/texlive-local_2014-19_all.deb (--install):9_all.deb
conflicting packages - not installing texlive-local
Errors were encountered while processing:
tmp.RxjO2Hl7Jg/texlive-local_2014-1
root@wlr-laptop:/tmp# aptitude show makejvf
Package: makejvf
State: not installed
Version: 1.1a+0-2
Priority: optional
Section: universe/tex
Maintainer: Atsuhito KOHDA [email protected]
Architecture: amd64
Uncompressed Size: 94,2 k
Depends: libc6 (>= 2.3.4-1)
Conflicts: makejvf
Provided by: texlive-binaries
Description: generate VF file from japanese TeX TFM file for dvips
Not really an issue, more of a /in case you didn't know/. TexLive 2016 was released a few days ago. Time willing, I will try to see if I can do a PR and update the script to cater for it.
Thanks for the script.
When specifying a profile file to be used with the -p, --profile option, it is necessary to specify the full path to the profile file. The reason is that when install-tl-ubuntu executes install-tl, the later will search for profile files in its relative path, unless a full path is specified. And 'install-tl' is within the install-tl-20150126/ directory, downloaded by install-tl-ubuntu in the same folder.
For example, suppose that install-tl-ubuntu and example.profile are downloaded to the '/home/myuser/Download' directory. The following
cd /home/myuser/Download
sudo ./install-tl-ubuntu -p example.profile
will not work (check the logs to verify) in the sense that the profile file will not be used (the process will continue with no complaints). Use instead
cd /home/myuser/Download
sudo ./install-tl-ubuntu -p /home/myuser/Downloads/example.profile
Personally, I'm only interested in a --source-only
, but I imagine others might have use for all the fonts, etc. in their testing.
Fonts and documentation are roughly 1.5GB each. For some purposes (Travis, in my case), they aren't worth downloading.
See http://tex.stackexchange.com/q/119759/17423 for a breakdown of the distribution size.
From my clean install of Linux Mint 17.3 /opt
is not created by default and causes the following error and stops the script:
install-tl-ubuntu: linking...
ln: failed to create symbolic link ‘/opt/texbin’: No such file or directory
install-tl-ubuntu: ERROR: could not link.
which I was able to fix by adding the /opt
using a command like sudo mkdir --mode=755 /opt
and rerunning the script.
Just as a reference, I referred to this link (I'm not very experienced with Linux)
http://askubuntu.com/questions/604203/opt-folder-missing-in-ubuntu-14-04
After updating from TL 2013 to TL 2014 the links in /opt/texbin still point to the previous installation.
I'm not sure if this is intended, but doesn't allow for a full upgrade. The automatic change of this symlinks will be nice.
First, thank you for creating this script.
While reading the documentation on tug.org, I notice they have Depends: freeglut3
in debian-equivs-2022-ex.txt, which is not present in debian-control-texlive-in.txt
Is this is deliberate choice? Thank you
Running a fresh clone of the repo. Getting the following errors when executing ./install-tl-ubuntu
./install-tl-ubuntu: line 2: $'\r': command not found
./install-tl-ubuntu: line 3: $'\r': command not found
./install-tl-ubuntu: line 5: $'\r': command not found
./install-tl-ubuntu: line 8: $'\r': command not found
./install-tl-ubuntu: line 9: $'\r': command not found
./install-tl-ubuntu: line 11: $'\r': command not found
./install-tl-ubuntu: line 24: $'\r': command not found
./install-tl-ubuntu: line 25: $'\r': command not found
: invalid option nameline 26: set: nounset
./install-tl-ubuntu: line 27: $'\r': command not found
./install-tl-ubuntu: line 28: syntax error near unexpected token `$'\r''
'/install-tl-ubuntu: line 28: `function clean_up ()
Even though /opt/texbin
was automagically added to $PATH (as seen from the output of echo $PATH
), when I try to run tlmgr as root with sudo tlmgr
I get sudo: tlmgr: command not found
. My ugly workaround is to go cd /opt/texbin
and then sudo ./tlmgr
.
I'm running Ubuntu 14.04
Crappy uni network might have something to do with it, but:
http://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/
)In particular, downloads failed when attempting to retrieve the file ctan/systems/texlive/tlnet/archive/texlive-scripts.tar.xz
which upon manual inspection is not present in those repositories. Is that particular archive not part of the core ctan distribution and therefore not always mirrored?
I tried to run sudo texhash in advance of installing a cls file, and the command is not found. Additionally, I have no idea where the texmf tree is (kpsewhich -var-value=TEXMFHOME gives me /home/username/texmf, which does not exist), so I don't know how I can install new packages or class files. TeX Live Manager does not work after install either.
It seems that the “as of writing, TeX Live 2019” in the Features section of the README.md and the two “TeX Live 2016 installer” in the Description section confuse some users. They think, the script is still either for TeX Live 2019 or TeX Live 2016 only. See e.g. pglpm's comments to this question at TeX.Stackexchange. So maybe it would be a good idea to remove the “as of writing” note and reduce the other to “TeX Live installer” or “TeX Live installer (latest version)”.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.