Command line and most apps not working after downgrading libc6
by jamespetts from LinuxQuestions.org on (#5BXYW)
I have got into some very serious problems. I upgraded from Ubuntu 18.04 to 20.04 earlier this year. This automatically upgraded Blender from 2.79 to 2.82. I need to use Blender 2.79 as a feature (the internal renderer) was removed in the upgrade from 2.7x to 2.8x. However, I had serious problems installing the old version. I could not find any instructions as to how to install 2.79 on Ubuntu 20.04, and the .deb package for it would not work: it kept failing with dependancy errors. I tried manually to fix each of them, but then came upon one which had disastrous consequences: I installed the old lib6 package from 18.04 and now nearly everything on my system is broken apart from apps (such as Firefox) that were already running when I did this.
Here is the command line output from when I attempted to do this:
Code: sudo dpkg -i ./libc6_2.27-3ubuntu1_amd64.deb
dpkg: warning: downgrading libc6:amd64 from 2.31-0ubuntu9.1 to 2.27-3ubuntu1
(Reading database ... 244437 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
De-configuring libc6:i386 (2.31-0ubuntu9.1) ...
Unpacking libc6:amd64 (2.27-3ubuntu1) over (2.31-0ubuntu9.1) ...
Replaced by files in installed package libcrypt1:amd64 (1:4.4.10-10ubuntu4) ...
dpkg: error processing package libc6:amd64 (--install):
package libc6:amd64 2.27-3ubuntu1 cannot be configured because libc6:i386 is at a different version (2.31-0ubuntu9.1)
dpkg: error processing package libc6:i386 (--install):
package libc6:i386 2.31-0ubuntu9.1 cannot be configured because libc6:amd64 is at a different version (2.27-3ubuntu1)
Errors were encountered while processing:
libc6:amd64
libc6:i386
james@macaroon:~/Downloads$ sudo apt install ./libc6_2.27-3ubuntu1_amd64.deb
sudo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)Now, almost any command that I enter in the terminal will give an error, e.g.:
Code:james@macaroon:~/Downloads$ ls
ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)
james@macaroon:~/Downloads$ bash
james@macaroon:~/Downloads$ ls
ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)
james@macaroon:~/Downloads$ bash
james@macaroon:~/Downloads$ sudo
sudo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)This means that I cannot find any way of reverting the change that I have made. A few basic commands (nano, cp, rm, cd, wget) do seem to work. The GUI is no better - most apps that are not already running fail to run with no visible error message - attempting to run them simply has no effect.
Most icons in "system settings" have no effect when clicked on.
I am not sure how to revert to a working state given that not even the command line now works. I should be extremely grateful for any assistance.


Here is the command line output from when I attempted to do this:
Code: sudo dpkg -i ./libc6_2.27-3ubuntu1_amd64.deb
dpkg: warning: downgrading libc6:amd64 from 2.31-0ubuntu9.1 to 2.27-3ubuntu1
(Reading database ... 244437 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
De-configuring libc6:i386 (2.31-0ubuntu9.1) ...
Unpacking libc6:amd64 (2.27-3ubuntu1) over (2.31-0ubuntu9.1) ...
Replaced by files in installed package libcrypt1:amd64 (1:4.4.10-10ubuntu4) ...
dpkg: error processing package libc6:amd64 (--install):
package libc6:amd64 2.27-3ubuntu1 cannot be configured because libc6:i386 is at a different version (2.31-0ubuntu9.1)
dpkg: error processing package libc6:i386 (--install):
package libc6:i386 2.31-0ubuntu9.1 cannot be configured because libc6:amd64 is at a different version (2.27-3ubuntu1)
Errors were encountered while processing:
libc6:amd64
libc6:i386
james@macaroon:~/Downloads$ sudo apt install ./libc6_2.27-3ubuntu1_amd64.deb
sudo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)Now, almost any command that I enter in the terminal will give an error, e.g.:
Code:james@macaroon:~/Downloads$ ls
ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)
james@macaroon:~/Downloads$ bash
james@macaroon:~/Downloads$ ls
ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)
james@macaroon:~/Downloads$ bash
james@macaroon:~/Downloads$ sudo
sudo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /lib/x86_64-linux-gnu/libselinux.so.1)This means that I cannot find any way of reverting the change that I have made. A few basic commands (nano, cp, rm, cd, wget) do seem to work. The GUI is no better - most apps that are not already running fail to run with no visible error message - attempting to run them simply has no effect.
Most icons in "system settings" have no effect when clicked on.
I am not sure how to revert to a working state given that not even the command line now works. I should be extremely grateful for any assistance.