dpkg: regarding libc6_2.34 won't install because it'd break locales(<< 2.34) and locales(version 2.31) is present and installed
I'm here trying to install RStudio IDE on Ubuntu 20.04 LTS, but it asks for some packages needed to be installed. I have downloaded libc6_2.34 from ubuntu packages, this site
https://packages.ubuntu.com/impish/amd64/libc6/download
sudo dpkg -i libc6_2.34-0ubuntu3_amd64.deb
Now I encounter such error
dpkg: regarding libc6_2.34-0ubuntu3_amd64.deb containing libc6:amd64:
libc6:amd64 breaks locales (<< 2.34)
locales (version 2.31-0ubuntu9.2) is present and installed.
dpkg: error processing archive libc6_2.34-0ubuntu3_amd64.deb (--install):
installing libc6:amd64 would break locales, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.34-0ubuntu3_amd64.deb
How do I fix it please HELP!
Solution 1:
You are trying to kill your system. Do not do it. Libc from 21.10 will not work on 20.04 LTS. They use different API.
Instead use normal deb-package of RStudio which is compatible with both Ubuntu 18.04 LTS and 20.04 LTS.
Open terminal and execute:
sudo apt-get update
cd ~/Downloads
wget -c https://rstudio.org/download/latest/stable/desktop/bionic/rstudio-latest-amd64.deb
sudo apt-get install ./rstudio-latest-amd64.deb