Convert .deb package from i386 to lpia
These new fangled netbooks that run ubuntu such as the Dell Mini 9 are great. One problem, as mentioned in an earlier post on this blog (see Related Posts) is that when you download an application like skype or adobe flash player that isn’t in the repositories you get a .deb file for linux and when you try to install it the debian package manager will complain that there is an architecture mismatch because are attempting to install an i386 package on an lpia processor. You can use a commandline switch to force the install but you won’t be able to automatically uninstall it later.
As I mentioned in that previous post, you can just repackage the *_i386.deb file into a *_lpia.deb file manually, but now it is even easier than that as there is now a helper script to do it automatically thanks to the helpful guys on the ubuntu forums. Just unzip this i386 deb to lpia helper script file into the directory where you want to run it (or into your scripts directory), set it to executable and then run it from the directory with the *_i386.deb file. You don’t need to specify any parameters, but the deb package must end _i386.deb (rename it if you have to):
cd /path/to/my/i386/deb/file
wget http://www.matt-helps.com/pub/deb2lpia.sh.tar.gz
tar -xvzf deb2lpia.sh.tar.gz
rm deb2lpia.sh.tar.gz
chmod +x deb2lpia.sh
deb2lpia.sh
Hope that helps.
(updated for v1.1 of the script)
Related posts
Using Alien to convert .rpm packages to lpia .deb
lpia x86 debian packages
Linux: Bash Scripting: Search Bash History
Trash rather than rm
Faster internet connection with a local DNS cache
February 9th, 2009 at 5:03 pm
You are using an older version of the script. There are some permission issues with that. A newer version is available here (along with a nice deb package):
http://ubuntuforums.org/showpost.php?p=6528287&postcount=28
May 19th, 2009 at 4:40 pm
[...] Today, 12:40 AM You can try the NBR by using the live usb image, try it and see if you like it. It works great for me. The lpia architecture it a non-issue. Here are some insturctions to convert any i386 deb package to a lpia. Convert .deb package from i386 to lpia | matt-helps [...]
May 20th, 2009 at 11:37 pm
Thanks feranick - I’ve updated my copy of the script + the instructions.