Viber: This application failed to start because it could not find or load the Qt platform plugin “xcb”.

Автор: | 17/11/2016

viber-logoПри запуске Viber на Ubuntu 14.04 – возникает сообщение об ошибке:

$ /opt/viber/Viber 
This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, wayland-egl, wayland, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)

Решение – установка библиотек libxcb:

$ sudo apt-get install libxcb-xkb1 libxcb-icccm4 libxcb-image0 libxcb-render-util0                                                                
Reading package lists... Done                                                                
...

Перезапускаем Viber – он сыпет ещё сообщения об ошибках, но – уже работает:

$ /opt/viber/Viber                                                                                                                                
QSqlDatabasePrivate::removeDatabase: connection 'UserStorage_ConnectionName_100183584' is still in use, all queries will cease to work.                                                                                                      
QSqlDatabasePrivate::removeDatabase: connection 'StorageDBConnection' is still in use, all queries will cease to work.                                                                                                                       
QSqlDatabasePrivate::removeDatabase: connection 'UserStorage_ConnectionName_100183584' is still in use, all queries will cease to work.                                                                                                      
QSqlDatabasePrivate::removeDatabase: connection 'StorageDBConnection' is still in use, all queries will cease to work.                                                                                                                       
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)                                                                                
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)                                                                                
qrc:/QML/StickerMenu/StickerPack.qml:16:9: QML Image: Cannot open: file:///                                                                                                                                                                  
...
qrc:/QML/StickerMenu/RecentPacksView.qml:22:9: QML Image: Cannot open: file:///
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)
...

Готово.

P.S. Очень глючный клиент под Linux.