我在安装Linux微信导入版本过程中,由于下载好打不开,自己更改了status文件,导致dpkg受损。以下是修复过程。
第一步
sudo rm -rf /var/lib/dpkg/status
sudo touch /var/lib/dpkg/status
sudo apt update
第二步
cd
ls
./setup.sh
第三步
sudo apt-get install com.qq.weixin.deepin
第四步
sudo apt --fix-broken install
第五步
sudo apt-get install com.qq.weixin.deepin
第六步
sudo dpkg --add-architecure i386
第七步
sudo dpkg --add-architecture i386
wget -nc /wine-builds/Release.key
wget https://dl.winehq.org/wine-builds/Release.key
第八步
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
第八步
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
第九
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 76F1A20FF987672F
第十
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
第十一
sudo apt-get install com.qq.weixin.deepin
第十二
sudo apt install --install-recommends winehq-stable #等待下载完成
我用的是清华镜像,因为dpkg受损所以删除后无法下载,非常慢,建议前面不要删除镜像