Skip to content

Wrong chromium installed on linux arm64 #9710

@hwine

Description

@hwine

Bug description

Using Ubuntu 22-04 LTS on arm64, quarto install to install chromium succeeds, and quarto check reports no issues, however execution fails with an error indicating an x86_64 binary was installed.

I note that refused to install TinyTeX:

$ quarto install TinyTeX
Installing TinyTeX
This platform doesn't support installation at this time. Please install manually instead. See https://yihui.org/tinytex/#installation.

But the default install from there worked fine (wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh).

Steps to reproduce

$ quarto install chromium
$ quarto check
$ cat test.qmd
---
title: "test page"
---

Use Mermaid to force PDF rendering to try to use chromium installed by quarto

```{mermaid}
graph TD
    A <--> B
```
$ quarto render test.qmd --to pdf

Expected behavior

Obtain test.pdf with a simple mermaid diagram.

Actual behavior

$ quarto render test.qmd --to pdf
ERROR: Couldn't find open server.
Chrome process error: x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory


Stack trace:
Chrome process error: x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

    at criClient (file:///opt/quarto/bin/quarto.js:40053:15)
    at eventLoopTick (ext:core/01_core.js:197:13)
    at async file:///opt/quarto/bin/quarto.js:40015:22
    at async Semaphore.runExclusive (file:///opt/quarto/bin/quarto.js:39692:29)
    at async Object.createPngsFromHtml (file:///opt/quarto/bin/quarto.js:40267:42)
    at async makePng (file:///opt/quarto/bin/quarto.js:73955:70)
    at async makeDefault (file:///opt/quarto/bin/quarto.js:74015:24)
    at async Object.cell (file:///opt/quarto/bin/quarto.js:74038:20)
    at async Promise.all (index 0)
    at async Object.document (file:///opt/quarto/bin/quarto.js:40528:25)
$ 

Your environment

IDE: cli
OS:

$ uname -a
Linux ubuntu-arm64 5.15.0-107-generic #117-Ubuntu SMP Mon Apr 29 14:37:09 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

Quarto check output

$ quarto check
Quarto 1.4.554
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.554
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: 869685

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/hwine/.TinyTeX/bin/aarch64-linux
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.3
      Path: /home/hwine/.pyenv/versions/3.12.3/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingchromiuminstallersissues with packages from package managers, installers, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions