You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 16.04添加Certbot PPA失败求助附日志信息

Fixing Certbot PPA Addition Error on Ubuntu 16.04

Looking at your error log:

gpg: keybox '/tmp/tmp4pghptu5/pubring.gpg' created
gpg: /tmp/tmp4pghptu5/trustdb.gpg: trustdb created
gpg: key 8C47BE8E75BCA694: public key "Launchpad PPA for certbot" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py"...

The issue here is that even though the Certbot GPG key imported successfully, the add-apt-repository tool hit a snag trying to fetch additional OpenPGP data, triggering the Python thread crash. Let's fix this step by step:

Step 1: Clean up and prepare your system

First, ensure your package list is up to date and repair the PPA management tools:

sudo apt-get update
sudo apt-get install --reinstall software-properties-common

Reinstalling software-properties-common fixes any potential corruption in the scripts that handle PPA additions.

Step 2: Manually import the Certbot GPG key

Since the log shows the key was partially imported, let's do this explicitly to avoid automatic fetch issues:

gpg --keyserver keyserver.ubuntu.com --recv-keys 8C47BE8E75BCA694
gpg --export 8C47BE8E75BCA694 | sudo apt-key add -

This directly pulls the key from Ubuntu's official keyserver and adds it to your system's trusted apt keyring.

Step 3: Add the Certbot PPA correctly

Now run the official PPA addition command—this should work without errors now:

sudo add-apt-repository ppa:certbot/certbot

Step 4: Install Certbot

Once the PPA is added successfully, update your package list again and install Certbot:

sudo apt-get update
sudo apt-get install certbot

Why this works:

The "no valid OpenPGP data found" error typically stems from network issues or corrupted temporary files during the automatic key-fetching step of add-apt-repository. By manually importing the key first, we bypass that problematic step, and reinstalling the PPA tools ensures there's no underlying bug in the script causing the thread crash.

内容的提问来源于stack exchange,提问作者Muhammad Mannan Masood

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:59:12