首页 > 折腾 > debian包的结构和解包打包-从打包ubuntu12.10 linuxqq说起

debian包的结构和解包打包-从打包ubuntu12.10 linuxqq说起

2013年1月9日 发表评论 阅读评论

作为2B青年,果断在mac下装了linux。今天想装QQ,发现报错了。

daohoo@daohoo-mbp:~/Downloads$ sudo dpkg -i linuxqq_v1.0.2-beta1_i386.deb
[sudo] password for daohoo:
dpkg: error processing linuxqq_v1.0.2-beta1_i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'linuxqq':
 error in Version string 'v1.0.2-beta1': version number does not start with digit
Errors were encountered while processing:
 linuxqq_v1.0.2-beta1_i386.deb

根据错误信息显示,不能安装的原因是新版的ubuntu要求版本号为数字开头,SB的腾讯却用v开头。因此,我猜想,只要重新打包即可(之前我通过重新打包的方法,也改过android QQ的尾巴)。过程如下:

1.ar解包:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ ar vx linuxqq_1.0.2_i386.deb
x - debian-binary
x - control.tar.gz
x - data.tar.gz

2.tar解包control信息:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ tar -zxvf control.tar.gz
./
./conffiles
./control

3.修改control文件:

sed -i "s/v1.0/1.0/g" control

4.重新tar打包control.tar.gz

tar -zcvf control.tar.gz ./conffiles ./control

5.ar重新打包debian包:

ar rcs linuxqq.deb debian-binary control.tar.gz data.tar.gz

6.安装:

sudo dpkg -i linuxqq.deb

BTW:介绍一下关于debian包的结构:

1.解包后得到三个文件:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ ls -l
total 4920
-rw-r--r-- 1 daohoo daohoo     442 Jan  9 20:50 control.tar.gz
-rw-r--r-- 1 daohoo daohoo 5027432 Jan  9 20:50 data.tar.gz
-rw-r--r-- 1 daohoo daohoo       4 Jan  9 20:50 debian-binary

其中:

1.debian-binary:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ cat debian-binary
2.0

 

这个文件包含所使用软件包格式的版本号

2.control.tar.gz:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ tar -zxvf control.tar.gz
./
./conffiles
./control

 

daohoo@daohoo-mbp:~/Downloads/linuxqq$ cat control
Package: linuxqq
Priority: extra
Section: Internet
Installed-Size: 6264
Maintainer: Tencent Inc.
Architecture: i386
Version: v1.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.

 

包含了软件包管理工具所需信息的tarball文件。里面的control文件有版本号以及依赖关系

3.data.tar.gz:

daohoo@daohoo-mbp:~/Downloads/linuxqq$ tar -zxvf data.tar.gz
./
./usr/
./usr/bin/
./usr/bin/qq
./usr/share/
./usr/share/tencent/
./usr/share/tencent/qq/
./usr/share/tencent/qq/qq.png
./usr/share/tencent/qq/qq
./usr/share/tencent/qq/res.db
./usr/share/applications/
./usr/share/applications/qq.desktop
./usr/share/doc/
./usr/share/doc/linuxqq/
./usr/share/doc/linuxqq/qq

这个才是最后真正的安装文件,指明了安装的路径。

最后,上传下打好包在ubuntu12.10可用的linux QQ debian包(出于安全考虑,对debian进行了重新打包)。

ubuntu12.10 可用linux QQ



分类: 折腾 标签: ,

  1. 2019年3月7日00:33 | #1

    Now I am going away to do my breakfast, once having my breakfast coming again to read
    more news.

  2. 2019年3月7日17:56 | #2

    I am regular visitor, how are you everybody?

    This post posted at this website is genuinely nice.

  3. 2019年3月8日03:47 | #3

    I have read so many content concerning the blogger lovers except this piece of writing is really a
    fastidious paragraph, keep it up.

  4. 2019年3月8日07:53 | #4

    My brother recommended I might like this website. He was
    totally right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!

  5. 2019年3月8日17:32 | #5

    You could definitely see your enthusiasm within the work
    you write. The world hopes for even more passionate writers
    like you who aren’t afraid to say how they believe.
    Always go after your heart.

  6. 2019年3月8日18:37 | #6

    excellent issues altogether, you just won a brand new reader.

    What would you recommend about your put up that you made some
    days ago? Any certain?

  7. 2019年3月9日08:53 | #7

    Fine way of explaining, and fastidious post to get facts on the topic
    of my presentation subject matter, which i am going to convey in university.

  8. 2019年3月9日13:31 | #8

    Superb website you have here but I was wondering if you
    knew of any community forums that cover the same topics talked about here?
    I’d really like to be a part of community where I can get comments
    from other knowledgeable individuals that share the same interest.
    If you have any suggestions, please let me know. Thanks!

  9. 2019年3月9日15:43 | #9

    Nice post. I was checking constantly this blog and I
    am impressed! Very useful information specially the last part
    🙂 I care for such information a lot. I was looking for this
    certain info for a long time. Thank you and best of luck.

  10. 2019年3月10日22:43 | #10

    Please let me know if you’re looking for a article writer for your
    blog. You have some really great articles and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely love to write some content for
    your blog in exchange for a link back to mine. Please send me an e-mail if
    interested. Kudos!

  11. 2019年3月12日06:16 | #11

    It’s appropriate time to make some plans for the future and it is time to
    be happy. I’ve read this post and if I could I wish
    to suggest you few interesting things or tips.

    Maybe you can write next articles referring to this article.
    I want to read even more things about it!

  12. 2019年3月12日09:30 | #12

    Hello there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked
    hard on. Any recommendations?

  13. 2019年3月12日11:30 | #13

    My brother recommended I might like this web site.
    He was totally right. This post truly made my
    day. You cann’t imagine simply how much time I had spent for
    this info! Thanks!

  14. 2019年3月12日17:48 | #14

    Oh my goodness! Amazing article dude! Thank you, However
    I am experiencing problems with your RSS. I don’t understand the reason why I cannot subscribe to it.
    Is there anyone else having similar RSS problems?
    Anybody who knows the solution will you kindly respond? Thanx!!

  15. 2019年3月13日00:04 | #15

    I visit day-to-day some sites and websites to read posts, however this website offers feature based content.

  16. 2019年3月13日05:18 | #16

    I love your blog.. very nice colors & theme. Did you
    create this website yourself or did you hire someone to do it for
    you? Plz respond as I’m looking to design my own blog and
    would like to find out where u got this from. thank you

  17. 2019年3月13日05:24 | #17

    I for all time emailed this web site post page to all my friends,
    since if like to read it next my links will too.

  18. 2019年3月13日07:40 | #18

    For latest information you have to pay a visit web and on world-wide-web I found this site as a
    finest web page for most up-to-date updates.

  19. 2019年3月13日08:56 | #19

    Today, I went to the beach with my children. I found a
    sea shell and gave it to my 4 year old daughter and
    said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is entirely off topic but
    I had to tell someone!

  20. 2019年3月13日13:38 | #20

    This is very interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of your wonderful post.
    Also, I’ve shared your site in my social networks!

  21. 2019年3月13日17:00 | #21

    hello!,I really like your writing very much! proportion we be in contact more about your post on AOL?
    I need a specialist in this space to unravel my problem. May be
    that is you! Looking ahead to see you.

  22. 2019年3月13日17:55 | #22

    There is definately a lot to learn about this subject.
    I really like all of the points you made.

  23. 2019年3月13日18:09 | #23

    I every time spent my half an hour to read this
    blog’s articles or reviews all the time along with a cup of coffee.

  24. 2019年3月14日01:27 | #24

    What a stuff of un-ambiguity and preserveness of valuable know-how on the topic of
    unpredicted emotions.

  25. 2019年3月14日01:31 | #25

    Hello to all, how is the whole thing, I think every one is getting more
    from this web site, and your views are good in support
    of new users.

  26. 2019年3月14日02:02 | #26

    Hey there, You have done a fantastic job. I will certainly
    digg it and personally suggest to my friends. I am sure
    they will be benefited from this web site.

  27. 2019年3月14日02:47 | #27

    Useful info. Lucky me I discovered your web site by accident, and
    I am surprised why this accident didn’t came about in advance!
    I bookmarked it.

  28. 2019年3月14日11:49 | #28

    Please let me know if you’re looking for a article author for your blog.
    You have some really good posts and I think I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely love
    to write some material for your blog in exchange for a link back to
    mine. Please send me an email if interested. Kudos!

  29. 2019年3月14日11:54 | #29

    Good way of telling, and fastidious post to get facts regarding my
    presentation focus, which i am going to deliver in college.

  30. 2019年3月14日20:11 | #30

    There is certainly a lot to know about this issue. I like all the points you have made.

  31. 2019年3月14日21:40 | #31

    We stumbled over here coming from a different website and thought I may as well check things out.
    I like what I see so now i’m following you. Look forward to looking into your
    web page for a second time.

  32. 2019年3月15日05:47 | #32

    You should take part in a contest for one of the highest quality websites on the internet.
    I most certainly will highly recommend this website!

  33. 2019年3月15日18:23 | #33

    My brother recommended I would possibly like this blog. He used to
    be totally right. This publish truly made my day. You can not
    consider simply how so much time I had spent for this info!
    Thank you!

  34. 2019年3月15日18:37 | #34

    We’re a group of volunteers and starting a new scheme in our
    community. Your website offered us with valuable info to work on. You’ve done an impressive job and our
    entire community will be thankful to you.

  35. 2019年3月17日08:24 | #35

    Appreciation to my father who informed me regarding this weblog, this weblog is genuinely awesome.

  36. 2019年3月17日10:36 | #36

    I know this if off topic but I’m looking into starting my own blog and was wondering what all
    is required to get setup? I’m assuming having a blog like yours
    would cost a pretty penny? I’m not very web savvy so I’m not 100% sure.
    Any suggestions or advice would be greatly appreciated.

    Cheers

  37. 2019年3月17日15:50 | #37

    Thanks very interesting blog!

  38. 2019年3月17日17:19 | #38

    Excellent blog right here! Also your site so much up
    fast! What host are you the usage of? Can I get your associate link in your host?
    I wish my web site loaded up as quickly as yours lol

  39. 2019年3月17日20:37 | #39

    Gas fireplace also keeps working in power outages.

  40. 2019年3月17日21:43 | #40

    Neat blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really make
    my blog shine. Please let me know where you got your design. Kudos

  41. 2019年3月18日04:30 | #41

    WOW just what I was looking for. Came here by searching for ig

  42. 2019年3月18日12:48 | #42

    It’s appropriate time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I wish to suggest
    you few interesting things or advice. Perhaps you could write next
    articles referring to this article. I want to read more things about it!

  43. 2019年3月18日14:39 | #43

    An impressive share! I have just forwarded this onto a friend who had been doing a little research on this.

    And he in fact bought me dinner due to the fact that I found it for him…
    lol. So let me reword this…. Thanks for the meal!!

    But yeah, thanks for spending time to talk about this subject here
    on your website.

  44. 2019年3月19日01:13 | #44

    Appreciate the recommendation. Will try it out.

  45. 2019年3月19日21:21 | #45

    Post writing is also a excitement, if you be familiar with then you can write otherwise it is difficult to write.

  46. 2019年3月20日02:03 | #46

    Everyone loves what you guys tend to be up too. Such clever work and reporting!
    Keep up the fantastic works guys I’ve incorporated you guys to my personal blogroll.

  47. 2019年3月20日08:09 | #47

    I delight in, result in I discovered exactly what I was having a look for.
    You have ended my 4 day long hunt! God Bless you man. Have a nice day.
    Bye

  48. 2019年3月20日08:36 | #48

    Great delivery. Sound arguments. Keep up the great spirit.

  49. 2019年3月20日08:45 | #49

    For the reason that the admin of this web site is working, no question very soon it will be renowned, due to its quality contents.

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

无觅相关文章插件,快速提升流量