You are not logged in.

#1 2020-04-14 01:11:06

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

[SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

I just do some customization on my i3 system and install some packages. Before that, I tried to install gconf with

yay -S gconf

. But it failed with some build error. Then I install oomox with

yay -S themix-full-git

. When I tried to run oomox with the command

oomox-gui

it's giving me an error with

ImportError: libffi.so.6: cannot open shared object file: No such file or directory

. Then I noticed that my blueman-applet is not running. So I ran

blueman-applet

, it returns me the same error. And now I can't open anything. Thunar, Sublime, leafpad, Brave browser everything returning me the same error.
I think I just broke my system. Please help me with this.

Last edited by enigmatic_jihad (2020-04-14 07:02:52)

Offline

#2 2020-04-14 01:21:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

Please paste your full pacman.log (use a paste service).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-04-14 04:31:40

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

jasonwryan wrote:

Please paste your full pacman.log (use a paste service).

Here is the full pacman.log

Offline

#4 2020-04-14 04:35:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,900

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

Seems you're habitually running pacman -Sy. DON'T DO THAT. I don't see where you've updated the entire system at all, which is the cause of your problem. Update everything, then never, ever run -Sy again.

Online

#5 2020-04-14 06:49:58

r3b311i0n
Member
From: Sri Lanka
Registered: 2016-04-06
Posts: 26
Website

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

I got the same error today when trying to use pip from a python venv. I think it's due to the libffi update yesterday. Try rebuilding and clean installing those affected packages.

Offline

#6 2020-04-14 06:55:54

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

Scimmia wrote:

Seems you're habitually running pacman -Sy. DON'T DO THAT. I don't see where you've updated the entire system at all, which is the cause of your problem. Update everything, then never, ever run -Sy again.

Thanks. I never thought it would be that easy. Upgrading the whole system fixes the issue. smile

Offline

#7 2020-04-18 15:04:37

jchidley
Member
Registered: 2020-04-18
Posts: 1

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

I had this same problem with Yosys (which depends on libffi).  I have used this work around:

"ln -sf /usr/lib/libffi.so.7 /usr/lib/libffi.so.6"

from  https://bugs.archlinux.org/task/66230

MOD EDIT: Don't do this. It will cause far more problems than it "fixes".

Last edited by fukawi2 (2020-04-18 22:42:34)

Offline

#8 2020-04-18 15:13:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,902
Website

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

That's a stupid workaround. Read up on what soname bumps are and why they happen.

Yosys in the repos was updated 10 days ago for this very library change:
https://git.archlinux.org/svntogit/comm … c2ca77ad6e


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2020-04-18 15:32:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,900

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

jchidley wrote:

I had this same problem with Yosys (which depends on libffi).  I have used this work around:

"ln -sf /usr/lib/libffi.so.7 /usr/lib/libffi.so.6"

from  https://bugs.archlinux.org/task/66230

And it's no longer there. That is NOT a solution, it shows a serious lack of understanding of dynamic linking. DO NOT DO THIS.

Online

#10 2020-04-22 18:15:30

staykovm
Member
Registered: 2020-04-22
Posts: 1

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

Hi, I am also experiencing this in python3, works in python2 (i upgrade with pacman -Syu). Can anyone suggest what to do?

~ $ python
Python 3.8.2 (default, Apr  8 2020, 14:31:25) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marin/.local/lib/python3.8/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
>>> 

Thanks!

Offline

#11 2020-04-22 18:26:01

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,902
Website

Re: [SOLVED] libffi.so.6: cannot open shared object file: No Such file ...

Rebuild your local modules.

https://wiki.archlinux.org/index.php/Co … _hijacking

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB