Closed mouse07410 closed 3 years ago
Did you manually install fonts somewhere? I don't pretend to understand updmap
errors, but I think this is a configuration problem on your end (or a problem with TL not including fonts). Maybe @norbusan can help.
tlmgr: updmap-sys failed (status 1), output:
updmap will read the following updmap.cfg files (in precedence order):
/usr/local/texlive/texmf-local/web2c/updmap.cfg
/usr/local/texlive/2021/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
/usr/local/texlive/2021/texmf-config/web2c/updmap.cfg
dvips output dir: "/usr/local/texlive/2021/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/usr/local/texlive/2021/texmf-var/fonts/map/dvipdfmx/updmap"
updmap [ERROR]: The following map file(s) couldn't be found:
updmap [ERROR]: CountriesOfEurope.map (in /usr/local/texlive/texmf-local/web2c/updmap.cfg)
updmap [ERROR]: baskervaldx.map (in /usr/local/texlive/texmf-local/web2c/updmap.cfg)
updmap [ERROR]: droid.map (in /usr/local/texlive/texmf-local/web2c/updmap.cfg)
updmap [ERROR]: Did you run mktexlsr?
You can disable non-existent map entries using the option --syncwithtrees.
Hi @mouse07410
you have a file /usr/local/texlive/texmf-local/web2c/updmap.cfg
and in this file three maps: CountriesOfEurope.map
, baskervaldx.map
, and droid.map
are mentioned. That is, the file contains lines like:
Map CountriesOfEurope.map
Map baskervaldx.map
Map droid.map
But these three files are not available on your system.
We recommend putting the map files (and corresponding fonts, tfm files etc) into the same TEXMF tree as the updmap.cfg that defines them. So you should have these map files plus the required actual font files in /usr/local/texlive/texmf-local/...
The fun part is that as soon as I did sudo chown -R uri /usr/local/texlive/2021
, everything stopped complaining, and updates became successful again - like before the installation of MacTeX-2021.
So, while I understand and accept the comments about the three presumably missing files and fonts/maps preferred location, they don't seem to bear responsibility for the Operation not permitted
error - which got remedied by changing permissions.
The value of the global variable errno is a red herring: I log that in my parent programs in case the child task failed to launch via fork/exec, so it would only be meaningful if (say) you didn't have permission to run tlmgr
. Since you were running as root, there's no way permissions were a problem.
The child task is where all the problems get reported, and in this case they're font-related. At a guess, you'll see them again next time tlmgr
runs updmap-sys
, but I use XeTeX to avoid anything related to traditional TeX font installs.
At a guess, you'll see them again next time
tlmgr
runsupdmap-sys
Luckily for me - nope, next time, and the one after that, both updmap-sys
invoked standalone, and TeX Live Utility
completed the updates fine.
OK, glad it's working. Next version won't log errno unless waitpid returns -1, though, since that keeps tripping people up.
OK, glad it's working
Thank you!
This workaround worked. But I still would prefer that I wouldn't need to make MaCTeX user-owned instead of root-owned...
For security, you're better off having it user-owned, in my opinion, so you're not running my code and all of the tlmgr
Perl as root. As it was impossible for "Operation not permitted" to be meaningful in this context except by accident, I remain unconvinced that chown fixed anything.
For security, you're better off having it user-owned, in my opinion
OK, good. Then this situation is not a big deal.
As it was impossible for "Operation not permitted" to be meaningful in this context except by accident, I remain unconvinced that
chown
fixed anything
Well, it changed the updmap-sys
result from Failed to Succeeded. In my book that counts as "fixed". :-)
Also, I had to do the same with MaCTeX-2020 back then, as memory serves (and evidenced by ls -l
).
MacOS Big Sur 11.2.3, MaCTeX-2021 (just installed), TeX Live Utility 1.49.
Problem: after downloading and updating all the packages, it fails with the error code "Operation not permitted".