When installing the Hikvision SDK under the Linux system, MVS reports an error that the dynamic link library cannot be found.

1 ./MVS: error while loading shared libraries: libCommonTools.so.1: cannot open shared object file: No such file or directory

Solution:

sudo ./MVS.sh

Reference link: https://blog.csdn.net/liwuxin1/article/details/106335426
2 Solve the problem of E: Sub-process /usr/bin/dpkg returned an error code (1) in apt-get installation

When installing software packages with apt-get, I encountered the problem of E: Sub-process /usr/bin/ dpkg returned an error code (1). The solution is as follows:

cd /var/lib/dpkg/
sudo mv info/ info_bak          # 现将info文件夹更名
sudo mkdir info                 # 再新建一个新的info文件夹
sudo apt-get update             # 更新
sudo apt-get -f install         # 修复
sudo mv info/* info_bak/        # 执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_bak文件夹下
sudo rm -rf info                # 把自己新建的info文件夹删掉
sudo mv info_bak info           # 把以前的info文件夹重新改回名

Reprinted https://www.cnblogs.com/orzs/p/10844869.html

Guess you like

Origin blog.csdn.net/m0_60657960/article/details/129791601