Help ./certbot-auto renew

Everyone, please help me.

When running ./certbot-auto renew, yum gcc install is output.

The same result will be repeated after yum update. Does the certificate need to be erased and re-installed?

I won the test server, but wouldn’t I get the same results if I proceed with the backup?

Hi @EscapeLucky,

Welcome to the community forum!

Can you please post the exact output from your terminal? You can wrap the output inbetween the following symbols to format it nicely. Example:
```
$ user@host: ./certbot-auto renew
```

hi
@Phil
[root@localhost letsencrypt]# ./certbot-auto renew
Bootstrapping dependencies for RedHat-based OSes… (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
yum is hashed (/usr/bin/yum)
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base: mirror.kakao.com
  • extras: mirror.kakao.com
  • updates: mirror.kakao.com
    Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
    Package openssl-1.0.1e-58.el6_10.x86_64 already installed and latest version
    Package openssl-devel-1.0.1e-58.el6_10.x86_64 already installed and latest version
    Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
    Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
    Package ca-certificates-2018.2.22-65.1.el6.noarch already installed and latest version
    Package python-devel-2.6.6-68.el6_10.x86_64 already installed and latest version
    Package python-virtualenv-12.0.7-1.el6.noarch already installed and latest version
    Package python-tools-2.6.6-68.el6_10.x86_64 already installed and latest version
    Package python-pip-7.1.0-2.el6.noarch already installed and latest version
    Package 1:mod_ssl-2.2.15-69.el6.centos.x86_64 already installed and latest version
    Resolving Dependencies
    –> Running transaction check
    —> Package gcc.x86_64 0:4.4.7-18.el6_9.2 will be updated
    –> Processing Dependency: gcc = 4.4.7-18.el6_9.2 for package: gcc-c+±4.4.7-18.el6_9.2.x86_64
    —> Package gcc.x86_64 0:4.4.7-23.el6 will be an update
    –> Running transaction check
    —> Package gcc-c++.x86_64 0:4.4.7-18.el6_9.2 will be updated
    —> Package gcc-c++.x86_64 0:4.4.7-23.el6 will be an update
    –> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
Package Arch Version Repository Size

Updating:
gcc x86_64 4.4.7-23.el6 base 10 M
Updating for dependencies:
gcc-c++ x86_64 4.4.7-23.el6 base 4.7 M

Transaction Summary

Upgrade 2 Package(s)

Total download size: 15 M
Downloading Packages:
^C/2): gcc-4.4.7-23.el6.x86_64.rpm (19%) 27% [============== ] 0.0 B/s | 2.8 MB --:-- ETA
Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

(1/2): gcc-4.4.7-23.el6.x86_64.rpm | 10 MB 00:02
(2/2): gcc-c+±4.4.7-23.el6.x86_64.rpm | 4.7 MB 00:01

Total 2.9 MB/s | 15 MB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : gcc-4.4.7-23.el6.x86_64 1/4
Error unpacking rpm package gcc-4.4.7-23.el6.x86_64
error: unpacking of archive failed on file /usr/bin/gcc: cpio: rename
Updating : gcc-c+±4.4.7-23.el6.x86_64 2/4
Error unpacking rpm package gcc-c+±4.4.7-23.el6.x86_64
error: unpacking of archive failed on file /usr/bin/c++: cpio: rename
gcc-c+±4.4.7-18.el6_9.2.x86_64 was supposed to be removed but is not!
Verifying : gcc-c+±4.4.7-18.el6_9.2.x86_64 1/4
gcc-4.4.7-18.el6_9.2.x86_64 was supposed to be removed but is not!
Verifying : gcc-4.4.7-18.el6_9.2.x86_64 2/4
Verifying : gcc-c+±4.4.7-23.el6.x86_64 3/4
Verifying : gcc-4.4.7-23.el6.x86_64 4/4

Failed:
gcc.x86_64 0:4.4.7-18.el6_9.2 gcc.x86_64 0:4.4.7-23.el6 gcc-c++.x86_64 0:4.4.7-18.el6_9.2 gcc-c++.x86_64 0:4.4.7-23.el6

Complete!
Could not install OS dependencies. Aborting bootstrap!

I see you’re running CentOS 6 and have a borked rpm database. Can you run the following commands to fix that?

sudo yum clean all
sudo rpm --rebuilddb
sudo yum update

Once that all completes successfully, try to run

./certbot-auto renew

I’ve tried everything you want me to do.

But the phenonmenon is same yum install gcc

@Phil

I’m sorry about your authority.
I solved the question of authority.
chattr -i /usr/bin/gcc /usr/bin/g++
chmod 700 /usr/bin/gcc /usr/bin/g++;
chattr -i /usr/bin/gcc /usr/bin/g++

./certbot-auto renew
./certbot-auto certificates

thanks @Phil

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