Ubuntu 20.04 Focal Fossa Linux 上的 Viber 安装问题

Viber install problem on Ubuntu 20.04 Focal Fossa Linux

我试过this描述。使用snap安装成功,但是配置Viber后,出现如下错误信息:

Qt: Session management error: None of the authentication protocols specified are supported
sh: 1: xdg-mime: not found
Qt WebEngine ICU data not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
[15972:15972:0515/162634.438831:FATAL:credentials.cc(155)] Check failed: NamespaceUtils::DenySetgroups(). : Permission denied
#0 0x7fa98b6aa11e base::debug::StackTrace::StackTrace()
#1 0x7fa98b6babde logging::LogMessage::~LogMessage()
#2 0x7fa98b6bae99 logging::ErrnoLogMessage::~ErrnoLogMessage()
#3 0x7fa98c3acf7c sandbox::(anonymous namespace)::SetGidAndUidMaps()
#4 0x7fa98c3ad5d5 sandbox::Credentials::CanCreateProcessInNewUserNS()
#5 0x7fa98b31dde5 content::ZygoteHostImpl::Init()
#6 0x7fa98afd0314 content::BrowserMainLoop::EarlyInitialization()
#7 0x7fa98afd4190 content::BrowserMainRunnerImpl::Initialize()
#8 0x7fa98add9d19 QtWebEngineCore::WebEngineContext::WebEngineContext()
#9 0x7fa98addb135 QtWebEngineCore::WebEngineContext::current()
#10 0x7fa98ad78931 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#11 0x7fa993091618 QQuickWebEngineProfile::defaultProfile()
#12 0x0000006ac8bf ApplicationPrivate::preRunningInitialization()
#13 0x0000006a6504 ViberApplication::start()
#14 0x00000067e25b ViberMain()
#15 0x7fa987d7e830 __libc_start_main
#16 0x0000004d7047 <unknown>

Qt WebEngine ICU data not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /snap/viber-mtd/17/opt/viber/resources. Trying parent directory...
shm_open() failed: Permission denied
shm_open() failed: Permission denied
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL 
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL 
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL 
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM 
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL 
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM 
shm_open() failed: Permission denied
PulseAudioService: pa_context_connect() failed
shm_open() failed: Permission denied
PulseAudioService: pa_context_connect() failed
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.

之后,我将其删除,并尝试了第二种方法(从 deb 包安装)。但是没有找到引用的 libssl 包。

有什么想法吗?

libssl 包的位置不正确。

访问 http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/ 站点,并下载其中一个 libssl 文件。在我访问的那一刻,有一个libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb文件,我已经下载了。

然后是:

sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
wget https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo dpkg -i viber.deb

如果有一些依赖需求,还有运行:

apt-get install -f

它会起作用:)

要修复 Snap,您需要授予它使用音频系统的权限。有一种命令行方式可以做到这一点(快照连接),但我使用了软件应用程序,找到了 Viber 快照并单击了“权限”。

Easy-peasy 安装方式 - 在您的终端中输入:

snap install viber-unofficial

就这些:) 运行尽情享受吧!

我下载了 20.04 中包含的两个版本 - 都没有用,无法与我的智能手机建立连接。然后我尝试直接从 Rakuten.Viber 网站下载 .deb 软件。这似乎更进一步,但并不多。然后我碰巧让我的电脑开了很多天,运行 很多程序,就在删除 Viber 程序之前,我想我会再试一次。它奏效了!我重新同步了聊天记录 - 一切正常 :-)

所以 - 也许我 运行 设置了计算机,以便“初始连接”阶段可以正常工作。谁知道。我们将在我重新启动桌面后看看它是否继续工作...