
我花了幾個小時嘗試為 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