maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   cant install and uninstall apps on n900 (https://talk.maemo.org/showthread.php?t=78590)

sarfa1 2011-10-07 11:45

cant install and uninstall apps on n900
 
i tried to install the gangstar ipk with dpkg but no success after that it sta4ted giving mema error on x terminal so i deleted the file from /usr/bin/dpkg but then found it essential for nstall and uninstall of apps so downloaded it again from 4shared and moved it back to /usr/bin/ and then tried to install a app then it gave a error dpkg:permission deniedso i runned this command chmod 755 /usr/bin/dpkgand then again tried to install apps then it gave me this error /usr/bin/dpkg: line 1: syntax error: "(" unexpected
so what to do now to again start to install apps pls help and sorry for my bad english

MiK546 2011-10-07 12:45

Re: cant install and uninstall apps on n900
 
Firstly, don't randomly delete critical system components or anything else outside MyDocs if you are not absolutely sure what it does. Only thing I can think of is to try to get the /usr/bin/dpkg from the debian package from the sdk repository. If that doesnt work I guess you'll have to reflash. And .ipk files can't be installed like debian packages.

sarfa1 2011-10-08 06:17

Re: cant install and uninstall apps on n900
 
dude i reflashed my device just ten days before and now theres no need for tat you just open x terminal and typerootafter tat leafpad /usr/bin/dpkgand copy paste wat u get after opening leafpad ill copy paste the same thing on my dpkg file and done if tat didnt works den ill go to a nokia gallery and tell them to send dpkg from a n900 to me via bluetooth and problem solve pls open x terminal and do tat for me pls

pusak gaoq 2011-10-08 06:33

Re: cant install and uninstall apps on n900
 
what you trying to do is installing a webOS games on your devices....
webOS games cannot be install using dpkg-i....
what you need is to install webOS games manager Here.....
that will help ease your pains while installing any webOS games on your device...

sarfa1 2011-10-08 07:14

Re: cant install and uninstall apps on n900
 
dude u just open x terminal rootthen leafpad /usr/bin/dpkgand copy paste wat u get after opening leafpad but see tat u have leafpad installed if nt den download and install it from repository.maemo.org go to extras devel and den in letter l after u have opened dpkg sucessfully in leafpad copy paste wat u get here and about webos games i have nearly ten of them installed but deb ones i wanted to install gangstar i have the ipk but web os manager would not install it so tried with dpkg and found this problem so pls open dpkg and copy the output here pls

sarfa1 2011-10-08 12:43

Re: cant install and uninstall apps on n900
 
someone pls help me open x terminal and type rootand then leafpad /usr/bin/dpkg and copy paste it here wat u get pls help me i beg ull i dont want to flash as there are nearly 40 apps which ive to reinstall again pls help

sarfa1 2011-10-08 12:52

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by pusak gaoq (Post 1105085)
what you trying to do is installing a webOS games on your devices....
webOS games cannot be install using dpkg-i....
what you need is to install webOS games manager Here.....
that will help ease your pains while installing any webOS games on your device...

hey pls open x terminal and type root and den "leafpad /usr/bin/dpkg"and then hit enter and copy paste it here wat u get pls i beg u

pusak gaoq 2011-10-08 13:10

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by sarfa1 (Post 1105227)
hey pls open x terminal and type root and den "leafpad /usr/bin/dpkg"and then hit enter and copy paste it here wat u get pls i beg u

you cannot leafpad on dpkg....it wont give you anything on leafpad....

sarfa1 2011-10-08 14:42

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by MiK546 (Post 1104674)
Firstly, don't randomly delete critical system components or anything else outside MyDocs if you are not absolutely sure what it does. Only thing I can think of is to try to get the /usr/bin/dpkg from the debian package from the sdk repository. If that doesnt work I guess you'll have to reflash. And .ipk files can't be installed like debian packages.

hey can u do me a favour open x terminal typerootpress enter and then type leafpad /usr/bin/dpkg and press enter leafpad will open and then copy paste it here wat u get i think dis will solve my problem pls

sarfa1 2011-10-08 14:44

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by pusak gaoq (Post 1105237)
you cannot leafpad on dpkg....it wont give you anything on leafpad....

press enter and not tab and dpkg will open

pusak gaoq 2011-10-08 14:53

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by sarfa1 (Post 1105270)
press enter and not tab and dpkg will open

i told you already there nothing in dpkg....
only 5 weird symbol appears...that show its un-editable or copy...

Kevstacey 2011-10-08 19:32

Re: cant install and uninstall apps on n900
 
a reflash is the best option

michaaa62 2011-10-08 20:09

Re: cant install and uninstall apps on n900
 
What are you expecting??? A miracle to happen?
You removed THE most integral part of any package management in a Debian based Linux. There is no way back from here... and you are asking to open a compiled binary with an gui editor to try to copy and paste???

I had to read this for a couple of times to actually believe my eyes!

Go flash your device healthy again...
and then stay away from rootsh! You are incapable to use root powers!

shallimus 2011-10-08 20:54

Re: cant install and uninstall apps on n900
 
It's a binary file. You can't copy and paste it from/to a text editor. This technique is guaranteed fail. Do you think if you deleted write.exe from a Windows installation you could use this same technique to replace it? (Try it, see what happens).
<simplification>The reason for this is that - to a text editor - binary files contain special system characters which cannot be displayed, copied or written.</simplification>

As others have said: Reflash your device. Don't delete things you don't understand.

Also, don't ask for the same thing five times, and don't ignore people trying to help you. Once is enough. If you already know better than everyone here, you don't need our help.

Good luck! :rolleyes:

sarfa1 2011-10-09 08:57

Re: cant install and uninstall apps on n900
 
does anyone knows how this error can be solved :/usr/bin/dpkg: line 1: syntax error: "(" unexpected if this does nt works then no option but to flash

tuxsavvy 2011-10-09 12:19

Re: cant install and uninstall apps on n900
 
No it cannot be solved and if you insist, you will be ignored by helpers which would leave you ultimately to solve everything yourself.

The only way is to reflash. NO IFs, NO BUTs. You deleted a critical binary file for package management which was completely your fault because you don't understand the difference between an .ipk file and a .deb file.

Whilst reflashing and re-setting up your device, you might want to take time and read how linux works properly before you do crazy stuff like deleting programs which had nothing to do with your issue.

sarfa1 2011-10-10 06:10

Re: cant install and uninstall apps on n900
 
ok thanks everyone for ur co operation and help

TiagoTiago 2011-10-10 07:54

Re: cant install and uninstall apps on n900
 
Wouldn't it have been possible for someone to copy the actual dpkg file from their N900, not the contents but the file itself, upload it somewhere for the guy to download and put back in the right place?

sarfa1 2011-10-15 19:44

Re: cant install and uninstall apps on n900
 
Quote:

Originally Posted by TiagoTiago (Post 1106397)
Wouldn't it have been possible for someone to copy the actual dpkg file from their N900, not the contents but the file itself, upload it somewhere for the guy to download and put back in the right place?

yeah i did the same downloaded the file from 4shared but the file was giving me some error which i showed in the above replies but now ive flashed my device and back to normal but very good for tat smart move

TiagoTiago 2011-10-15 20:13

Re: cant install and uninstall apps on n900
 
Was that file from a N900 or from another type of machine?

joy 2011-10-17 10:34

Re: cant install and uninstall apps on n900
 
Thanks for you help everyone because I did not any knowledge about that..

don_falcone 2011-10-17 11:06

Re: cant install and uninstall apps on n900
 
...downloading a random dpkg binary from the web, which was probably not even built for ARMv7 (and Maemo)? Hey, one can read something new and "fun" almost every week here on TMO. *rolls eyes*


All times are GMT. The time now is 13:08.

vBulletin® Version 3.8.8