Apt-get and opkg problem

Hello,

I have connected wifi with connmanctl, and it could be checked by
root@apalis-imx6:/dev# ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=120 time=24.032 ms
64 bytes from 8.8.8.8: seq=1 ttl=120 time=27.626 ms
64 bytes from 8.8.8.8: seq=2 ttl=120 time=30.679 ms
64 bytes from 8.8.8.8: seq=3 ttl=120 time=22.295 ms

Since I am trying to open *.png picture file, I tried two different ways,

  1. install imagemagick (png open files)

    root@apalis-imx6:/dev# opkg install imagemagick imagemagick-png imagemagick-tiff imagemagick-tools
    Collected errors:

    • opkg_prepare_url_for_install: Couldn’t find anything to satisfy ‘imagemagick’.
      root@apalis-imx6:/dev# opkg install imagemagick-png
      Collected errors:
    • opkg_prepare_url_for_install: Couldn’t find anything to satisfy ‘imagemagick-png’.

I was able to do opkg update, but I don’t know why it can’t find programs such as imagemagick or fbi.

  1. I was able to install apt-get program with yocto project (with package_deb option), but

    root@apalis-imx6:/dev# apt-get update
    Reading package lists… Done
    root@apalis-imx6:/dev# apt-get upgrade
    Reading package lists… Done
    Building dependency tree… Done
    Calculating upgrade… Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Previously since I have got below errors,

root@apalis-imx6:~# apt-get update
Reading package lists... Error!
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.

I have conducted ‘touch /var/lib/dpkg/status’ to solve that problem, but still get

root@apalis-imx6:/var/backups# apt-get update
Reading package lists... Done
root@apalis-imx6:/var/backups# cd /
root@apalis-imx6:/# apt-get update
Reading package lists... Done
root@apalis-imx6:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@apalis-imx6:/# apt-get install fbi
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package fbi

Could anyone can tell me how to install fbi or imagemagick program? I even can’t figure out what the problem behind this is.

Thanks!!

Hi @hkhunkim

First of all, apt-get is an Utility for Ubuntu and cannot be used on regular Bsps, where we use the Angstrom Distribution. For using apt-get, you need to install Ubuntu on the module. This can be achieved by following this post. However Ubuntu is not officially supported on Toradex Modules.

Regarding the tool imagemagick, this is not included in our regular Bsp image and also not available as feeds. You need to compile it yourself using OpenEmbeddedBuild and by the following command after you have setup the OpenEmbeddedBuild:
bitbake imagemagick.

Once the compilation is successful, you will get .ipk file, which you can deploy to the apalis imx6 module and install it using opkg install <package_name>.

Concerning the tool fbi, you can install this by the following command: opkg install fbida.

Best regards, Jaski

I am not exactly sure why one would just assume that apt-get (or whatever other Linux package management system for that matter) just magically works with any Embedded Linux system.

Anyway, as you may or may not be aware, our BSPs are based on the Angstrom-Distribution, OpenEmbedded and/or the Yocto Project and what you describe is definitely not a use case thereof. A limited amount of packages are available in Angstrom’s binary feeds and may be installed using opkg as described here. Anything else requires customizing your image as outlined there.