Libertine font not accessible

30 views
Skip to first unread message

hai...@histomat.net

unread,
Jun 27, 2025, 8:28:26 AMJun 27
to LaTeX Users Group
I reinstalled my operating system (Devuan daedalus) but in process lost access to libertine and libertinus fonts. 

I installed fonts-linuxlibertine. 

  $ sudo fc-cache -fv | grep libertine
  /usr/share/fonts/opentype/linux-libertine
  /usr/share/fonts/opentype/linux-libertine: caching, new cache contents: 13 font>
  /usr/share/fonts/opentype/linux-libertine: skipping, looped directory detected

I did  # texhash

$ fc-list | grep libertine
...
/usr/share/fonts/opentype/linux-libertine/LinLibertine_R.otf: Linux Libertine O:style=Regular
...

Here is MWE

documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
test
\end{document}

The error:

[\directlua]:1: module 'luaotfload-main' not found:
        no field package.preload['luaotfload-main']
        [kpse lua searcher] file not found: 'luaotfload-main'
Error in luaotfload: reverting to OT1 L3 programming layer <2023-01-16>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
...
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric d
ata not found or bad.
<to be read again>
relax
l.112 ...lt\familydefault\seriesdefault\shapedefault

Do I need to load a luaotfload=-main package? If so. how?

Haines Brown

Peter Flynn

unread,
Jun 27, 2025, 10:34:39 AMJun 27
to latexus...@googlegroups.com
On 27/06/2025 13:28, 'hai...@histomat.net' via LaTeX Users Group wrote:
> I reinstalled my operating system (Devuan daedalus) but in process lost
> access to libertine and libertinus fonts.
>
> I installed fonts-linuxlibertine.
>
>   $ sudo fc-cache -fv | grep libertine
>   /usr/share/fonts/opentype/linux-libertine
>   /usr/share/fonts/opentype/linux-libertine: caching, new cache
> contents: 13 font>
>   /usr/share/fonts/opentype/linux-libertine: skipping, looped directory
> detected

You would need to examine the directory and its descendants and find the
erroneous soft link.

> [\directlua]:1: module 'luaotfload-main' not found:
>         no field package.preload['luaotfload-main']
>         [kpse lua searcher] file not found: 'luaotfload-main'
> Error in luaotfload: reverting to OT1 L3 programming layer <2023-01-16>

Your new installation lacks LuaLaTeX's OTF loader. In mine, it's at
/usr/share/texlive/texmf-dist/tex/luatex/luaotfload/luaotfload-main.lua
so maybe there's an additional .deb you need to install to get it.

Bear in mind that LuaLaTeX does not use fc-load because it has its own
font management in the luaotfload, so it looks like that it the problem,
not the fonts themselves.

> Do I need to load a luaotfload-main package? If so. how?

I think yes. On my system using apt-cache, I get

> peter@noah:$ apt-cache search luaotfload
> texlive-luatex - TeX Live: LuaTeX packages

Maybe this never got completely installed.

Peter

Haines Brown

unread,
Jun 27, 2025, 3:17:39 PMJun 27
to latexus...@googlegroups.com
Peter, your reply much appreciated!

On Fri, Jun 27, 2025 at 03:34:25PM +0100, Peter Flynn wrote:
> On 27/06/2025 13:28, 'hai...@histomat.net' via LaTeX Users Group wrote:
> > I reinstalled my operating system (Devuan daedalus) but in process lost
> > access to libertine and libertinus fonts.
> >
> > I installed fonts-linuxlibertine.
> >
> >   $ sudo fc-cache -fv | grep libertine
> >   /usr/share/fonts/opentype/linux-libertine
> >   /usr/share/fonts/opentype/linux-libertine: caching, new cache
> > contents: 13 font>
> >   /usr/share/fonts/opentype/linux-libertine: skipping, looped directory
> > detected
>
> You would need to examine the directory and its descendants and find the
> erroneous soft link.

Soft link? I would not have susected that.

My directory /usr/share/texlive/texmf-dist/tex/lualatex/ lacks a luaotfload
directory. Sounds like a faulty installaion.

I do
# apt-cache search luaotfload
texlive-luatex - TeX Live: LuaTeX packages

What package I am I to install, and how? When to comes to tlmgr I'm
genetically incompetent.

--

Haines Brown

Peter Flynn

unread,
Jun 27, 2025, 3:52:00 PMJun 27
to latexus...@googlegroups.com
On 27/06/2025 20:17, 'Haines Brown' via LaTeX Users Group wrote:
[...]
>> You would need to examine the directory and its descendants and find the
>> erroneous soft link.
>
> Soft link? I would not have suspected that.

Nor I, but that's one possible reason for a looped directory (a soft
link pointing to itself). You need to find it and remove it.

> My directory /usr/share/texlive/texmf-dist/tex/lualatex/ lacks a luaotfload
> directory. Sounds like a faulty installation.
>
> I do
> # apt-cache search luaotfload
> texlive-luatex - TeX Live: LuaTeX packages
>
> What package I am I to install, and how? When to comes to tlmgr I'm
> genetically incompetent.

Nothing to do with tlmgr. This is a system package, so it's

sudo apt-get install texlive-luatex

If it complains that "texlive-luatex is already the newest version" then
you can force reinstallation with

sudo apt-get --reinstall install texlive-luatex

BUT check first: you should have a directory full of font loading stuff
at /usr/share/texlive/texmf-dist/tex/luatex/luaotfload

Peter

Haines Brown

unread,
Jun 27, 2025, 4:27:15 PMJun 27
to latexus...@googlegroups.com
No, I don't. Not luaotfload direcory"

$ ls /usr/share/texlive/texmf-dist/tex/luatex/
ctex hyph-utf8 jlreq luatexja markdown

I'm nervous about from my operating system applicarion repository and
have always done it from CTAN. I gather that now do not have to remove
my existing version.

Your reply very incouraging.

--

Haines Brown

Peter Flynn

unread,
Jun 27, 2025, 5:32:30 PMJun 27
to latexus...@googlegroups.com
Oops, sorry. I assumed you were using repos..


DO NOT MIX REPOS WITH A CTAN TEX LIVE INSTALLATION. IT WILL BREAK EVERYTHING. 

Stick with the T-L update manager.

P

-- 
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.

Haines Brown

unread,
Jun 27, 2025, 6:01:28 PMJun 27
to latexus...@googlegroups.com
On Fri, Jun 27, 2025 at 10:32:19PM +0100, Peter Flynn wrote:
> Oops, sorry. I assumed you were using repos..
>
>
> DO NOT MIX REPOS WITH A CTAN TEX LIVE INSTALLATION. IT WILL BREAK EVERYTHING.
>
> Stick with the T-L update manager.
> P

I cancelled the installation which was underway and now ask what you
mean. Are you saying that a CTAN installation should not be done on
top an existing installation? I though that issue has been put to rest
years ago. So I suppose you are advising me to
remove the old installaiton and then restart an installaiton.

--

Haines Brown

Peter Flynn

unread,
Jun 27, 2025, 7:42:32 PMJun 27
to latexus...@googlegroups.com
On 27/06/2025 23:01, 'Haines Brown' via LaTeX Users Group wrote:
> On Fri, Jun 27, 2025 at 10:32:19PM +0100, Peter Flynn wrote:
>> Oops, sorry. I assumed you were using repos..
>>
>>
>> DO NOT MIX REPOS WITH A CTAN TEX LIVE INSTALLATION. IT WILL BREAK EVERYTHING.
>>
>> Stick with the T-L update manager.
>> P
>
> I cancelled the installation which was underway and now ask what you
> mean.

Don't mix distributions. It doesn't work. My fault, I'm sorry: I made
the unjustified assumption that you would have installed the repo
distribution from your operating system.

> Are you saying that a CTAN installation should not be done on
> top an existing installation?

You can't mix them. AFAIK they use different paths, and although the
binaries are the same and the ancillary files are the same, they will be
installed in places the other method won't look.

> I though that issue has been put to rest years ago.

Not as far as I know. I'd love to be wrong.

> So I suppose you are advising me to
> remove the old installation and then restart an installation.

No, absolutely not. If you have cancelled the repo installation then
with luck no damage will have been done.

I'd leave it as it is and go back to the CTAN distribution and find
which option didn't get installed that has left you without the
luaotfload utilities. I don't use that distribution, so I don't know how
it is organised or where to find stuff. There may be a package you can
install from within tlmgr that will add what you need. The people to ask
would be on the tex-...@tug.org mailing list.

Peter



Haines Brown

unread,
Jun 28, 2025, 9:35:56 AMJun 28
to latexus...@googlegroups.com
On Sat, Jun 28, 2025 at 12:42:20AM +0100, Peter Flynn wrote:
> On 27/06/2025 23:01, 'Haines Brown' via LaTeX Users Group wrote:
> > > DO NOT MIX REPOS WITH A CTAN TEX LIVE INSTALLATION. IT WILL BREAK EVERYTHING.

> Don't mix distributions. It doesn't work. My fault, I'm sorry: I made the
> unjustified assumption that you would have installed the repo distribution
> from your operating system.

> No, absolutely not. If you have cancelled the repo installation then with
> luck no damage will have been done.

Peter, I did:

# rm -rfv /usr/local/texlive/2025

but since I did a root install /home/haines/.texlive2025 did not
exist. I then did a CTAN installation, but ended up with same error.

I deleted the 2025 texlive again and this time installed from
operaring sytem's application repository. It is listed there as
varsion 2022.20230122-3, by operating system is always slow on picking
up packges. So I delted the entire local/share/texlive directory. And
install texlife from mh operating system repository.

It took all of 2 seconds! The repostory says the application state
is installed. But there is no texlife in /usr/local/. Obviously I'm
doing something terribly wrong.

--

Haines Brown

Peter Flynn

unread,
Jun 28, 2025, 10:08:28 AMJun 28
to latexus...@googlegroups.com
On 28/06/2025 14:35, 'Haines Brown' via LaTeX Users Group wrote:
> On Sat, Jun 28, 2025 at 12:42:20AM +0100, Peter Flynn wrote:
>> On 27/06/2025 23:01, 'Haines Brown' via LaTeX Users Group wrote:
>>>> DO NOT MIX REPOS WITH A CTAN TEX LIVE INSTALLATION. IT WILL BREAK EVERYTHING.
>
>> Don't mix distributions. It doesn't work. My fault, I'm sorry: I made the
>> unjustified assumption that you would have installed the repo distribution
>> from your operating system.
>
>> No, absolutely not. If you have cancelled the repo installation then with
>> luck no damage will have been done.
>
> Peter, I did:
>
> # rm -rfv /usr/local/texlive/2025

I don't know what that is, but I think that's where the CTAN
distribution puts it all. I've never used the CTAN distribution since it
doesn't fit well with all the other (non-TeX) software I use, installed
from the Mint repos.

> but since I did a root install /home/haines/.texlive2025 did not
> exist.

I think that's where luaotfload puts its own font cache that it creates
when it does its initial pass the first time you use LuaLaTeX.

> I then did a CTAN installation, but ended up with same error.

You mean the missing luaotfload-main error?

> I deleted the 2025 texlive again and this time installed from
> operating system's application repository.

I'm not familiar with devuan but I assume it uses its own .deb repositories.

> It is listed there as version 2022.20230122-3, by operating system
> is always slow on picking up packages.
Should still be OK. I'm using the latest Mint 22.1 and it still only has
the TL 2023. It's a small penalty I willingly pay for simplicity.

> So I deleted the entire local/share/texlive directory.

I thought you said your CTAN TeX was in /usr/local/texlive/2025

> And install texlife from mh operating system repository.

The package is texlive-full.

> It took all of 2 seconds! The repository says the application state
> is installed. But there is no texlife in /usr/local/. Obviously I'm
> doing something terribly wrong.

No, but I think the texlive package is just a header. What happens when
you install texlive-full ?

Peter

Haines Brown

unread,
Jun 29, 2025, 10:37:37 AMJun 29
to latexus...@googlegroups.com
After trying four more installation using different ways, I
have concluded the problem is with permissions of directories
and files in my operating system. I have other grounds for
coming to that conclusion.

What I'll do is recover a backup of my entire sytem. I have full
backups on disk, but I don't believe I can simply copy the to my
runing disk with rsync. Instead I'm making a dd copy of my backuto a
backup disk. If boots and everyting (running lualatex command) work
properly, I then boot a live version of my OS and copy it to my
working drrve witn rsync.

Thank you for your help. Sorry not to be able to reply on a more
positive note.


--

Haines Brown

Peter Flynn

unread,
Jun 29, 2025, 2:58:28 PMJun 29
to latexus...@googlegroups.com
On 29/06/2025 15:37, 'Haines Brown' via LaTeX Users Group wrote:
> After trying four more installation using different ways, I have
> concluded the problem is with permissions of directories and files
> in my operating system. I have other grounds for coming to that
> conclusion.
In a default distribution (of any kind) that shouldn't occur.
Maybe some other software started changing permissions without telling
or asking you. This is not uncommon — many applications are written by
people on the assumption that their application should take precedence
over everything else.

> What I'll do is recover a backup of my entire system.

I'm sorry I wasn't able to make a more positive solution.

Peter


RGarth Silvers

unread,
Jul 2, 2025, 12:21:57 PMJul 2
to latexus...@googlegroups.com
Hi,

I’m trying to create a flow diagram with a few nodes and lines connecting the nodes. I want some sets of lines to emanate from the same point on one node, and other sets of nodes to arrive at the same point on a different node.

I would think that arcangle specifies the angle from the departure node at which the arc emanates, that the angleA sets the relative position from the origin node from which the arc emanates, and angleB sets the relative position on the terminal node at which the arc arrives.

In what I have below, I would want the red and blue to emanate from the rightmost end of Start and go to the top of Middle and End, with exit angles 30 and 90 (perpendicular). They both emante from top portions and different, and arrive at different top portions.

and for the green and purple to emanate from bottom-middle of Start and End and both arrive at northwest of Middle. They both emanate from the top and only the purple from the middle, and arrive at different portions of the northwest quadrant.

The yellow should have the same points of departure and arrival as the red on the same nodes, just be a straight line. It is a straight line but have different points of departure and arrival.

As you can see in the attached, the red and green have the same departure points even though the angleA are 0 and 135; the purple and blue have the same arrival points even though the angleB are 90 and 135, and the red and yellow have different departure points and arrival points even though the only difference is arcangle 30 and 0.

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-node}

\begin{document}

\setlength{\unitlength}{1cm}

\begin{pspicture}(6,3)
\rput(1,1){\ovalnode{X}{Start}}
\rput(5,2){\ovalnode{Y}{End}}
\rput(8,3){\ovalnode{Z}{Middle}}
\ncarc[
arcangle=30,
angleA=0,
angleB=90,
linecolor={[rgb]{1 0 0}}
]{->}{X}{Y}

\ncarc[
arcangle=0,
angleA=0,
angleB=90,
linecolor={[rgb]{1 1 0}}
]{->}{X}{Y}

\ncarc[
arcangle=90,
angleA=0,
angleB=90,
linecolor={[rgb]{0 0 1}}
]{<-}{X}{Z}

\ncarc[
arcangle=30,
angleA=270,
angleB=135,
linecolor={[rgb]{0 1 0}}
]{->}{X}{Z}

\ncarc[
arcangle=75,
angleA=270,
angleB=135,
nodesep=1pt,
linecolor={[rgb]{1 0 1}},
linestyle=dotted
]{->}{Y}{Z}

\end{pspicture}

\end{document}

temp11.pdf
Reply all
Reply to author
Forward
0 new messages