Question

installing ffmpeg issues Ubunutu 16.04

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.


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
July 20, 2023

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:

  1. First, update your package lists for upgrades and new package installations:
sudo apt update
sudo apt upgrade
  1. Next, install FFmpeg by typing the following command:
sudo apt install ffmpeg
  1. To verify that the installation was successful, run:
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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel