Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


remove_letsencrypt_certbot_re_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
remove_letsencrypt_certbot_re_install [2023/06/22 15:45] wikiadminremove_letsencrypt_certbot_re_install [2023/06/22 16:22] (current) wikiadmin
Line 1: Line 1:
 ====== Remove LetsEncrypt Certbot in Order to Properly Re-Install Certbot ====== ====== Remove LetsEncrypt Certbot in Order to Properly Re-Install Certbot ======
 +
 +[SOLVED] Certbot --apache. The requested apache plugin does not appear to be installed.
 +
 +Check the version (which would indicate something is installed, but possibly the installation command wasn't exactly correct to install the plugin that integrates best with apache).  
  
 <code> <code>
 $ certbot --version $ certbot --version
 +</code>
 +
 +Result
 +
 +<code>
 certbot 1.21.0 certbot 1.21.0
 +</code>
 +
 +Try obtaining a certificate by running certbot.
 +
 +<code>
 user@svr1:~$ sudo certbot --apache user@svr1:~$ sudo certbot --apache
 +</code>
 +
 +Result below. Here is the dreaded error message: The requested apache plugin does not appear to be installed.
 +
 +<code>
 Saving debug log to /var/log/letsencrypt/letsencrypt.log Saving debug log to /var/log/letsencrypt/letsencrypt.log
 The requested apache plugin does not appear to be installed The requested apache plugin does not appear to be installed
 +</code>
 +
 +It's time to do everything to uninstall and properly reinstall certbot.
 +
 +Step 1 - Run this.
 +
 +<code>
 user@svr1:~$ sudo certbot delete user@svr1:~$ sudo certbot delete
 +</code>
 +
 +Result
 +
 +<code>
 Saving debug log to /var/log/letsencrypt/letsencrypt.log Saving debug log to /var/log/letsencrypt/letsencrypt.log
 No existing certificates found. No existing certificates found.
 Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
 +</code>
 +
 +Step 2 - Run a purge.
 +
 +<code>
 user@svr1:~$ sudo apt purge python-certbot-apache user@svr1:~$ sudo apt purge python-certbot-apache
 +</code>
 +
 +Result.  Notice the errors.
 +
 +<code>
 Reading package lists... Done Reading package lists... Done
 Building dependency tree... Done Building dependency tree... Done
Line 18: Line 59:
 user@svr1:~$ sudo a2dissite 000-default-le-ssl.conf user@svr1:~$ sudo a2dissite 000-default-le-ssl.conf
 ERROR: Site 000-default-le-ssl does not exist! ERROR: Site 000-default-le-ssl does not exist!
 +</code>
 +
 +Next. Run an Update for packages.
 +
 +<code>
 user@svr1:~$ sudo apt update user@svr1:~$ sudo apt update
 +</code>
 +
 +Result.  Nothing new available.
 +
 +<code>
 Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
 Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Line 33: Line 84:
 </code> </code>
  
-Next+Step 3.  REMOVE CERTBOT
  
 <code> <code>
Line 39: Line 90:
 </code> </code>
  
-Results+Results.  Certbot (defective install) appears to have been removed, with further instructions to run 'autoremove' in order to remove some leftover package(s) (former dependencies) that are no longer required.  See below.
  
 <code> <code>
Line 60: Line 111:
 </code> </code>
  
-Next+So, as instructed, we run 'autoremove'
  
 <code> <code>
Line 93: Line 144:
 </code> </code>
  
-Next+That seemed to have worked well. 
 + 
 +Let's do a restart of the apache2 webserver . . . just for good measure.
  
 <code> <code>
Line 101: Line 154:
 </code> </code>
  
-Results+Results.  Everything Seems to be Running well.  See below.  Note: There was an old completely unrelated warning alert that is still in the apache status error log list that was previously fixed by optionally editing apache2.conf in order to insert a line for ServerName [and local/lan IP] under a [Global] section of the .conf file, thus setting the server's ip globally on the system. I probably could have merely inserted 'localhost' or '127.0.0.1' just as well. I found the apache2.conf file in the path /etc/apache2/apache2.conf. 
  
 <code> <code>
Line 125: Line 178:
 </code>  </code> 
  
 +**Now you can PROPERLY reinstall certbot that integrates with Apache2**.
  
-Now you can PROPERLY reinstall certbot. +Go Here: [[install_letsencrypt_certbot_apache2_ubuntu_server_22_04|Install LetsEncrypt Certbot Apache2 on Ubuntu Server 22.04]]
- +
-[[install_letsencrypt_certbot_apache2_ubuntu_server_22_04|Install LetsEncrypt Certbot Apache2 on Ubuntu Server 22.04]]+
  
  
remove_letsencrypt_certbot_re_install.1687448742.txt.gz · Last modified: 2023/06/22 15:45 by wikiadmin