Linux distro incompatibility with Azure C SDK

Topics about the Software of Revolution Pi
Post Reply
jeffkinder
Posts: 8
Joined: 05 Mar 2020, 17:54
Answers: 0

Linux distro incompatibility with Azure C SDK

Post 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?
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29
Answers: 0

Re: Linux distro incompatibility with Azure C SDK

Post 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*?
jeffkinder
Posts: 8
Joined: 05 Mar 2020, 17:54
Answers: 0

Re: Linux distro incompatibility with Azure C SDK

Post by jeffkinder »

It is odd. It actually worked yesterday. I think that something must have been updated in the background.
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29
Answers: 0

Re: Linux distro incompatibility with Azure C SDK

Post 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.
Post Reply