linux 问题整理

Published: · LastMod: April 07, 2024 · 261 words

rpmdb open failed 🔗

1
2
3
4
5
6
7
8
[root@VM-0-6-centos ~]# yum -y remove git
error: rpmdb: BDB0113 Thread/process 423/140056922314816 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

方案

1
2
[root@VM-0-6-centos ~]# rm -f /var/lib/rpm/__db*
[root@VM-0-6-centos ~]# rmp --rebuilddb

wget下载失败 Unable to establish SSL connection. 🔗

1. 🔗

1
2
3
4
5
6
7
8
[root@VM-0-6-centos local]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz && tar -xzvf git-
2.9.0.tar.gz
--2022-08-20 09:34:58--  https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.80.249, 2604:1380:4601:e00::3
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.80.249|:443... connected.
ERROR: cannot verify mirrors.edge.kernel.org's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3:
  Issued certificate has expired.
To connect to mirrors.edge.kernel.org insecurely, use `--no-check-certificate'.

方案

1
wget --no-check-certificate https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz

2. 🔗

–secure-protocol=TLSv1

3. nohub 🔗

1
2
3
nohup: ignoring input and appending output to ‘nohup.out’
或者:
nohup: failed to run command `xxx.sh’: Permission denied
1
2
3
4
nohup ./xxx.sh > /dev/null 2> /dev/null &
#./xxx.sh 是你自己需要执行的脚本
# 例如:
nohup ./bug > /dev/null 2> /dev/null &