By Andrew Webb
I need to install this, but when I run the following code:
apt-get install ffmpeg
I get this (and more):
Err:1 http://lon1.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 gcc-5-base amd64 5.4.0-6ubuntu1~16.04.5
Could not connect to lon1.mirrors.digitalocean.com:80 (95.85.0.50), connection timed out [IP: 95.85.0.50 80]
…
Err:41 http://lon1.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libcapnp-0.5.3 amd64 0.5.3-2ubuntu1 Unable to connect to lon1.mirrors.digitalocean.com:http: [IP: 2a03:b0c0:0:1::4 80] Unable to correct missing packages.
…
E: Failed to fetch http://lon1.mirrors.digitalocean.com/ubuntu/pool/main/libv/libvdpau/vdpau-driver-all_1.1.1-3ubuntu1_amd64.deb Unable to connect to lon1.mirrors.digitalocean.com:http: [IP: 2a03:b0c0:0:1::4 80]
E: Aborting install.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Usually, you’ll follow these steps to install ffmpeg. The steps to install FFmpeg are generally consistent across Ubuntu versions, and are typically done through the Ubuntu package manager (apt).
Here’s a general guide:
sudo apt update
sudo apt upgrade
sudo apt install ffmpeg
ffmpeg -version
This should print the FFmpeg version to the console, along with its configuration details and copyright information.
I would assume the issue is coming from not running update and upgrade prior to the command being executed for installation of ffmpeg
Additionally, check if your firewall isn’t stopping the connection as well.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.