install opencv again

一,Ubuntu默认的python是2.7版本的,那在安装opencv的时候需要先把python的版本更新到3吗?

二,执行sudo apt-get update之后报错,E:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi', E:Sub-process returned an error code

参考文章:https://blog.csdn.net/qq_35810476/article/details/81591076

删除之后他就没有报错了

三,关于更新软件源

https://blog.csdn.net/zhuanshu666/article/details/73413503

这个直接从可视化的角度来做就可以了,不需要使用命令行

如果只是单纯的更新软件源的话,是不能解决问题二的。

四,报错:忽略‘50unattended-upgrades.ucf-dist’(于目录‘/etc/apt/apt.conf.d/’),鉴于它的文件扩展名无效

参考文章:https://blog.csdn.net/xs20691718/article/details/70889228

就是把这个文件给删除了

五,gredit记录

猜你喜欢

转载自blog.csdn.net/weixin_30226901/article/details/82148059