Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Dell Ubuntu Support
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Dell Ubuntu Support
Got a Dell powered by Ubuntu? Or thinking about getting one? Discuss it here.

 
Thread Tools Display Modes
Old October 29th, 2008   #1
feranick
Just Give Me the Beans!
 
Join Date: Mar 2007
My beans are hidden!
Ubuntu 8.04 Hardy Heron
HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

I am reposting this with more visibility. You can easily repackage any deb outside the repos into an lpia one. The reason you want lpia packages instead of forcing the i386, is that while the former will show up as an installed package on synaptic, the later won't, so good luck uninstalling it. For example here's the directions to convert the stock i386 package for Skype into an lpia package:

1. Download the Ubuntu version of Skype
2. Use the Archive manager to uncompress it. Alternatively, right click on the deb package and select "extract here"
3. Rename the uncompressed folder, by changing the ending from i386 to lpia. (the folder should be now named: skype-debian_2.0.0.72-1_lpia)
4. Open the folder
5. There are 3 files. remove the "debian-binary" file
6. Decompress "control.tar.gz". There are tree files in it.
7. Make a folder "DEBIAN" in the main folder, and placed the 3 files you just decompressed inside it.
8. Open one of the files inside DEBIAN, "control". Change the line "Architecture: i386" into "Architecture: lpia"
9. Open the other archive "data.tar.gz". There is a folder "." inside. Open it (double click). Select both the folders (usr and etc) and select uncompress.
10. Remove the files "control.tar.gz" and "data.tar.gz"
11. You should now have your main folder with the following inside:
DEBIAN folder with tree text files in it (conffiles, control, md5sums); a "usr" folder and a "etc" folder.
12. You are now ready to prepare your lpia deb folder.
13. From the command line, go to the folder that contains your main skype folder you just prepared (most likely named: skype-debian_2.0.0.72-1_lpia).
14. type: dpkg --build skype-debian_2.0.0.72-1_lpia
15. Your deb package is ready. Double click on it and follow instruction. After installation it should appear in Synaptic, and from there you can remove it at any time.
16. Enjoy!!!


This has been tested (and currently working) with: Skype, Opera, Picasa, Adobe Flash 10.
feranick is offline   Reply With Quote
Old November 17th, 2008   #2
starcannon
Chocolate Ubuntu Mocha Blend
 
starcannon's Avatar
 
Join Date: Feb 2007
Location: Medical Lake WA, U.S.A.
Beans: 1,814
Ubuntu 8.04 Hardy Heron
Send a message via Yahoo to starcannon Send a message via Skype™ to starcannon
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

This is something most of us new mini9 owners need to know. Thanks for the tut, it needs put somewhere handy at least while the min9 is hitting the market.

Subscribing to this thread so I can link it in the future.

Thanks again!
__________________
9.10 Torrent Links Here Backup, then move forward.
starcannon is offline   Reply With Quote
Old November 23rd, 2008   #3
peril62
First Cup of Ubuntu
 
Join Date: Oct 2008
Beans: 6
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

Quote:
Originally Posted by feranick View Post
I am reposting this with more visibility. You can easily repackage any deb outside the repos into an lpia one. The reason you want lpia packages instead of forcing the i386, is that while the former will show up as an installed package on synaptic, the later won't, so good luck uninstalling it. For example here's the directions to convert the stock i386 package for Skype into an lpia package:

1. Download the Ubuntu version of Skype
2. Use the Archive manager to uncompress it. Alternatively, right click on the deb package and select "extract here"
3. Rename the uncompressed folder, by changing the ending from i386 to lpia. (the folder should be now named: skype-debian_2.0.0.72-1_lpia)
4. Open the folder
5. There are 3 files. remove the "debian-binary" file
6. Decompress "control.tar.gz". There are tree files in it.
7. Make a folder "DEBIAN" in the main folder, and placed the 3 files you just decompressed inside it.
8. Open one of the files inside DEBIAN, "control". Change the line "Architecture: i386" into "Architecture: lpia"
9. Open the other archive "data.tar.gz". There is a folder "." inside. Open it (double click). Select both the folders (usr and etc) and select uncompress.
10. Remove the files "control.tar.gz" and "data.tar.gz"
11. You should now have your main folder with the following inside:
DEBIAN folder with tree text files in it (conffiles, control, md5sums); a "usr" folder and a "etc" folder.
12. You are now ready to prepare your lpia deb folder.
13. From the command line, go to the folder that contains your main skype folder you just prepared (most likely named: skype-debian_2.0.0.72-1_lpia).
14. type: dpkg --build skype-debian_2.0.0.72-1_lpia
15. Your deb package is ready. Double click on it and follow instruction. After installation it should appear in Synaptic, and from there you can remove it at any time.
16. Enjoy!!!


This has been tested (and currently working) with: Skype, Opera, Picasa, Adobe Flash 10.
To install Picasa I have used:
sudo dpkg --force-architecture -i (route to my picasa deb)
and it has worked perfecty well. This seems a much easier method than the one reported above and plan to keep usisng it with other debs. Should I expect any problem with it? Thanks.
peril62 is offline   Reply With Quote
Old November 23rd, 2008   #4
mecrider
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

Quote:
Originally Posted by peril62 View Post
To install Picasa I have used:
sudo dpkg --force-architecture -i (route to my picasa deb)
and it has worked perfecty well. This seems a much easier method than the one reported above and plan to keep usisng it with other debs. Should I expect any problem with it? Thanks.
As the first post said, this way the package doesn't show up in Synaptic, so you can't use that to remove or update it. However, you should still be able to use "dpkg -r" if you want to remove it. (DISCLAIMER: I haven't tested this, as I don't have my Dell Mini yet.)
mecrider is offline   Reply With Quote
Old November 23rd, 2008   #5
mecrider
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

There is an Italian bash script that automates this process of converting i386 debs to lpia, available at http://www.blogwol.com/2008/11/08/sc...er-intel-atom/. Of course it works fine on other language systems. Just put the script in your path, and it will convert all the .debs in the directory you run it from.
mecrider is offline   Reply With Quote
Old December 12th, 2008   #6
runningdoc
First Cup of Ubuntu
 
Join Date: Dec 2008
Beans: 11
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

These directions worked beautifully and this is from a person who received the mini about 2 weeks ago, never worked with Linux or Ubuntu until then and still was able to make it work with these excellent directions. Thank you so much for sharing your knowledge.

Last edited by runningdoc; December 12th, 2008 at 01:41 AM.. Reason: problem solved
runningdoc is offline   Reply With Quote
Old December 12th, 2008   #7
feranick
Just Give Me the Beans!
 
Join Date: Mar 2007
My beans are hidden!
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

I took liberty of translating the script, which does pretty much what the howto does, but automatically. I also fixed it so that it converts ONLY i386 packages (the original one converts packages with any architecture, when only i386 can be really converted).

To run the script:
1. Copy the script in the same folder as your i386 packages

2. Run the script either from the command line or by double clicking on it. This last step requires you to change permissions to make it executable (right click on the script file and check the "Allow executing file as program" in the permission tab.

3. Enjoy.
Attached Files
File Type: sh deb2lpia_en.sh (1.1 KB, 253 views)
feranick is offline   Reply With Quote
Old December 13th, 2008   #8
anjilslaire
Grande Half-n-Half Cinnamon Ubuntu
 
anjilslaire's Avatar
 
Join Date: Apr 2005
Location: /home/laire
Beans: 991
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to anjilslaire Send a message via Yahoo to anjilslaire
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

This is all great, bit I wish Canonical would support full-blown lpia repositories so we could install & update freely.
Then we could choose from
x86
x64
PPC
lpia

Or am I the only one?
__________________
Need more useless stuff to read on teh internetz?
Kubuntu user 21794
Linux user 471964
anjilslaire is offline   Reply With Quote
Old December 13th, 2008   #9
Fatjuan
First Cup of Ubuntu
 
Join Date: Dec 2008
Beans: 1
Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

Just used feranick's procedure.
Thanks so much!
Fatjuan is offline   Reply With Quote
Old December 15th, 2008   #10
dragonmojo
5 Cups of Ubuntu
 
Join Date: Dec 2008
Location: Sacramento, CA
Beans: 29
Ubuntu 8.10 Intrepid Ibex
Send a message via Skype™ to dragonmojo
Smile Re: HOWTO: Repackage i386 deb for in lpia (for Dell Mini9)

Quote:
Originally Posted by Fatjuan View Post
Just used feranick's procedure.
Thanks so much!
Ditto.
I am such a noob to Ubuntu/Linux. Followed the instructions and was successful installing Skype!
dragonmojo is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:57 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry