Score:2

dpkg: regarding libc6_2.34 won't install because it'd break locales(<< 2.34) and locales(version 2.31) is present and installed

se flag

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!

uz flag
Jos
Have you tried the `--auto-deconfigure` flag, as the message suggests?
N0rbert avatar
zw flag
@Jos good suggestion to get situation even worse. Keep recommending!
uz flag
Jos
Just repeating what the message says @N0rbert...
Score:6
zw flag

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
sunnyinho avatar
se flag
Thanks for warning me sir, I understand that package for 21.10 will not work on 20.04, but the link you have given "wget -c https://rstudio.org/download/latest/stable/desktop/bionic/rstudio-latest-amd64.deb" still install the version I first used to install rstudio. I have now encountered a new problem, while installing the packages which I shouldn't have I tried to install other packages too now when I try to remove them packages by `sudo apt --fix-broken install` it warns me to wipe my 391 GB of space which is not even used(I mean I still have 362 GB/500 GB available).
N0rbert avatar
zw flag
Please add exact error messages with all possible details how did you get there to the original question. If long - use pastebin. Also add the output of `grep -r ^deb /etc/apt/ --include=*.list` to show us your repositories list.
N0rbert avatar
zw flag
Here on Askubuntu new problem means new question. If above solution solved your issue, you can accept this answer by using grey checkmark at the left of it and then ask new question :)
sunnyinho avatar
se flag
Thank You very much sir for your concern sir but the livepatch setting automatically solved the problem by removing unnecessary packages that I've installed and my adding the right ones.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.