Re: Installed at the exact wrong time, ffmpeg breakages. Need help downgrading.
Reply #29 –
Give it a try if you want, it breaks all the upgraded Artix packages if you are up to date:
$ pakku -Syu
$ pakku -S extra/ffmpeg
(fails)
error: failed to prepare transaction (could not satisfy dependencies)
$ pakku -Rs mixxx ffmpeg-compat-58
$ pakku -S extra/ffmpeg
(fails, Pacman checks cache & Artix packages don't match Arch signatures, not deleting in case I want them for some other test!)
$ sudo mv /var/cache/pacman/pkg/ffmpeg-2\:4.4.1-1-x86_64.pkg.tar.zst ./
$ sudo mv /var/cache/pacman/pkg/x264-3\:0.163.r3060.5db6aa6-1-x86_64.pkg.tar.zst ./
$ pakku -S extra/ffmpeg extra/x264
warning: downgrading package ffmpeg (2:5.0-3 => 2:4.4.1-1)
warning: downgrading package x264 (3:0.164.r3081.19856cc-1 => 3:0.163.r3060.5db6aa6-1)
$ chromium
/usr/lib/chromium/chromium: error while loading shared libraries: libavcodec.so.59: cannot open shared object file: No such file or directory
It will fix the Arch packages with an ffmpeg dependency, however all the Artix stuff built against the newer ffmpeg won't work. The ffmpeg-compat-58 solution is much cleverer and will fix everything. I think that's the definitive solution afaik, update and install ffmpeg-compat-58, the regular ffmpeg stays in place too, goodbye ffmpeg problems, if it takes Arch a week or two to catch up on ffmpeg it won't matter. Remove ffmpeg-compat-58 later when it becomes redundant.