Page 1 of 1

Linux distro incompatibility with Azure C SDK

Posted: 05 Jul 2020, 02:11
by jeffkinder
Recently we encountered a problem on some new hardware that seems to ship with a new Linux OS that does not have support for a package required by the C SDK for Azure. Here are the details:

The package that I can't install and that is required by the IoT Hub C SDK is called uuid-dev.
The usual command
sudo apt-get install uuid-dev
returns
Package uuid-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'uuid-dev' has no installation candidate
I have tried various system upgrades and updates but without success.

The command cat /proc/version outputs
Linux version 4.19.95-rt38-v7+ (admin@kunbus.de) (gcc version 8.3.0 (Debian 8.3.0-2)) #1 SMP PREEMPT RT Tue, 16 Jun 2020 13:25:43 +0200

This worked on an older version with:
Linux version 4.9.76-rt60-v7+ (admin@kunbus.de) (gcc version 8.2.0 (Debian 8.2.0-11) ) #1 SMP PREEMPT RT Tue, 12 Mar 2019 15:19:36 +0100

Does anyone know of an easy workaround?

Re: Linux distro incompatibility with Azure C SDK

Posted: 06 Jul 2020, 09:38
by lukas
That's odd, it works for me:

Code: Select all

$ sudo apt-get update
[...]
$ sudo apt-get install uuid-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  uuid-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 83.2 kB of archives.
After this operation, 138 kB of additional disk space will be used.
Get:1 http://mirror.chaoticum.net/rpi/raspbian stretch/main armhf uuid-dev armhf 2.29.2-1+deb9u1 [83.2 kB]
Fetched 83.2 kB in 0s (244 kB/s)    
Selecting previously unselected package uuid-dev:armhf.
(Reading database ... 87984 files and directories currently installed.)
Preparing to unpack .../uuid-dev_2.29.2-1+deb9u1_armhf.deb ...
Unpacking uuid-dev:armhf (2.29.2-1+deb9u1) ...
Setting up uuid-dev:armhf (2.29.2-1+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Did you run "apt-get update" before invoking "apt-get install uuid-dev"? Have you modified /etc/apt/sources.list*?

Re: Linux distro incompatibility with Azure C SDK

Posted: 06 Jul 2020, 20:57
by jeffkinder
It is odd. It actually worked yesterday. I think that something must have been updated in the background.

Re: Linux distro incompatibility with Azure C SDK

Posted: 07 Jul 2020, 11:07
by lukas
Hm, the package must have been temporarily missing in the "Packages" list of the Raspbian repository. I recall seeing similar one-off hickups with their repo in the past.