dpkg:apt-get 时出现警告

dpkg:apt-get 时出现警告

当我使用 apt-get(安装或升级)进行某些操作时,我收到这些警告。有很多警告,但我认为每个都与 opencv 有关。当我尝试安装这些缺失的软件包时,它说它们已经安装。它们是什么意思?谢谢回复。

dpkg: warning: files list file for package 'libopencv-flann-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-core2.4:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-core-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-photo-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-legacy-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-imgproc2.4:amd64' missing; assuming package has no files currently installed

答案1

您是否尝试过手动安装每个包?

尝试这个第一如果这不起作用

for package in $(apt-get upgrade 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt-get install --reinstall "$package"; done

希望能帮助到你

相关内容