Problem installing the Hyphen package in Quarto / R Studio

HI!

I'm using Quarto 1.6.42 in R Studio (R 4.5.2) on a Linux Ubuntu 24.04 environment to generate a PDF document.

When I try to render the document to generate the PDF file, I receive the error message below:

Rendering PDF
running lualatex - 1
  This is LuaHBTeX, Version 1.22.0 (TeX Live 2025) 
   restricted system commands enabled.
  
Installing missing hyphenation file...
> 1 package to install
> installing hyphen-brazilian (1 of 1)
ERROR: [non-error-thrown] tlmgr returned a non zero status code
tlmgr install: package hyphen-brazilian not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

My YAML is like

title: "Title"
subtitle: "subtitle"
author: "authors"
date: today
date-format: iso
format:
  pdf:
    mainfont: Times New Roman
    toc: true
    toc-depth: 2
    toc-title: Sumário
    number-sections: true
    number-depth: 3
    lang: pt-br
    pdf-engine: lualatex
    fig-cap-location: bottom
    highlight-style: github
    execute:
      echo: true
      include: true
      warning: false

I tried different engines and the option hyphenate-main: false, among others with, no results. In the Ubuntu system, I have installed hyphen-pt-br package

How to overcome this error?

Hi @aolinto
Welcome to the Posit Community Forum.

You may have solved this issue already. If not, I asked Gemini AI for some help and it suggests installing a Ubuntu system package which is required for handling hyphenation in Brazilian-Portuguese. See this thread: https://share.google/aimode/SnBijBgu2Pqo9GV3H