[debian] Installing *.ipk/*.opk part 1: Dependencies

Rask Ingemann Lambertsen rask at sygehus.dk
Thu Mar 12 21:48:57 CET 2009

On Wed, Mar 11, 2009 at 08:00:51PM +0100, Davide Scaini wrote:
> Nice it would be grat in future if we (debian users) could just add opkg
> repos as deb ones...  maybe with different priority... it may be difficult
> and risky, but indeed useful!
> d

   Once the Packages.gz on opkg.org is fixed, this ought to do the trick:

# echo 'deb http://www.opkg.org/packages/ /' >/etc/apt/sources.list.d/opkg.org.list

   Currently, the procedure is a bit more involved:

1. Update the package list.

# apt-get update

2. Delete empty dependency lists.
3. Delete junk between package sections.

# sed -i -n -e '/^Depends: *$/ n' -e '/^Package: /,/^$/ p' /var/lib/apt/lists/www.opkg.org_packages_Packages

4. Fix missing commas in dependency lists.

# sed -i -e '/^Depends: / s/\([[:alnum:]]\) \([[:alnum:]]\)/\1, \2/g' /var/lib/apt/lists/www.opkg.org_packages_Packages

5. Change the architecture to armel.

# sed -i -e 's/^Architecture: arm.*/Architecture: armel/' /var/lib/apt/lists/www.opkg.org_packages_Packages

   However, apt-get seems to dislike the www.opkg.org server:

# apt-get -o 'DPkg::Options={"--force-architecture";}' install gwaterpas
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
The following NEW packages will be installed:
  gwaterpas libfltk
0 upgraded, 2 newly installed, 0 to remove and 210 not upgraded.
Need to get 570B of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? 
WARNING: The following packages cannot be authenticated!
  libfltk gwaterpas
Install these packages without verification [y/N]? y
Get:1 http://nospamnospam.homepage.dk  libfltk 1.1.9-6 [570B]
Get:2 http://www.opkg.org  gwaterpas 0.2 [8620B]     
Fetched 9190B in 0s (15.4kB/s)  
Failed to fetch http://www.opkg.org/packages/gwaterpas_0.2_armv4t.ipk  Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

More information about the community mailing list