Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

can't install application to phone from local repository

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


ibrahim.ali at asgatech

Oct 22, 2009, 5:04 AM

Post #1 of 11 (1183 views)
Permalink
can't install application to phone from local repository

cheers;

I created a local repository to host some test applications for Maemo
fremantle device - and YES, the repository folders are visible to the
phone- Added some packages and ran the "dpkg-scanpackages" utility to
generate the "Package " and "Package.gz" files with no errors.

_the contents of the Package file :_

Package: hello
Version: 1.0
Architecture: all
Maintainer: Your Name <you [at] email <mailto:you [at] email>>
Filename: hello-1.0.deb
Size: 4158
MD5sum: ce9ebc5398438693ae49d1f7c7679633
Section: base
Priority: optional
Description: Hello World When you need some sunshine, just run this
small program!



the directory structure of my local repository is :
/var/www/repo/dists/fremantle/free/binary-armel/
so, the url to the package files is :
http://<local-ip>/repo/dists/fremantle/free/binary-armel/
<http://%3clocal-ip%3e/repo/dists/fremantle/free/binary-armel/>

application packages and the index files "Package files" are inside the
binary-armel/ folder

_ the ".install" file for the application :_

[install]
catalogues= hellocat
package= hello

[hellocat]
name = hello
uri= http://<local-ip>/repo <http://%3clocal-ip%3e/repo>
dist= fremantle
components = free



opening the install file on the device with the Application Manager adds
the catalogue to the catalogues list, the installation procedure starts
saying:"preparing for the installation, please wait"
but the Application manager says that it couldn't download the
application : "unable to download 'hello'. Application package not found".
Yet, the Application Manager's log doesn't show any error at all

the catalogue entry is added to the sources file
"/etc/apt/sources.list.d/hildon-application-manager.list" as follows:
deb http://<local-ip>/repo <http://%3clocal-ip%3e/repo> fremantle free

I tried to download the application from the Xterminal application -
using the gainroot program:
apt-get install hello
And surprisingly, the application manages to download and install !!!!!
the question is : What is wrong with the way i deployed the application
that the Application Manager refuses to install it, yet it is downloaded
from the command line ? Am i missing something?

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius at pov

Oct 22, 2009, 5:41 AM

Post #2 of 11 (1120 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

On Thu, Oct 22, 2009 at 02:04:38PM +0200, ibrahim wrote:
> Package: hello
...
> Section: base
...
> but the Application manager says that it couldn't download the
> application : "unable to download 'hello'. Application package not found".

The Application Manager lets the user install only those packages that
are in sections starting with "user/". It installs packages from other
sections only as dependencies for user/* packages.

The list of supported sections is in the wiki:
http://wiki.maemo.org/Maemo_packaging#Sections

HTH,
Marius Gedminas
--
Linux became only possible because 20 years of OS research was carefully
studied, analyzed, discussed and thrown away.
-- Ingo Molnar
Attachments: signature.asc (0.18 KB)


anidel at gmail

Oct 22, 2009, 5:46 AM

Post #3 of 11 (1118 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

2009/10/22 Marius Gedminas <marius [at] pov>:
> On Thu, Oct 22, 2009 at 02:04:38PM +0200, ibrahim wrote:
>>     Package: hello
> ...
>>     Section: base
> ...
>>  but the Application manager says that it couldn't download the
>> application : "unable to download 'hello'. Application package not found".
>
> The Application Manager lets the user install only those packages that
> are in sections starting with "user/".  It installs packages from other
> sections only as dependencies for user/* packages.
>
> The list of supported sections is in the wiki:
> http://wiki.maemo.org/Maemo_packaging#Sections
>
> HTH,
> Marius Gedminas

I thought of the very same reason.
But then the error should be different than "unable to download" or
"package not found".

It should actually not even start the installation process and simply
state "Uninstallable"
like when a dependency is missing.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


daniel.wilms at nokia

Oct 22, 2009, 6:36 AM

Post #4 of 11 (1116 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

Hi,

Marius is right, it is because of the wrong section. If you enable the
red-pill mode [1] and select in the settings "show all packages" then it
should work. Packages, which are not in the user section, are assumed as
system packages and are only installed by the AM if they are
dependencies of "user"-packages. This is the reason for the error
message you saw. So change the section, or follow the steps described
above and it should work.

[1]
http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK/Using_Application_Manager


Cheers Daniel

ext Aniello Del Sorbo wrote:
> 2009/10/22 Marius Gedminas <marius [at] pov>:
>
>> On Thu, Oct 22, 2009 at 02:04:38PM +0200, ibrahim wrote:
>>
>>> Package: hello
>>>
>> ...
>>
>>> Section: base
>>>
>> ...
>>
>>> but the Application manager says that it couldn't download the
>>> application : "unable to download 'hello'. Application package not found".
>>>
>> The Application Manager lets the user install only those packages that
>> are in sections starting with "user/". It installs packages from other
>> sections only as dependencies for user/* packages.
>>
>> The list of supported sections is in the wiki:
>> http://wiki.maemo.org/Maemo_packaging#Sections
>>
>> HTH,
>> Marius Gedminas
>>
>
> I thought of the very same reason.
> But then the error should be different than "unable to download" or
> "package not found".
>
> It should actually not even start the installation process and simply
> state "Uninstallable"
> like when a dependency is missing.
>
> --
> anidel
> Sent from London, Eng, United Kingdom
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


ibrahim.ali at asgatech

Oct 25, 2009, 3:37 AM

Post #5 of 11 (1083 views)
Permalink
can't install application to phone from local repository [In reply to]

Attachments: message-rfc822.eml (2.60 KB)


andrea at borgia

Oct 25, 2009, 4:30 AM

Post #6 of 11 (1082 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

ibrahim ha scritto:

> the catalogue entry is added to the sources file
> "/etc/apt/sources.list.d/hildon-application-manager.list" as follows:

This file is autogenerated by the Application Manager, whose configs are
stored in an xml file created by the GUI.

It is quite possible your addition directly to the "generated" source
file is being ignored.

If your goal is to have the AM "see" your package, I suggest that you
add your repo from the GUI.

A.

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius at pov

Oct 25, 2009, 4:51 AM

Post #7 of 11 (1083 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

On Sun, Oct 25, 2009 at 12:37:21PM +0200, ibrahim wrote:
> I created a local repository to host some test applications for Maemo
> fremantle device - and YES, the repository folders are visible to the
> phone- Added some packages and ran the "dpkg-scanpackages" utility to
> generate the "Package " and "Package.gz" files with no errors.
>
> _the contents of the Package file :_
>
> Package: hello
> Section: base
...
> opening the install file on the device with the Application Manager adds
> the catalogue to the catalogues list, the installation procedure starts
> saying:"preparing for the installation, please wait"
> but the Application manager says that it couldn't download the
> application : "unable to download 'hello'. Application package not
> found".

Where have I seen this question before?

The Application Manager doesn't let the user install packages from
Section: base. It doesn't let the user install packages from sections
not starting with "user/".

> I tried to download the application from the Xterminal application -
> using the gainroot program:
> apt-get install hello
> And surprisingly, the application manages to download and install !!!!!
> the question is : What is wrong with the way i deployed the application
> that the Application Manager refuses to install it, yet it is downloaded
> from the command line ? Am i missing something?

Command-line tools such apt or dpkg do not enforce the "user/" section
restriction.

Marius Gedminas
--
Doing linear scans over an associative array is like trying to club someone to
death with a loaded Uzi.
-- Larry Wall
Attachments: signature.asc (0.18 KB)


kees.jongenburger at gmail

Oct 25, 2009, 6:29 AM

Post #8 of 11 (1079 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

Hi ibrahim,

On Sun, Oct 25, 2009 at 11:37 AM, ibrahim <ibrahim.ali [at] asgatech> wrote:
>
>
> cheers;
>
> I created a local repository to host some test applications for Maemo
> fremantle device - and YES, the repository folders are visible to the phone-
> Added some packages and ran the "dpkg-scanpackages" utility to generate the
> "Package " and "Package.gz" files with no errors.

Check your webserver's error logs. perhaps you only think you did the
right thing and you might see http 404 messages(file not found)

>
> _the contents of the Package file :_
>
>   Section: base
>   Priority: optional
>   Description: Hello World When you need some sunshine, just run this
> small program!

Do check if all those files are still in the Pacakges. the
dpkg-scanpackages will remove fields it doesn't know be default(the
Section and icons for example).

>
>
> the directory structure of my local repository is :
> /var/www/repo/dists/fremantle/free/binary-armel/
> so, the url to the package files is :
> http://<local-ip>/repo/dists/fremantle/free/binary-armel/
> <http://%3clocal-ip%3e/repo/dists/fremantle/free/binary-armel/>


you might want to look a what extra's devel's structure looks like

#source.list
#extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free

but on on the website
http://repository.maemo.org/extras-devel/dists/fremantle/free/

notice the "dists" and the location where the Packages file ends up
http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages

The thing also is that your package has arch set to "all". but start
looking at your servers logs.

Greetings
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


ibrahim.ali at asgatech

Jan 6, 2010, 5:05 AM

Post #9 of 11 (867 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

Kees Jongenburger wrote:
> Hi ibrahim,
>
> On Sun, Oct 25, 2009 at 11:37 AM, ibrahim <ibrahim.ali [at] asgatech> wrote:
>
>> cheers;
>>
>> I created a local repository to host some test applications for Maemo
>> fremantle device - and YES, the repository folders are visible to the phone-
>> Added some packages and ran the "dpkg-scanpackages" utility to generate the
>> "Package " and "Package.gz" files with no errors.
>>
>
> Check your webserver's error logs. perhaps you only think you did the
> right thing and you might see http 404 messages(file not found)
>
the following is logged to the server's log "access.log" file just after
I click on the .install file :
// installing from the .install file
::ffff:192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:12 +0200] "GET
/repo/dists/fremantle/Release.gpg HTTP/1.1" 404 345 "-" "Debian
APT-HTTP/1.3 (0.7.20.2maemo8)"
::ffff:192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:12 +0200] "GET
/repo/dists/fremantle/Release HTTP/1.1" 404 345 "-" "Debian APT-HTTP/1.3
(0.7.20.2maemo8)"
::ffff:192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:13 +0200] "GET
/repo/dists/fremantle/free/binary-armel/Packages.gz HTTP/1.1" 200 236
"-" "Debian APT-HTTP/1.3 (0.7.20.2maemo8)"
it fails to get Release.gpg and Release, as they don't exist - i didn't
generate them - , BUT it succeeds to get the package description file
'Packages.gz' , the one i already generated with the scanpackages command.
Nothing more, the phone's App manager didn't even try to access the
actual package ".deb" from the server - although the App Manager tells
me Application Package not found , it didn't even try to look for it on
the server with any given path so the server returns 404 code
>
>> _the contents of the Package file :_
>>
>> Section: base
>> Priority: optional
>> Description: Hello World When you need some sunshine, just run this
>> small program!
>>
>
> Do check if all those files are still in the Pacakges. the
> dpkg-scanpackages will remove fields it doesn't know be default(the
> Section and icons for example).
>
I doubt that, looking at Maemo extra repository's 'Packages' file
showed me that things like Section and icons dont exist.

>
>> the directory structure of my local repository is :
>> /var/www/repo/dists/fremantle/free/binary-armel/
>> so, the url to the package files is :
>> http://<local-ip>/repo/dists/fremantle/free/binary-armel/
>> <http://%3clocal-ip%3e/repo/dists/fremantle/free/binary-armel/>
>>
>
>
> you might want to look a what extra's devel's structure looks like
>
> #source.list
> #extras-devel
> deb http://repository.maemo.org/extras-devel/ fremantle free non-free
> deb-src http://repository.maemo.org/extras-devel/ fremantle free
>
> but on on the website
> http://repository.maemo.org/extras-devel/dists/fremantle/free/
>
> notice the "dists" and the location where the Packages file ends up
> http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages
>
> The thing also is that your package has arch set to "all". but start
> looking at your servers logs.
>
> Greetings
>
>
I did exactly the same as Maemo extras repository did on my local
reposidtor , the same folder structure

/dists/fremantle/free/binary-armel/

and even i moved my package files to the pool/ directory as extra repo
did, BUT no use!
any help is highly appreciated!
thanx again for your response


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


jeremiah at jeremiahfoster

Jan 6, 2010, 5:24 AM

Post #10 of 11 (866 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

On Jan 6, 2010, at 14:05, ibrahim wrote:

> Kees Jongenburger wrote:
>> Hi ibrahim,
>>
>> On Sun, Oct 25, 2009 at 11:37 AM, ibrahim <ibrahim.ali [at] asgatech> wrote:
>>
>> you might want to look a what extra's devel's structure looks like
>>
>> #source.list
>> #extras-devel
>> deb http://repository.maemo.org/extras-devel/ fremantle free non-free
>> deb-src http://repository.maemo.org/extras-devel/ fremantle free
>>
>> but on on the website
>> http://repository.maemo.org/extras-devel/dists/fremantle/free/
>>
>> notice the "dists" and the location where the Packages file ends up
>> http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages
>>
>> The thing also is that your package has arch set to "all". but start
>> looking at your servers logs.
>>
>> Greetings
>>
>>
> I did exactly the same as Maemo extras repository did on my local reposidtor , the same folder structure
>
> /dists/fremantle/free/binary-armel/

Turns out that is not "exactly the same." Try /extras-devel/ as a replacement for your "dists"

If you are setting up a test repo, or even a local mirror of one of the repos, I highly recommend using reprepro. I have written about it here: http://wiki.maemo.org/Reprepro.

Jeremiah
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


ibrahim.ali at asgatech

Jan 6, 2010, 7:10 AM

Post #11 of 11 (867 views)
Permalink
Re: can't install application to phone from local repository [In reply to]

Jeremiah Foster wrote:
> On Jan 6, 2010, at 14:05, ibrahim wrote:
>
>
>> Kees Jongenburger wrote:
>>
>>> Hi ibrahim,
>>>
>>> On Sun, Oct 25, 2009 at 11:37 AM, ibrahim <ibrahim.ali [at] asgatech> wrote:
>>>
>>> you might want to look a what extra's devel's structure looks like
>>>
>>> #source.list
>>> #extras-devel
>>> deb http://repository.maemo.org/extras-devel/ fremantle free non-free
>>> deb-src http://repository.maemo.org/extras-devel/ fremantle free
>>>
>>> but on on the website
>>> http://repository.maemo.org/extras-devel/dists/fremantle/free/
>>>
>>> notice the "dists" and the location where the Packages file ends up
>>> http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages
>>>
>>> The thing also is that your package has arch set to "all". but start
>>> looking at your servers logs.
>>>
>>> Greetings
>>>
>>>
>>>
>> I did exactly the same as Maemo extras repository did on my local reposidtor , the same folder structure
>>
>> /dists/fremantle/free/binary-armel/
>>
>
> Turns out that is not "exactly the same." Try /extras-devel/ as a replacement for your "dists" .
>
i'am afraid i didn't understand what you just said !!
do you mean I replace the "dists" folder with "extras-devel" so my
repository becomes like this:
/var/www/repo/extras-devel/free/binary-armel/ ??
if you mean that, it didn't work , and the server's access.log file
reports failure to get Packages.gz file (which used to be successful before)
::ffff:192.168.0.99 192.168.0.228 - [06/Jan/2010:17:02:41 +0200] "GET
/repo/dists/fremantle/free/binary-armel/Packages.gz HTTP/1.1" 404 345
"-" "Debian APT-HTTP/1.3 (0.7.20.2maemo8)"
::ffff:192.168.0.99 192.168.0.228 - [06/Jan/2010:17:03:05 +0200] "GET
/repo/dists/fremantle/free/binary-armel/Packages HTTP/1.1" 404 345 "-"
"Debian APT-HTTP/1.3 (0.7.20.2maemo8)"

thanx again

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.