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

Mailing List Archive: Maemo: Users

apt-get vs. hildon-application-manager in Diablo

 

 

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


advax at triumf

Jul 20, 2008, 1:02 PM

Post #1 of 2 (372 views)
Permalink
apt-get vs. hildon-application-manager in Diablo

In Chinook, I gave up using the hildon-application-manager GUI and
started using apt-get from the command line via ssh; it seemed easier.
I also added some packages directly with dpkg and wget/scp

Now with Diablo there is a scheduled update that keeps flashing at me if
everything is not up-to-date. I just figured out (I think) what is going
on, and still have to sort out my catalogues properly.

hildon-application-manager reads a catalogue list out of
/etc/hildon-application-manager/catalogues (an XML file), and
creates /etc/apt/sources.list.d/hildon-application-manager.list each
time.
"hildon-application-manager-config dump" dumps out the XML
"hildon-application-manager-config set" blows it away (duh)
"hildon-application-manager-config set xx.xml" resets it to the contents
of xx.xml

apt-get reads /etc/apt/sources.list.d/*
If you add more lists, or edit hildon-application-manager.list (as I
did) you will have a sync problem and perhaps duplicate entries.

E.g. yesterday hildon-application-manager wanted to upgrade
rsync 2.6.9-2 to 2.6.9-2
maemo-recorder 0.2.0 to 0.2.0
maemo-mapper 2.4.1-os2008 to 2.4.1-os2006-os2007
while apt-get -s -V upgrade said
The following packages have been kept back:
maemo-mapper (2.4.1-os2008 => 2.4.1-os2006-os2007)
maemo-recorder (0.2.0 => 0.2.0)
The following packages will be upgraded:
less (394-4osso1 => 394-4osso2)
rsync (2.6.9-2 => 2.6.9-2)

I'm a bit confused why it would want to upgrade rsync to the same
version, and why it would want to downgrade maemo-mapper. Perhaps
something to do with my having had a Bora repository in the catalogue -
the newer Nokia repositories have a sort-weight entry which the older and
3rd-party ones don't, which may affect which repositories are searched
for updates first. maemo-mapper 2.4.1-os2008 is from Chinook while
2.4.1-os2006-os2007 is from Bora.

Right now I managed to blow away my XML catalogue completely and but
saved most of it by copying the dump from my xterm window. But I'm
missing some off the end, such as the <notifier> entry and perhaps some
of the keys.
- does anyone know where I can download a clean copy from
(without flashing!) or can send me a copy ?


--
Andrew Daviel, TRIUMF, Canada
_______________________________________________
maemo-users mailing list
maemo-users[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


marius.vollmer at nokia

Aug 19, 2008, 5:17 AM

Post #2 of 2 (236 views)
Permalink
Re: apt-get vs. hildon-application-manager in Diablo [In reply to]

"ext Andrew Daviel" <advax[at]triumf.ca> writes:

> Now with Diablo there is a scheduled update that keeps flashing at me if
> everything is not up-to-date.

If you don't want the blinking icon, you can disable the plugin
via "Control panel > Panels > Status bar > Software update notifier".

> hildon-application-manager reads a catalogue list out of
> /etc/hildon-application-manager/catalogues (an XML file), and
> creates /etc/apt/sources.list.d/hildon-application-manager.list each
> time.
> "hildon-application-manager-config dump" dumps out the XML
> "hildon-application-manager-config set" blows it away (duh)
> "hildon-application-manager-config set xx.xml" resets it to the contents
> of xx.xml

Correct. There is also "h-a-m-config add" and "delete" in addition to
"set". ("Set" without arguments is a bit brutal, agreed. I changed it
to fail when given no arguments.)

> apt-get reads /etc/apt/sources.list.d/*
> If you add more lists, or edit hildon-application-manager.list (as I
> did) you will have a sync problem and perhaps duplicate entries.

Adding sources to /etc/apt/sources.list should be fine, but
/etc/apt/hildon-application-manager.list will be overwritten from time
to time.

In any case, the Application manager and apt-get will always use the
same repositories (unless there is a bug somewhere).

> I'm a bit confused why it would want to upgrade rsync to the same
> version, and why it would want to downgrade maemo-mapper.

Did you check the epochs of the versions? Also, if the versions are the
same, but the packages differ in other details (like dependencies,
maintainer, size) then apt-get (and the AM) will prefer the package in
the repository.

> Perhaps something to do with my having had a Bora repository in the
> catalogue -

Yes, messed up repositories are the most likely reason for the
strangeness you see.

> the newer Nokia repositories have a sort-weight entry which the older and
> 3rd-party ones don't, which may affect which repositories are searched
> for updates first.

No, the sort weight is only used to sort the repositories for display in
the "Catalogues" dialog of the AM. They are not used to prefer certain
repositories over others.

> Right now I managed to blow away my XML catalogue completely and but
> saved most of it by copying the dump from my xterm window. But I'm
> missing some off the end, such as the <notifier> entry and perhaps
> some of the keys. - does anyone know where I can download a clean
> copy from (without flashing!) or can send me a copy ?

You should be able to just run

# /var/lib/dpkg/info/nokia-repository.postinst

that should bring back your catalogue configuration. Or open that file
in an editor and restore the configuration manually.

Other packages of interest are the '*-domain' packages:

# dpkg -l *-domain
_______________________________________________
maemo-users mailing list
maemo-users[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.