[宝塔面板]临时解决Fedora下不能使用Let’s encrypt的bug

宝塔面板还是有不少bug,今天就遇到了Fedora下不能使用Let’s encrypt的bug,稍微研究了下,临时解决了问题,下面请看详细过程


从报错看出Fedora 27因为使用python3,放弃python2导致安装无法继续。

Bootstrapping dependencies for RedHat-based OSes...
dnf is /bin/dnf
Last metadata expiration check: 1:12:37 ago on Fri 09 Feb 2018 05:19:15 PM CST.
No match for argument: python27-devel
No match for argument: python27-virtualenv
No match for argument: python27-tools
No match for argument: python27-pip
Could not install OS dependencies. Aborting bootstrap!
Package gcc-7.3.1-2.fc27.x86_64 is already installed, skipping.
Package openssl-1:1.1.0g-1.fc27.x86_64 is already installed, skipping.
Package openssl-devel-1:1.1.0g-1.fc27.x86_64 is already installed, skipping.
Package redhat-rpm-config-70-1.fc27.noarch is already installed, skipping.
Package ca-certificates-2017.2.20-1.0.fc27.noarch is already installed, skipping.
Package python2-2.7.14-6.fc27.x86_64 is already installed, skipping.
Error: Unable to find a match

然后谷歌了下letsencrypt的运行过程,发现宝塔使用/www/server/panel/certbot-auto 更新,所以就手动装下,然后手动修复一下链接就行了,还好没遇见更棘手的情况

如果更新的话,还需要重新执行一下下面的方法

解决方法

dnf install letsencrypt
pushd /www/server/panel/
mv certbot-auto certbot-auto-bak
ln -s /usr/bin/certbot ./certbot-auto

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注