Ubuntu 18.04, and am trying to upgrade FFmpeg to 4.x using the instructions here. However it keeps saying
Reading package lists... Done Building dependency tree Reading state information... Done ffmpeg is already the newest version (7:4.2.2-1build1~18.04.sav0). 0 upgraded, 0 newly installed, 0 to remove and 64 not upgraded. Upon running ffmpeg --version
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --disable-static --enable-shared --disable-doc libavutil 55. 34.100 / 55. 34.100 libavcodec 57. 64.100 / 57. 64.100 libavformat 57. 56.100 / 57. 56.100 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 I have tried following multiple guides on the web, but no dice. Can anyone help? I suspect some packages are corrupt/invalid on this server, but no idea how to proceed. TIA
41 Answer
There are differences between installing a package using snap and installing it directly. If you have a pre-snap version and the snap version is newer, then remove the old package and install the snap version
sudo apt-get remove package-name sudo snap install package-name Remember, to update non-snap packages
sudo apt-get update package-name but to update a snap package,
sudo snap refresh package-name