如何更新Debian 8.10上的Certbot至0.21.0版本?
Upgrading Certbot to 0.21.0 on Debian 8.10 (Jessie)
Hey there! I get it—apt's not pulling in the Certbot update you need, so let's fix that. Debian 8's default repos stick to older stable versions, but there are two solid ways to get Certbot 0.21.0 installed:
Method 1: Use Debian Jessie Backports
Debian Backports often has newer versions of packages for older releases, which should include the 0.21.0 Certbot build you're after. Here's how to use it:
- First, check if the backports repo is already added to your system. Open your sources list file with
sudo nano /etc/apt/sources.list(or check files in/etc/apt/sources.list.d/). If you don't see a line for jessie-backports, add this:deb http://deb.debian.org/debian jessie-backports main - Save the file and update your package index:
sudo apt-get update - Install Certbot and the Apache plugin specifically from backports (the
-tflag tells apt to prioritize this repo):sudo apt-get install -t jessie-backports certbot python-certbot-apache - Verify the version with
certbot --versionto confirm you're on 0.21.0.
Method 2: Use the Official Certbot Auto Script
If backports doesn't have the exact version you need, the official certbot-auto script will handle installing compatible dependencies and the correct Certbot version for Debian 8:
- First, remove the existing Certbot packages to avoid conflicts:
sudo apt-get remove certbot python-certbot-apache - Download the official script:
wget https://dl.eff.org/certbot-auto - Make the script executable:
chmod +x certbot-auto - Run the script to install Certbot and set up your Apache certificate (this will handle all dependencies automatically):
sudo ./certbot-auto --apache - To check the version, run
./certbot-auto --version. You can use this script for future renewals and updates too.
Quick Notes
- Before making changes, back up your Apache config files (in
/etc/apache2/sites-available/) just in case something goes sideways. - If you go with certbot-auto, keep the script handy—you'll use it for renewals instead of the system-wide
certbotcommand.
内容的提问来源于stack exchange,提问作者xylar
相关产品推荐
相关产品推荐

