maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   (HELP!) Damaged Installation Package (https://talk.maemo.org/showthread.php?t=87576)

kainerious 2012-10-25 18:08

(HELP!) Damaged Installation Package
 
I can not install any application, the following message appears:
Can't install. Damaged Installation Package
I tried to do the following, without success:

Reboot
Install via Terminal in user and root mode.
Uninstall another application (no problem) and yes.. i have storage space.
This commands in Terminal and reboot:
mkdir -p /var/cache/apt/archives
touch /var/cache/apt/archives/lock
apt-get update
apt-get upgrade

I was trying to generate a .deb (apparently successful), then I wanted to install it with FileBox and that error appeared.

Anyone can help me, please. I know ..can fix it with flash, but i would avoid it. Thanks

http://dl.dropbox.com/u/98932701/DAMAGEINSTALL.png


No puedo instalar ninguna aplicación, aparece el siguiente mensaje:
Imposible instalar. Paquete de instalación dañado

Traté de hacer lo siguiente, sin éxito:

Reiniciar
Instalación mediante la terminal en modo de usuario y root.
*Desinstalar otra aplicación (no hay problema) y tengo espacio de almacenamiento.
Este comando en la terminal y reiniciar el sistema:
mkdir-p / var / cache / apt / archives
touch / var / cache / apt / archives / lock
apt-get update
apt-get upgrade

Yo estaba tratando de generar un .deb (aparentemente con éxito), entonces quería instalarlo con FileBox y apareció ese error.

Alguien me puede ayudar, por favor. Sé que puedo arreglarlo con flash, pero me gustaría evitarlo. Gracias.

thedead1440 2012-10-25 18:13

Re: (HELP!) Damaged Installation Package
 
you also need to mkdir -p /var/cache/apt/archives/partial

kainerious 2012-10-25 18:39

Re: (HELP!) Damaged Installation Package
 
Thanks thedead1440
I did:
devel-su
rootme
mkdir -p /var/cache/apt/archives
touch /var/cache/apt/archives/lock
mkdir -p /var/cache/apt/archives/partial
(reboot)
apt-get update
apt-get upgrade
(reboot)
But... no solved.

thedead1440 2012-10-25 18:42

Re: (HELP!) Damaged Installation Package
 
also touch /var/lib/dpkg/lock

kainerious 2012-10-25 19:13

Re: (HELP!) Damaged Installation Package
 
Thanks again, but still does not work.

devel-su
rootme
mkdir -p /var/cache/apt/lists/
mkdir -p /var/cache/apt/archives
mkdir -p /var/cache/apt/archives/partial
touch /var/cache/apt/archives/lock
touch /var/lib/dpkg/lock

(reboot)
apt-get update
apt-get upgrade
(reboot)

As it does not work, then delete the LOCK files and rebooted, did not work either. :(

rainisto 2012-10-26 16:59

Re: (HELP!) Damaged Installation Package
 
1. maybe you haven't enabled unknown origin installs from the menu
2. and maybe you have permission issues as root cannot read user owned files
3. why trying to install from vfat partition? maybe copy to /root/ and double check that root can read the file (not only user owned).
4. maybe you have corrupted or edited your refhashlist/restok (then you need to reflash to recover).

kainerious 2012-10-29 04:45

Re: (HELP!) Damaged Installation Package
 
rainisto Thanks, i reflash my device..this time i used Quicktweak backup, very good indee.

kainerious 2012-11-08 07:31

Re: (HELP!) Damaged Installation Package
 
Again! same problem, help :(

thedead1440 2012-11-08 08:49

Re: (HELP!) Damaged Installation Package
 
Quote:

Originally Posted by kainerious (Post 1291707)
Again! same problem, help :(

What did you do this time?

And by same problem you mean exactly like in the first post?

Maybe you want to give new screenshots or paste outputs here of what problems you are having?

kainerious 2012-11-08 16:30

Re: (HELP!) Damaged Installation Package
 
Hello! Yes i did the same as last time. I was trying to create a .deb (in fact it created)..
After doing this:
" There is a work-around for the above:
- Download this tar file from my dropbox: http://db.tt/zSChAgJA

In terminal as root:

- cp -R /path/to/downloaded/tar /bin/

- chmod 775 /bin/tar

Now just repeat your packaging and you are done"

Now I have this problem (again):
Can't install. Damaged Installation Package

It is a matter of pride. I do not want flash! Thanks!!

kainerious 2012-11-08 16:41

Re: (HELP!) Damaged Installation Package
 
Now I can not uninstall applications :D
http://dl.dropbox.com/u/98932701/Desinstlar.png

thedead1440 2012-11-08 19:59

Re: (HELP!) Damaged Installation Package
 
those instructions in your post look like what I've posted on the .deb packaging thread :eek: i didn't know they cause an issue...

since you can still install apps can you do in terminal as root:

apt-get install binutils

You would need the Harmattan SDK repo enabled to do it...

If it still doesn't work post here...


P.S. Are you sure you did the tar steps correctly? I did it without issues and i know two others had no problems with it :)

kainerious 2012-11-08 21:08

Re: (HELP!) Damaged Installation Package
 
Thank you. Yes, I was trying to create a deb. In fact the first time i had this problem it generated the. DEB and works. A friend asked me how did it and i turned to the TMO post, he told me that he could not and i tried .. obtaining a. DEB which i can not prove that i can not install anything.
He did the same and has no trouble installing other applications, but the. DEB generated weighs 0 kb.
Of course i followed the procedure, were created. DEB
I can't install binutils because a message similar to the image before published.
Thank you for your support.

thedead1440 2012-11-08 21:14

Re: (HELP!) Damaged Installation Package
 
I have successfully created .deb's using those steps though...

Can you try downloading binutils from here and then extract it manually to the respective directories?

kainerious 2012-11-08 21:34

Re: (HELP!) Damaged Installation Package
 
Yes, me too i have .debs using those steps, but.. :D
Already folders manually pasted (binutils) , but i still have the same problem, or what should do with it? Thanks!

Pd. I hope do not get bored, i want to try everything. Last time i despaired and flash my device. ;)

thedead1440 2012-11-08 21:37

Re: (HELP!) Damaged Installation Package
 
did you chmod 775 whatever you extracted?

kainerious 2012-11-08 22:48

Re: (HELP!) Damaged Installation Package
 
Yes Sir.. i did it. No solution =D

thedead1440 2012-11-09 01:44

Re: (HELP!) Damaged Installation Package
 
Are you in open mode?

If not, it could be possible that the tar change needs to be reflected in the refhashlist...

Also have you tried putting back the default tar?

kainerious 2012-11-09 04:01

Re: (HELP!) Damaged Installation Package
 
I have open mode and Inception. I asked someone your original file, pasted .. neither worked. Maybe should flashing, i guess.. i can't fix it. Thanks!

thedead1440 2012-11-09 06:35

Re: (HELP!) Damaged Installation Package
 
Pls give me the ls -l output of /bin/tar/

Also the sha1sum value of it...

I'll check the refhashlist till then if this is in there...

thedead1440 2012-11-09 07:04

Re: (HELP!) Damaged Installation Package
 
also can you try doing in terminal as root:

apt-get install gnu-tar


Edit: The more I look at that screenshot I feel its a chmod error...Maybe chmod 777? The screen says tar isn't executable so that's the main issue here...

kainerious 2012-11-09 07:46

Re: (HELP!) Damaged Installation Package
 
Hey! Hello again.. i flash my device again and i did "The Grand DEB Packaging" and again: "tar: unrecognized option '--format=gnu'" .
Then i do what you suggested in that publication:
" - cp -R /path/to/downloaded/tar /bin/

- chmod 775 /bin/tar "
Anew... .deb success ... but Damage Installation Package (any deb).

This time, i did a backup of my "tar" archive and restore it... no solution.

Thanks for all the inconvenience and hope you understand that i'm experiencing, I do not know anything about programming but read. I'm an architect, i hope my intention to create simple packages not be truncated.

Pd. apt-get install gnu-tar -> package not found.
Cheers!

thedead1440 2012-11-09 07:50

Re: (HELP!) Damaged Installation Package
 
ok since you are on fresh device can you install the binutils .deb I gave you?

then try the .deb packaging again?

kainerious 2012-11-09 07:54

Re: (HELP!) Damaged Installation Package
 
Ok.. i try ! ;)

kainerious 2012-11-09 08:35

Re: (HELP!) Damaged Installation Package
 
thedead1440 The binutils.DEB you posted it earlier say: Package not valid.
I install Binutils from Harmattan SDK repo
(apt-get install binutils )
And i did "The Grand DEB Packaging" and again: "tar: unrecognized option '--format=gnu'"

rainisto 2012-11-09 08:46

Re: (HELP!) Damaged Installation Package
 
Quote:

Originally Posted by kainerious (Post 1292222)
And i did "The Grand DEB Packaging" and again: "tar: unrecognized option '--format=gnu'"

And here is your problem "The Grand DEB packaging"- thread is for N900 only, if you follow the thread with N9, you will corrupt your tar binary sha1 not to match refhashlist even if your in open mode.

Options:
1. Reflash the device
2. copy origin tar from busybox back in place (worst case still need to reflash)

You really should just do deb packages with your linux desktop and not on device. If you really need to replace tar command, then use AEGIS_FIXED_ORIGIN in openmode, and even then gnutar might be incompatible with harmattan installer.

kainerious 2012-11-09 16:25

Re: (HELP!) Damaged Installation Package
 
Thanks Rainisto, i will install Ubuntu Quetzal on my Mac, be enough? Sorry, i did not read that it was N900. :S


All times are GMT. The time now is 09:11.

vBulletin® Version 3.8.8