【备忘】Ubuntu安装卸载qq(version number does not start with digit)

错误描述:

dpkg:处理 ~/linuxqq_v1.0.2-beta1_i386.deb (–install)时出错:
parsing file ‘/var/lib/dpkg/tmp.ci/control’ near line 7 package ‘linuxqq’:
版本字符串 v1.0.2-beta1 中有错误: version number does not start with digit



解决办法:
解出下载的deb包:

# dpkg-deb -x linuxqq_v1.0.2-beta1_i386.deb qq
# dpkg-deb -e linuxqq_v1.0.2-beta1_i386.deb qq/DEBIAN


修改DEBIAN里面的control文件,将v1.0.2-beta1的v删除。


# sudo vim /home/jason/Downloads/qq/DEBIAN/control

(press i to insert and then delete the v character, finally press ESC then :x to save and exit)


修改之后如下:


Package: linuxqq
Priority: extra
Section: Internet
Installed-Size: 6264
Maintainer: Tencent Inc.
Architecture: i386
Version: 1.0.2-beta1
Depends: gtk2.0-binver-2.10.0, libc6, libcairo2, libglib2.0-0, libgtk2.0-0, libpango1.0-0
Description: QQ - The most popular free instant messaging program in China.
 * Chat with more than 590,000,000 people all over the world.
 * Free to download or distribute absolutely.


重新打包:


# dpkg-deb -b qq qq.deb


安装:


# sudo dpkg -i qq.deb


若要卸载,先找到qq的全名:

# dpkg -l | grep qq
显示qq安装全名是  linuxqq

然后用如下命令卸载即可:

# sudo dpkg -r linuxqq

你可能感兴趣的:(【备忘】Ubuntu安装卸载qq(version number does not start with digit))