【备忘】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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值