Toolbox: Visual Studio Code will not launch: libX11-xcb.so.1 not found

Created on 6 Jul 2019  路  1Comment  路  Source: containers/toolbox

Looks like although I can install an rpm within a toolbox container, I can't run x11 applications from it?

wget 'https://go.microsoft.com/fwlink/?LinkID=760867' -O ~/Downloads/code.rpm
toolbox -y create --container vscode
toolbox enter --container vscode
sudo dnf install -y ~/Downloads/code.rpm
猬user@toolbox ~]$ code 
/usr/share/code/bin/../code: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

Most helpful comment

Great news, looks like the rpm simply didn't include this library in it's list of dependencies.

猬user@toolbox ~]$ sudo dnf whatprovides '*/libX11-xcb.so.1'
Last metadata expiration check: 0:52:02 ago on Sat 06 Jul 2019 12:51:33 PM PDT.
libX11-xcb-1.6.7-1.fc30.i686 : XCB interop for libX11
Repo        : fedora
Matched from:
Filename    : /usr/lib/libX11-xcb.so.1

libX11-xcb-1.6.7-1.fc30.x86_64 : XCB interop for libX11
Repo        : fedora
Matched from:
Filename    : /usr/lib64/libX11-xcb.so.1

So a simple sudo dnf install -y libX11-xcb fixed the issue.

>All comments

Great news, looks like the rpm simply didn't include this library in it's list of dependencies.

猬user@toolbox ~]$ sudo dnf whatprovides '*/libX11-xcb.so.1'
Last metadata expiration check: 0:52:02 ago on Sat 06 Jul 2019 12:51:33 PM PDT.
libX11-xcb-1.6.7-1.fc30.i686 : XCB interop for libX11
Repo        : fedora
Matched from:
Filename    : /usr/lib/libX11-xcb.so.1

libX11-xcb-1.6.7-1.fc30.x86_64 : XCB interop for libX11
Repo        : fedora
Matched from:
Filename    : /usr/lib64/libX11-xcb.so.1

So a simple sudo dnf install -y libX11-xcb fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings