78

I'm not able to get past this error. I do not wish to do a fresh install of texlive. Why is texlive so frickin annoying? Why does it force me too fresh install? Why can't I just upgrade texlive like any other piece of software? Why can't I just use the older version? Why can't I live in peace?

nikhil@spyder:~/report$ tlmgr install listings
(running on Debian, switching to user mode!)
tlmgr: Remote repository is newer than local (2017 < 2018)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
6
  • 9
    Welcome! As it stands, this is more a rant than a question. What do you want help with? As you probably know, we are not responsible for the design of TeX Live. (Of course, someone who is may answer your question, but if you really want it answered as such, this isn't the best place.) I would say: it is not really TL which is annoying you, but Debian's packaging of TL. Luckily, you can install the packages you need using apt without needing to update your TL installation. If you had an upstream install, you could just keep using the 2017 version. So nothing forces you to update either way.
    – cfr
    May 2, 2018 at 16:38
  • Package updates might be using new features of TeX Live 2018, for instance.
    – egreg
    May 2, 2018 at 16:39
  • 3
    @cfr You are right. This was intended to be a question more than a rant but turned out to be the opposite. I still don't blame myself though. I simply wanted to get rid of this error and install the listings package peacefully. Sorry if that is not evident from the question. Thanks for your insights though. I wasn't aware that I could simply install packages using apt.
    – nikhilweee
    May 2, 2018 at 17:21
  • 1
    Or, you can switch to MiKTeX, if you prefer a rolling release model. Now MiKTeX is also available for Linux and MacOS and it's no longer a Windows-exclusive TeX distro.
    – andselisk
    Dec 4, 2018 at 21:54
  • 3
    What is the problem of downloading update-tlmgr-latest from the URL shown and run it? It is not more complicated as running tlmgr, and not "frickin annoying". What do you mean with "like any other piece of software"? If you talk about Linux software, then stick to the outdated distribution packages. If you talk about software in general, then note that e.g. under Windows basically ALL software need a new EXE downloaded and executed on major version changes. Jan 22, 2019 at 10:50

5 Answers 5

69

This seems to do the trick. The solution is to downgrade the repository to 2017 version. This seems to be easy enough, but a quick search for the error did not suggest anything of this sort.

sudo tlmgr option repository ftp://tug.org/historic/systems/texlive/2017/tlnet-final
7
  • 6
    this is "staying at tl2017" as I mentioned in my answer. If you had updated with tlmgr before texlive 2018 was released then this will never do anything as the tlnet-final are just fixed snapshots they will never be updated so you will get no updates via that repository. May 2, 2018 at 18:10
  • 2
    In addition, unlike a normal ctan mirror that uses a distributed mirrored network to share load around the globe, this is directly hitting TUG's main server, that server is not set up as a global delivery network, and is designed for occasional one-off downloads of the archived systems. May 2, 2018 at 20:30
  • 1
    Noting the concerns in the above comments, this answer still serves as a great temporary workaround. Thanks!
    – cemulate
    May 9, 2018 at 3:50
  • I need this workaround every year between the time of the official release and the time I actually get around to upgrading my TL installation. Jul 11, 2018 at 8:51
  • 1
    trying this same trick (but with 2018 and 2019), I get: tlmgr: main database at ftp://tug.org/historic/systems/texlive/2018/tlnet-final is not signed
    – hoijui
    Sep 14, 2019 at 18:54
16

You don't have to upgrade at all, you can stop at tl2017 (lots of people installed tex years ago and have never updated)

However if you want to update from one texlive to the next without doing a full install (which is the recommended route) then the texlive team have a page detailing what you need to do

https://www.tug.org/texlive/upgrade.html

Note that this URL is exactly the address given in the error message that you quoted in the question.

14
  • Thank you for your insights. I see that texlive has an update mechanism, but it seems that it involves more effort than doing a fresh install altogether. On the other hand, I was looking for a quick fix like the answer below. Sorry If the question wasn't clear though.
    – nikhilweee
    May 2, 2018 at 17:03
  • @nikhilweee it is commands to type to do an in -place update but the usual reasons for doing it are to save download time by not doewnloading unchanged files and to save disk space by not having both versions installed. If you do not have those requirements then simply installing the new version is of course easier. May 2, 2018 at 18:14
  • 1
    This won't work: the user's TL is Debian's packaging. An in-place update would require an upstream installation. (At least, it certainly should.) I doubt such an update mechanism is designed to operate in user mode in such cases.
    – cfr
    May 2, 2018 at 21:06
  • @cfr I did wonder (although most of the question applies to any TL) I thought the debian TL was always updated by the system apt-get, tlmgr also works does it? (if this answer is wrong, the debian packaged tlmgr's error message which gives the same link probably should be changed) May 2, 2018 at 21:14
  • The main tree is updated with apt. But there's a kind of watered-down version of tlmgr which users can use to install particular packages themselves. ... switching to user mode! is the give away. If this were upstream, it would not say that - either it would go ahead in sys mode or it would complain about permissions. I think the error message is supplied by the repository and not by tlmgr, but I'm not certain. I agree it is messed up, though.
    – cfr
    May 3, 2018 at 3:13
2

TL; DR;

Get a fresh install of TeX Live, though you said you don't want to. The installation is easy and the newer one would be distinguishable from the older ones.

Story

I've been having texlive-latex-base by using apt-get on Ubuntu 18.04.
sudo apt-get install texlive-latex-base

When I was trying converting a Markdown file to a pdf file using pandoc I originally ran into a problem Error in TeX Live – Font … not loadable: Metric (TFM) file not found, then here.

But, immediately, I had a feeling that if I take one of these prescriptions I would be going through more uncertain problems in the later steps by intuition.

So, I decided to install an up-to-date version of TeX Live.
Starting from there, please follow the directions on the web page and it will take some time, maybe hours depending on your network condition.

0

I had this issue because although I installed the latest version of TexLive I didn't setup the PATH right. I would recommend if anyone has this issue to inspect the PATH variable and run

export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH

to make sure that the tlmgr of new installation is discovered before any other already in the system.

0

If possible, install 'MiKTeX' and typeset your document.

If 'listings' isn't installed when you start to typeset, it will install 'on the fly' ( if connected to the internet at the time ).

1
  • 2
    This appears to be a Microsoft-only solution. Feb 3, 2020 at 2:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .