Tag Archives: Linux Learning Notes

[Solved] CentOS Use Yum to install dependency: error: rpmdb open failed

When installing dependencies using Yum in CentOS, the following errors are reported:

the solution is as follows:

Execute the following commands in order

 # Go to the directory where rpmdb is located
 cd /var/lib/rpm
 # Clear the original rpmdb file
 rm -f __db.*
 # Rebuild the rpm database
 rpm --rebuilddb
 # Clear all yum caches
 yum clean all

After execution, use Yum to install the dependent packages normally

Setting the root password of windows 10 Ubuntu subsystem

Windows 10 installs the Ubuntu subsystem. When it is opened for the first time, it will let the user set his or her own user name and password, but this newly created user is not root user.
>

> Here’s how:
zhangyun@DESKTOP-J39LRR2:~$sudo passwd
sudo] password for zhangyun:
n>assword:
Retype>password:
passwd:
4 passwd: password updated successfully

Solve the problem of “bash. / don’t have that file or directory” in Ubuntu 64 bit

When you first run the./XXX file in Ubuntu 64-bit, you might say that bash doesn’t have that file or directory, but it does;
The reason is that there is no 32-bit runtime;

Solution:

$sudo apt-get install ia32-libs

If it says no packages are available, then install the alternative:

$sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

>