对于南山必胜客无话可说,QQ的Linux版自从去年发布的那一刻就没有更新过了,估计是为了应付上上的领导任务吧。现在流行完全自主研发的操作系统,估计QQ也发个Linux版试水的。

本文将说明如何在ubuntu 20.04以及ubuntu 18.04上安装QQ。

添加GPG key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB

添加deepin源

echo "deb [by-hash=force] https://community-packages.deepin.com/deepin apricot main contrib non-free" | sudo tee  /etc/apt/sources.list.d/deepin.list
echo "deb https://community-store-packages.deepin.com/appstore eagle appstore" | sudo tee  /etc/apt/sources.list.d/deepin_appstore.list

安装 deepin-wine QQ

codename=`cat /etc/lsb-release |grep DISTRIB_CODENAME|awk -F '=' '{print $2}'`
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -t $codename deepin-wine5 -fy
sudo apt install -t $codename com.qq.im.deepin fonts-wqy-microhei
sudo rm -rf /etc/apt/sources.list.d/deepin_appstore.list
sudo rm -rf /etc/apt/sources.list.d/deepin.list

解决Ubuntu QQ字体框框的问题

你需要添加环境变量LC_ALL=zh_CN.UTF-8到QQ启动脚本,执行下面命令的将会自动添加LC_ALL=zh_CN.UTF-8到QQ启动脚本中

sed -i.bak '2i export LC_ALL=zh_CN.UTF-8' /opt/apps/com.qq.im.deepin/files/run.sh