youtube-dl https://www.youtube.com/watch?v=XXXXXXXXXXX ... ERROR: ffmpeg: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Reproducible: Always Steps to Reproduce: 1. Download any video from youtube 2. 3.
Created attachment 593340 [details] emerge --info emerge --info youtube-dl
This is not a problem in net-misc/youtube-dl: it merely tries to execute ffmpeg and does not control ffmpeg's linkage.
Is the reporter using firejail? I've been having this exact same problem for a while now and just got around fiddling with it and in my case it seems to be caused by firejail. Error occurs when sys-apps/firejail-0.9.60-r1 is present on system using default /etc/firejail/ffmpeg.profile and a symbolic link /usr/local/bin/ffmpeg pointing to /usr/bin/firejail (created via firecfg which creates symbolic links for firejail supported binaries). Error doesn't occur after deleting symbolic link /usr/bin/firejail causing ffmpeg to be ran without firejail sandboxing. I've tried it once again with the ffmpeg symbolic link in place and with a blank ffmpeg.profile for firejail and it didn't change anything so my guess that youtube-dl does something that doesn't expect ffmpeg to be a symbolic link.
This is really firejail related issue (/etc/firejail/youtube-dl.profile). This bug was fixed since: https://github.com/netblue30/firejail/pull/3120/commits/b862701bb3c0ac2b2ad8f828ef4885697970f20f @franklyfrank please approve this fix does not necessary for ffmpeg.profile.
reassigning to firejail maintainer then
Confirmed the current upstream version includes a fix for this; working on a PR to bump our version.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f23fe664f064159ec4460c36c114ff5858c3033b commit f23fe664f064159ec4460c36c114ff5858c3033b Author: Hank Leininger <hlein@korelogic.com> AuthorDate: 2020-10-14 17:36:50 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-11-11 07:50:10 +0000 sys-apps/firejail: Version bump for CVEs, fixes, add proxy maintainer Version bump to address outstanding CVEs. Confirmed the current release includes the fixes for several open bugs, so closing those. Updated to address feedback in https://github.com/gentoo/gentoo/pull/17929 Signed-off-by: Hank Leininger <hlein@korelogic.com> Closes: https://bugs.gentoo.org/698062 Closes: https://bugs.gentoo.org/747859 Closes: https://bugs.gentoo.org/747613 Closes: https://bugs.gentoo.org/747859 Bug: https://bugs.gentoo.org/736816 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Closes: https://github.com/gentoo/gentoo/pull/17929 Signed-off-by: Joonas Niilola <juippis@gentoo.org> sys-apps/firejail/Manifest | 1 + sys-apps/firejail/firejail-0.9.64.ebuild | 83 ++++++++++++++++++++++++++++++++ sys-apps/firejail/metadata.xml | 10 +++- 3 files changed, 93 insertions(+), 1 deletion(-)