You are not logged in.

#1 2020-05-01 05:28:05

rubashka55
Member
Registered: 2020-05-01
Posts: 5

[solved] "cerbot certificates" throws an exception

My OS is up to date, as well as the package certbot.

$ sudo certbot certificates
Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==1.3.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2445, in load
    return self.resolve()
[............]
  File "/usr/lib/python3.8/site-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
    from cryptography.hazmat.bindings._constant_time import lib
ImportError: libffi.so.6: cannot open shared object file: No such file or directory

And

sudo find / -iname *libffi.so*
/usr/lib/libffi.so.7.1.0
/usr/lib/libffi.so.7
/usr/lib/libffi.so

Why does libffi.so.6 not exist? Where to get it? Why is certbot not up to date?

How to fix it?

Last edited by rubashka55 (2020-05-02 16:12:35)

Offline

#2 2020-05-01 05:36:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [solved] "cerbot certificates" throws an exception

It doesn't exist because it's obsolete. You don't get it, you rebuild things against the new version.

Can you open a python terminal and do 'from cryptography.hazmat.bindings._constant_time import lib' successfully?

Offline

#3 2020-05-01 07:27:03

rubashka55
Member
Registered: 2020-05-01
Posts: 5

Re: [solved] "cerbot certificates" throws an exception

No, the same exception

Offline

#4 2020-05-01 07:29:08

rubashka55
Member
Registered: 2020-05-01
Posts: 5

Re: [solved] "cerbot certificates" throws an exception

I'd reinstalled certbot before posting my question. Why wasn't it installed with the new version?

Offline

#5 2020-05-01 07:38:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: [solved] "cerbot certificates" throws an exception

This sort of breakage is often caused by installing python libraries system-wide using pip. Have you done that?

# pip list
rubashka55 wrote:

I'd reinstalled certbot before posting my question. Why wasn't it installed with the new version?

What do you mean? According to the output you are running certbot 1.3.0, which is the latest version available in the Arch repos.

Nothing packaged in the Arch repos depends on the old version of libffi, so this is either caused by a partial update (which you refute) or something installed from a third party (i.e. pypi via pip)

Also, please do not bump your thread unnecessarily. If you are the last person to post something, and you have more to add, use the edit button to append the additional information.


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

#6 2020-05-01 14:11:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [solved] "cerbot certificates" throws an exception

What version of python-cffi?

Offline

#7 2020-05-01 14:21:31

rubashka55
Member
Registered: 2020-05-01
Posts: 5

Re: [solved] "cerbot certificates" throws an exception

$ sudo pacman -S python-cffi
warning: python-cffi-1.14.0-1 is up to date -- reinstalling

Offline

#8 2020-05-01 14:23:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [solved] "cerbot certificates" throws an exception

That's your problem, pkgrel 2 is the latest, and is the version rebuilt for the libffi soname bump. https://www.archlinux.org/packages/extr … thon-cffi/

What mirror are you using?

Last edited by Scimmia (2020-05-01 14:25:13)

Offline

#9 2020-05-01 14:26:50

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: [solved] "cerbot certificates" throws an exception

Which mirror are you using (check which is at the top of the list in /etc/pacman.d/mirrorlist), it appears to be out of date.

https://www.archlinux.org/mirrors/status/


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

#10 2020-05-02 08:09:40

rubashka55
Member
Registered: 2020-05-01
Posts: 5

Re: [solved] "cerbot certificates" throws an exception

This mirror:


http://mirror.nus.edu.sg/archlinux/$repo/os/$arch

it's out of sync, yes. Why did it become out of sync?

Last edited by rubashka55 (2020-05-02 08:11:14)

Offline

#11 2020-05-02 08:18:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: [solved] "cerbot certificates" throws an exception

Looks like it hasn't synced since mid-March. There could be any number of reasons for it stopping. The important thing is that you need to pick an alternative mirror and update your system.

https://wiki.archlinux.org/index.php/Mirrors


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