Skip to main content
Topic: Chromium libavcodec.so.58 error - cannot open (Read 1935 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Chromium libavcodec.so.58 error - cannot open

Did an update this morning and ungoogled-chromium will not open now. The error I get is -

/usr/lib/chromium/chromium: error while loading shared libraries: libavcodec.so.58: cannot open shared object file: No such file or directory

There was an ungoogled-chromium upgrade 2 days ago and it worked after the upgrade, tried downgrading it just to check and did not solve the issue. Sounds like the file libavcodec.so.58 is missing? Looks like that comes from ffmpeg-compat-58 package which does not seem to be a dependency and is also out of date in the AUR

Any ideas? .. Thanks

Re: Chromium libavcodec.so.58 error - cannot open

Reply #1
It's about recent ffmpeg update 2:4.4.1-1 to 2:5.0-3. Packages still broken on my system:

Code: [Select]
# check-link-consistency -q
ERR   ---------------------------------   ----------------------------------------------------------------------   ----------------------
ERR   Package                             Problematic File                                                         Unresolved Needed Libs
ERR   ---------------------------------   ----------------------------------------------------------------------   ----------------------
ERR   blender 17:3.0.0-4                  /usr/bin/blender                                                         libavcodec.so.58     
ERR   blender 17:3.0.0-4                  /usr/bin/blender                                                         libavdevice.so.58    
ERR   blender 17:3.0.0-4                  /usr/bin/blender                                                         libavformat.so.58    
ERR   blender 17:3.0.0-4                  /usr/bin/blender                                                         libavutil.so.56      
ERR   blender 17:3.0.0-4                  /usr/bin/blender                                                         libswscale.so.5      
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-load.so                                             libavcodec.so.58     
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-load.so                                             libavformat.so.58    
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-load.so                                             libavutil.so.56      
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-load.so                                             libswscale.so.5      
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-save.so                                             libavcodec.so.58     
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-save.so                                             libavformat.so.58    
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-save.so                                             libavutil.so.56      
ERR   gegl 0.4.34-1                       /usr/lib/gegl-0.4/ff-save.so                                             libswscale.so.5      
ERR   kfilemetadata 5.90.0-1              /usr/lib/qt/plugins/kf5/kfilemetadata/kfilemetadata_ffmpegextractor.so   libavformat.so.58    
ERR   kfilemetadata 5.90.0-1              /usr/lib/qt/plugins/kf5/kfilemetadata/kfilemetadata_ffmpegextractor.so   libavutil.so.56      
ERR   libde265 1.0.8-1                    /usr/bin/sherlock265                                                     libswscale.so.5      
ERR   qt6-webengine 6.2.2-2               /usr/lib/libQt6WebEngineCore.so.6.2.2                                    libavcodec.so.58     
ERR   qt6-webengine 6.2.2-2               /usr/lib/libQt6WebEngineCore.so.6.2.2                                    libavformat.so.58    
ERR   qt6-webengine 6.2.2-2               /usr/lib/libQt6WebEngineCore.so.6.2.2                                    libavutil.so.56      
ERR   qtox 1.17.4-1                       /usr/bin/qtox                                                            libavcodec.so.58     
ERR   qtox 1.17.4-1                       /usr/bin/qtox                                                            libavdevice.so.58    
ERR   qtox 1.17.4-1                       /usr/bin/qtox                                                            libavformat.so.58    
ERR   qtox 1.17.4-1                       /usr/bin/qtox                                                            libavutil.so.56      
ERR   qtox 1.17.4-1                       /usr/bin/qtox                                                            libswscale.so.5      
ERR   telegram-desktop 3.4.8-1            /usr/bin/telegram-desktop                                                libavcodec.so.58     
ERR   telegram-desktop 3.4.8-1            /usr/bin/telegram-desktop                                                libavformat.so.58    
ERR   telegram-desktop 3.4.8-1            /usr/bin/telegram-desktop                                                libavutil.so.56      
ERR   telegram-desktop 3.4.8-1            /usr/bin/telegram-desktop                                                libswresample.so.3   
ERR   telegram-desktop 3.4.8-1            /usr/bin/telegram-desktop                                                libswscale.so.5      
ERR   ungoogled-chromium 97.0.4692.99-1   /usr/lib/chromium/chromium                                               libavcodec.so.58     
ERR   ungoogled-chromium 97.0.4692.99-1   /usr/lib/chromium/chromium                                               libavformat.so.58    
ERR   ungoogled-chromium 97.0.4692.99-1   /usr/lib/chromium/chromium                                               libavutil.so.56      
ERR   -----------------------------------------------------------------------------------------------------------------------------------
ERR   Total 9 problematic file(s): 9 in 8 package(s) + 0 unassigned.
ERR   -----------------------------------------------------------------------------------------------------------------------------------

Re: Chromium libavcodec.so.58 error - cannot open

Reply #2
Sounds like you have been bitten by the ffmpeg issue currently ongoing. The team is working on it and it should be resolved shortly. In the meantime you could downgrade ffmpeg till the fix comes through.  ffmpeg

Best regards
We should try to be kind to everyone.....we are all fighting some sort of battle.

 

Re: Chromium libavcodec.so.58 error - cannot open

Reply #3
In the meantime you could downgrade ffmpeg till the fix comes through.

I might add that that not only ffmpeg: some pacakges depending on it have been already upgraded, and ffmpeg itself also depends on x264. So this is how I did downgrade on my system:

Code: [Select]
# pwd
/root/backups/packages

# ls -1                              <--- I removed packages unrelated to ffmpeg from output
alsa-plugins-1:1.2.6-2-x86_64.pkg.tar.zst
ffmpeg-2:4.4.1-1-x86_64.pkg.tar.zst
gst-libav-1.18.5-1-x86_64.pkg.tar.zst
mlt-7.4.0-2-x86_64.pkg.tar.zst
mplayer-38322-2-x86_64.pkg.tar.zst
qt5-webengine-5.15.8-1-x86_64.pkg.tar.zst
vlc-3.0.16-7-x86_64.pkg.tar.zst
x264-3:0.163.r3060.5db6aa6-1-x86_64.pkg.tar.zst

# pacman -U *                    <--- very nice of pacman to accept wildcards; or maybe it's just bash =)
...

If unsure what to downgrade, use my check-link-consistency tool. Proves useful every week. :) I added to /root/bin/sync.sh script after `pacman -Syuu` along with other "check & maintain" stuff.


Re: Chromium libavcodec.so.58 error - cannot open

Reply #5
Ok then it's ffmpeg.. I notice telegram-desktop is hit by it too. I tried downgrading ffmpeg as well as several related packages - alsa-plugins, gst-libav, x264 - none of which solved the issue. I guess I will wait for a fix for ffmpeg to come through then.

Thanks