maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   can't install directly downloaded deb file using Applcation Manager (https://talk.maemo.org/showthread.php?t=46197)

amip 2010-03-01 14:57

can't install directly downloaded deb file using Applcation Manager
 
hi,
I have created a deb package of my application and I want it to install when a user directly downloads the deb file, but the installation fails with "Incompatible application package" message.
in the Application details/Summary the Status is "Not Installable"
and the Application details/Problems says "Incompatible application package".

If I save the deb file and use "dpkg -i" as root it installs with no problem

thanks

cddiede 2010-03-01 15:09

Re: can't install directly downloaded deb file using Applcation Manager
 
Quote:

Originally Posted by amip (Post 551078)

when a user directly downloads the deb file, but the installation fails with "Incompatible application package" message.
in the Application details/Summary the Status is "Not Installable"
and the Application details/Problems says "Incompatible application package".

If I save the deb file and use "dpkg -i" as root it installs with no problem

Hmm... Under one scenario, your are working as a user through the GUI and it fails.

Under the other scenario, you are working as root from the terminal and it succeeds.

Did you ever consider that you are only able to install this package as the root user? Perhaps the user executed application manager has a more complete compatibility check to ensure that N900-bricking hilarity does not ensue where as running dpkg as root lets you do as much damage as you want.

amip 2010-03-01 15:13

Re: can't install directly downloaded deb file using Applcation Manager
 
So how do I fix my package so it will be considered safe enough to be installed via the GUI?
The problem is that I cannot understand from the errors what the actual problem is

cddiede 2010-03-01 15:29

Re: can't install directly downloaded deb file using Applcation Manager
 
Quote:

Originally Posted by amip (Post 551095)
So how do I fix my package so it will be considered safe enough to be installed via the GUI?
The problem is that I cannot understand from the errors what the actual problem is

That's a damn good question. Without seeing your .deb file I would have to guess.

Since the original error had something to do with package incompatibility, I would look at your listed platform and listed dependencies in your deb file.

You should download a deb file that CAN be installed through the GUI and compare the platform/dependency listings and syntax to your own.

amip 2010-03-01 16:21

Re: can't install directly downloaded deb file using Applcation Manager
 
I attached my deb file

amip 2010-03-01 16:26

Re: can't install directly downloaded deb file using Applcation Manager
 
hi,
I have solved the problem. I was missing a "Section:" category in my control file

cddiede 2010-03-01 17:23

Re: can't install directly downloaded deb file using Applcation Manager
 
Awesome. Score one for forum sanity checks. :)

mashton 2010-11-26 10:17

Re: can't install directly downloaded deb file using Applcation Manager
 
If you get that error when attempting to install a deb file built using Qt Creator (Maemo project) on Nokia Qt SDK it can be because the debian control file has "Section: unknown" instead of something like "Section: user/development" or "Section: user/office" etc.

Though the debian file has a section category it needs to be something other than unknown to install without having to gainroot and install via xterminal.

More info here: http://developer.qt.nokia.com/forums/viewthread/1972/


All times are GMT. The time now is 14:25.

vBulletin® Version 3.8.8