[SOLVED] /usr/local/sbin/certbot-auto: 851: /usr/local/sbin/certbot-auto: /opt/eff.org/certbot/venv/bin/letsencrypt: not found

Hello,

Im new :slight_smile: .

Problem

certbot-auto

Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
/usr/local/sbin/certbot-auto: 851: /usr/local/sbin/certbot-auto: /opt/eff.org/certbot/venv/bin/letsencrypt: not found

I’ve found a solution but it doesnt work :((

ale@mysystem:/root# cd /usr/local/sbin
ale@mysystem:/usr/local/sbin# wget https://dl.eff.org/certbot-auto
ale@mysystem:/usr/local/sbin# chmod a+x /usr/local/sbin/certbot-auto
ale@mysystem:/usr/local/sbin# rm -rf ~/.local/share/letsencrypt

certbot-auto

Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
/usr/local/sbin/certbot-auto: 851: /usr/local/sbin/certbot-auto: /opt/eff.org/certbot/venv/bin/letsencrypt: not found

  1. What is the solution for ?

ale@mysystem:/opt/eff.org/certbot/venv/bin# ls -lh
totale 12K
-rwxr-xr-x 1 root root 238 set 7 06:31 certbot
-rwxr-xr-x 1 root root 241 set 7 06:31 jws
-rwxr-xr-x 1 root root 238 set 7 06:31 letsencrypt

On the server there are no such files as these
activate activate_this.py easy_install-2.7 pbr pip2.7 unit2
activate.csh pip python wheel
activate.fish easy_install pip2 python2.7

and

/root/.local/share/letsencrypt/bin/letsencrypt --version

-bash: /root/.local/share/letsencrypt/bin/letsencrypt: File o directory non esistente

:(((((

1 Like

the problem description is very hard to follow

I suggest you rethink about the way you present it

looks like you are trying to install certbot?

Andrei

1 Like

If i start the command

ale@mysystem:/root#certbot-auto

It shows

Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
/usr/local/sbin/certbot-auto: 851: /usr/local/sbin/certbot-auto: /opt/eff.org/certbot/venv/bin/letsencrypt: not found

So I’m trying to reinstall it

ale@mysystem:/root# cd /usr/local/sbin
ale@mysystem:/usr/local/sbin# wget https://dl.eff.org/certbot-auto
ale@mysystem:/usr/local/sbin# chmod a+x /usr/local/sbin/certbot-auto
ale@mysystem:/usr/local/sbin# rm -rf ~/.local/share/letsencrypt
ale@mysystem:/usr/local/sbin# certbot-auto
Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
/usr/local/sbin/certbot-auto: 851: /usr/local/sbin/certbot-auto: /opt/eff.org/certbot/venv/bin/letsencrypt: not found

the problem is the same

1 Like

Hi @alelav79,

Try this as root:

rm -rf ~/.local/share/letsencrypt
rm -rf /opt/eff.org/certbot/

And then try again to run certbot-auto.

Cheers,
sahsanu

10 Likes

Problem solved.

Thanks !!! :slight_smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.