Thread
:
Incompatible package, Section: user/FOO
View Single Post
tomei.ningen
2007-10-09 , 17:59
Posts: 2 | Thanked: 2 times | Joined on Oct 2007
#
1
This it might be useful to share this info with people in my similar situaion (new N800 and no WiFi network around)
I just received a new N800 device so I proceeded to install xterm and SSH on it so that I can get root access.
However, my company prohibits WiFi, so I needed to download the packages into the internal flash memory, and then install the .deb files manually using Application Manager. For my N800, I figured the following sequence of .deb files should be installed (in the order listed below)
http://repository.maemo.org/pool/bor...sso1_armel.deb
http://repository.maemo.org/pool/bor...sso1_armel.deb
http://repository.maemo.org/pool/bor...3osso2_all.deb
http://repository.maemo.org/pool/bor...sso2_armel.deb
http://repository.maemo.org/pool/bor...0.13_armel.deb
http://repository.maemo.org/pool/bor...sso7_armel.deb
However, when I try to install any of these .deb files, Application Manager simply gives a cryptic error message: "Incompatible Package" and refuses to install it. After poking around for a while, I found the Log screen of the Application Manager shows the output of "dpkg -i xxx.deb", which says something like:
Package must have "Section: user/FOO" to be considered compatible.
Not sure why dpkg complains this way -- I have another N800 already configured by someone else, and if I log in as root, I can run "dpkg -i" to install these deb files without any issues. Probably it had something to do with the fact that on my "virgin" N800, I am running Application Manager not as root.
Anyway, I wrote a script to fix the .deb files:
#-------------------------------------------------
rm -rf tmp
mkdir tmp
cd tmp
ar x ../$1
mkdir con
cd con
tar zxf ../control.tar.gz
sed -e 's/Section: .*/Section: user\/Foo/g' < control > control.tmp
mv control.tmp control
tar zcf ../control.tar.gz .
cd ..
X=`echo $1 | sed -e 's/.deb/.fixed.deb/g'`
rm -f ../$X
ar cq ../$X debian-binary control.tar.gz data.tar.gz
cd ..
ls -l $1 $X
#--------------------------------------------------------------
Just save it as fix.sh and run "sh fix.sh foo.deb", and it will generate a file called foo.fixed.deb
After that, install the .fixed.deb files in the order specified about, then, launch xterm, and run
ssh root@localhost <-- password = rootme
Then you will have root!
Enjoy!
Quote & Reply
|
The Following 2 Users Say Thank You to tomei.ningen For This Useful Post:
debernardis
,
Wikiwide
tomei.ningen
View Public Profile
Find all posts by tomei.ningen