Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

R Package Installation Failure on Pop!_OS 22.04: GLIBCXX/GLIBC Version Mismatch (readr, googlesheets4)

$
0
0

I'm getting dependency errors when I try to install R packages readr and googlesheets4 on my Pop!_OS 22.04 system. This is particularly problematic because readr is a core dependency of the tidyverse suite, so I can't install it.

When running install.packages("readr") or install.packages("googlesheets4") in R, I receive the following errors:

**googlesheets4 Error**> Error: package or namespace load failed for ‘googlesheets4’:> .onLoad failed in loadNamespace() for 'fs', details:> call: dyn.load(file, DLLpath = DLLpath, ...)> error: unable to load shared object '/home/nick/R/x86_64-pc-linux-gnu-library/4.4/fs/libs/fs.so':> /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/nick/R/x86_64-pc-linux-gnu-library/4.4/fs/libs/fs.so)**readr Error**> Error: package or namespace load failed for ‘readr’:> .onLoad failed in loadNamespace() for 'tzdb', details:> call: dyn.load(file, DLLpath = DLLpath, ...)> error: unable to load shared object '/home/nick/R/x86_64-pc-linux-gnu-library/4.4/tzdb/libs/tzdb.so':> /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/nick/R/x86_64-pc-linux-gnu-library/4.4/tzdb/libs/tzdb.so)

Steps to Reproduce:

  1. Open R in the terminal.
  2. Run install.packages("readr") or install.packages("googlesheets4").
  3. Alternatively, run install.packages("tidyverse").

System Information:

  • Operating System: Pop!_OS 22.04 LTS (based on Ubuntu 22.04 LTS)
  • R Version: 4.4.3 (2025-02-28) -- "Trophy Case"
  • ldd (Ubuntu GLIBC 2.35-0ubuntu3.9) 2.35
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX:> GLIBCXX_3.4> GLIBCXX_3.4.1> GLIBCXX_3.4.2> GLIBCXX_3.4.3> GLIBCXX_3.4.4> GLIBCXX_3.4.5> GLIBCXX_3.4.6> GLIBCXX_3.4.7> GLIBCXX_3.4.8> GLIBCXX_3.4.9> GLIBCXX_3.4.10> GLIBCXX_3.4.11> GLIBCXX_3.4.12> GLIBCXX_3.4.13> GLIBCXX_3.4.14> GLIBCXX_3.4.15> GLIBCXX_3.4.16> GLIBCXX_3.4.17> GLIBCXX_3.4.18> GLIBCXX_3.4.19> GLIBCXX_3.4.20> GLIBCXX_3.4.21> GLIBCXX_3.4.22> GLIBCXX_3.4.23> GLIBCXX_3.4.24> GLIBCXX_3.4.25> GLIBCXX_3.4.26> GLIBCXX_3.4.27> GLIBCXX_3.4.28> GLIBCXX_3.4.29> GLIBCXX_3.4.30> GLIBCXX_DEBUG_MESSAGE_LENGTH

I have already tried:

sudo nala update && sudo nala upgrade

and rebooted the system.

Desired Outcome:

I want to be able to install readr and googlesheets4 (and consequently, the tidyverse) successfully on my Pop!_OS 22.04 system without relying on Docker or cloud-based solutions if possible.


Viewing all articles
Browse latest Browse all 7072

Trending Articles