如何解决 /sbin/ldconfig.real: /usr/lib/ is not a symbolic link
zgj@zgj-X550VQ:~/Downloads/opencv-3.4.12/build$ sudo ldconfig
/sbin/ldconfig.real: /usr/lib/ is not a symbolic link
如何解决 /sbin/ldconfig.real: /usr/lib/ is not a symbolic link
zgj@zgj-X550VQ:~/Downloads/opencv-3.4.12/build$ sudo ldconfig
/sbin/ldconfig.real: /usr/lib/ is not a symbolic link
以下回答参考 皆我百晓生、券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。
这个问题是由于在安装过程中,可能将/usr/lib
文件夹下的内容添加到了/sbin/ldconfig.real
中导致的。你可以通过手动删除/sbin/ldconfig.real
中的内容来解决这个问题。
以下是修复步骤:
/sbin/ldconfig.real
:sudo rm /sbin/ldconfig.real
/sbin/ldconfig.real
就创建好了。注意:在进行任何修改之前,请确保你了解这些更改可能会对你的系统造成的影响,并且已经备份了重要的数据。