我已经花了几个小时尝试为 Ubuntu 安装 OpenCV3。
其中一个依赖项是:
sudo apt-get install libavcodec-dev
但是,当我运行该程序时,我得到:
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libavutil-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libswresample-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libavcodec-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libavformat-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/libswscale-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.91.26 80]
去地址看http://security.ubuntu.com/ubuntu/pool/universe/f/ffmpeg
,好像他们只主办libavutil-dev_2.8.15
。
我找到了一个仍然有旧版本的地方这里
我可以在那里安装吗?我现在该怎么做?
(另外,我尝试运行,sudo apt-get update
但没有效果)
谢谢你!
答案1
您可以直接下载此包并安装它:wget http://launchpadlibrarian.net/364831898/libavutil-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb && sudo dpkg -i libavutil-dev_2.8.14-0ubuntu0.16.04.1_amd64.deb