1

y

i have the booting stuck on /dev/sda2 clean so i tried the following steps:

  1. Ctrl + Alt + F2 OR F3
  2. login with my account
  3. sudo apt-get update
  4. sudo apt-get upgrade

(4) shows error E: unmet dependence and to solve it, it shows apt -fix-broken install

when i ran the apt -fix-broken install this error shows :

(libffi.so.6: cannot open shared object file: No such file or director)

  • Try sudo apt-get install --reinstall libglib2.0-bin. The FFI issue looks strange, as this library was available for 19.10. Do you really run 20.04 LTS? – N0rbert Jun 29 at 15:30
  • @N0rbert thx for the reply, unfortunately, it shows the same Error (E: unmet Dependencies) The Broken package is <libglib2.0.0> – Ali Jun 29 at 16:13
  • Could you please say all the history? How did you went to this situation? Did you have 16.04 LTS previously installed? What is your current Ubuntu version? Which version do you have in /etc/apt/sources.list? Can you access this system via SSH? – N0rbert Jun 29 at 16:27
  • @N0rbert, the start point to this when I was installing a program, one of its dependencies were libglib2.0.0 for some strange reason it broke during the installation so I restarted my machine cuz of a lock of (dpkg) :| when I started the machine it stuck on the booting (/dev/sda2 clean) so i managed to get to the (TTY) logged in and tried to upgrade, .....FAILED also can't do any of: autoclean, clean, --fix-broken all cuz of the libglib2.0.0 and libffi.s.6 also the ubuntu is 20.04 LTS – Ali Jun 29 at 20:34
  • I would suggest to force installation of the new library by sudo dpkg -i --force-all /var/cache/apt/archives/libglib2.0-bin_2.64.2-1~fakesync1_amd64.deb. Use auto-completion with <Tab> to enter correct file-name. And then proceed with sudo apt-get install -f . – N0rbert Jun 29 at 20:55
0

I would suggest to force installation of the new library by

sudo dpkg -i --force-all /var/cache/apt/archives/libglib2.0-bin_2.64.2-1~fakesync1_amd64.deb

Use auto-completion with Tab to enter correct file-name.

And then proceed with

sudo apt-get install -f
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.