./certbot-auto renew - python error message - update fails


#1

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: inwtx.net

I ran this command: ./certbot-auto renew

It produced this output:
root@me~# ./certbot-auto renew
Bootstrapping dependencies for Debian-based OSes… (you can skip this with --no-bootstrap)
Hit http://security.debian.org jessie/updates InRelease
Ign http://mirrors.digitalocean.com jessie InRelease
Hit http://mirrors.digitalocean.com jessie-updates InRelease
Hit http://mirrors.digitalocean.com jessie Release.gpg
Hit http://mirrors.digitalocean.com jessie Release
Hit http://security.debian.org jessie/updates/main Sources
Hit http://mirrors.digitalocean.com jessie-updates/main Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Get:1 http://mirrors.digitalocean.com jessie-updates/main amd64 Packages/DiffIndex [11.8 kB]
Get:2 http://mirrors.digitalocean.com jessie-updates/main Translation-en/DiffIndex [3,688 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://mirrors.digitalocean.com jessie/main Sources
Hit http://mirrors.digitalocean.com jessie/main amd64 Packages
Hit http://mirrors.digitalocean.com jessie/main Translation-en
Fetched 15.5 kB in 2s (5,737 B/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
augeas-lenses is already the newest version.
libaugeas0 is already the newest version.
ca-certificates is already the newest version.
gcc is already the newest version.
libffi-dev is already the newest version.
python is already the newest version.
python-dev is already the newest version.
python-virtualenv is already the newest version.
virtualenv is already the newest version.
libssl-dev is already the newest version.
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.

Setting up python3 (3.4.2-2) …
running python rtupdate hooks for python3.4…
/usr/share/python3/runtime.d/dh-python.rtupdate: 5: /usr/share/python3/runtime.d/dh-python.rtupdate: py3clean: not found
error running python rtupdate hook dh-python
dpkg: error processing package python3 (–configure):
subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of python3-pkg-resources:
python3-pkg-resources depends on python3:any (>= 3.3); however:
Package python3 is not configured yet.
python3-pkg-resources depends on python3:any (<< 3.5); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pkg-resources (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-chardet-whl:
python-chardet-whl depends on python3-pkg-resources; however:
Package python3-pkg-resources is not configured yet.

dpkg: error processing package python-chardet-whl (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pip-whl:
python-pip-whl depends on python-chardet-whl; however:
Package python-chardet-whl is not configured yet.

dpkg: error processing package python-pip-whl (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-virtualenv:
python3-virtualenv depends on python-pip-whl; however:
Package python-pip-whl is not configured yet.
python3-virtualenv depends on python3; however:
Package python3 is not configured yet.
python3-virtualenv depends on python3-pkg-resources; however:
Package python3-pkg-resources is not configured yet.
python3-virtualenv depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-virtualenv (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualenv:
virtualenv depends on python3; however:
Package python3 is not configured yet.
virtualenv depends on python3-virtualenv; however:
Package python3-virtualenv is not configured yet.

dpkg: error processing package virtualenv (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-virtualenv:
python-virtualenv depends on python-pip-whl; however:
Package python-pip-whl is not configured yet.

dpkg: error processing package python-virtualenv (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dh-python:
dh-python depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.

dpkg: error processing package dh-python (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3
python3-pkg-resources
python-chardet-whl
python-pip-whl
python3-virtualenv
virtualenv
python-virtualenv
dh-python
E: Sub-process /usr/bin/dpkg returned an error code (1)

My web server is (include version):
PRETTY_NAME=“Debian GNU/Linux 8 (jessie)”
NAME=“Debian GNU/Linux”
VERSION_ID=“8”
VERSION=“8 (jessie)”
ID=debian

The operating system my web server runs on is (include version):
PRETTY_NAME=“Debian GNU/Linux 8 (jessie)”
NAME=“Debian GNU/Linux”
VERSION_ID=“8”
VERSION=“8 (jessie)”
ID=debian

My hosting provider, if applicable, is: DigitalOcean

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no - using putty


#2

This seems to have been caused by python3 somehow getting corrupted on my server. Upon restoring an older backup, the cert update command worked.


#3

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