You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Ubuntu 22.04 Jammy系统下Viber无法正常使用的求助

Ubuntu 22.04 Jammy系统下Viber无法正常使用的求助

Hey there, sorry to hear you're stuck getting Viber up and running on Ubuntu 22.04 – let's work through some targeted fixes to get this sorted for you, since going back to Windows isn't an option! 🛠️

First, let me recap the steps you've already tried so we don't repeat them:

  • Installed the unofficial snap version of Viber: The app opens, but you can't receive the authentication code (even after Viber support reset your account)
  • Attempted an image-based installation (you mentioned you don't know the details well)
  • Installed the official .deb package from Viber's website: The install completes, but the app won't launch at all
  • Tried installing the Windows Viber.exe via Wine 6.0.3 using Bottles: The installation failed entirely
  • Looked through older online discussions, but many links are broken and solutions didn't work

Let's try these focused solutions next:

方案1:修复官方.deb包的启动问题

Most .deb launch failures come from missing dependencies or permission issues. Let's troubleshoot step by step:

  1. 先卸载已损坏的Viber安装包:
    sudo apt remove --purge viber
    sudo apt autoremove && sudo apt clean
    
  2. 重新安装.deb包并修复依赖:
    重新下载官方.deb包后,运行以下命令(把~/Downloads/viber.deb替换成你实际的文件路径):
    sudo dpkg -i ~/Downloads/viber.deb
    sudo apt -f install
    
  3. 从终端启动Viber查看报错信息:
    viber
    
    如果看到提示缺少libssl1.1(Ubuntu 22.04默认用libssl3,而Viber可能依赖旧版本),可以手动安装旧库:
    sudo echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
    sudo apt update
    sudo apt install libssl1.1
    # 可选:安装完成后禁用旧源避免冲突
    sudo mv /etc/apt/sources.list.d/impish-security.list /etc/apt/sources.list.d/impish-security.list.disabled
    

方案2:尝试Flatpak版Viber

Flatpak的沙箱环境通常能解决兼容性和依赖问题,操作步骤如下:

  1. 先安装Flatpak(如果还没装):
    sudo apt install flatpak
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    
  2. 通过Flatpak安装Viber:
    flatpak install flathub com.viber.Viber
    
  3. 启动应用:
    flatpak run com.viber.Viber
    

方案3:修复Wine/Bottles的安装问题

你的Wine版本(6.0.3)比较老旧,先更新再尝试:

  1. 卸载旧版Wine:
    sudo apt remove --purge wine*
    sudo apt autoremove && sudo apt clean
    
  2. 安装最新稳定版Wine:
    sudo dpkg --add-architecture i386
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
    wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
    sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
    sudo apt update
    sudo apt install --install-recommends winehq-stable
    
  3. 用更新后的Wine安装Windows版Viber:
    下载Windows版Viber安装包后,运行:
    wine ~/Downloads/ViberSetup.exe
    
    安装完成后启动:
    wine ~/.wine/drive_c/Program\ Files/Viber/Viber.exe
    
    如果Bottles仍有问题,在Bottles里新建一个64位前缀,设置环境为Windows 10,再尝试安装.exe文件。

方案4:排查非官方Snap版收不到验证码的问题

如果想再试试Snap版,可能是权限或网络拦截导致收不到验证码:

  1. 以开发模式重新安装Snap包(绕过严格权限):
    sudo snap remove viber-unofficial
    sudo snap install viber-unofficial --devmode
    
  2. 检查网络/防火墙设置:
    暂时关闭防火墙,看是否是它拦截了Viber的服务器:
    sudo ufw disable
    
    尝试登录后,如果有效再重新启用防火墙:
    sudo ufw enable
    

如果以上步骤出现报错,把终端里的具体错误信息贴出来,这样能更精准地定位问题!

备注:内容来源于stack exchange,提问作者TheHiddenArtemis

火山引擎 最新活动