Ubuntu 20.04 prod list does not include aziot-edge

SB 56 Reputation points
2022-01-20T08:36:42.54+00:00

Trying to setup aziot-edge on a Ubuntu 20.04 VM with this:

*curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > microsoft-prod.list
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
sudo apt-get update
sudo apt-get install moby-engine
sudo apt-get install aziot-edge*

Last command fails with:

*admin@ubuntu1804lts:~$ sudo apt-get install aziot-edge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package aziot-edge 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 'aziot-edge' has no installation candidate*

Ran the same with 18.04 and it installs fine but with the following errors:

*admin@ubuntu1804lts:~$ sudo iotedge system status
System services:
    aziot-edged             Ready
    aziot-identityd         Down - activating
    aziot-keyd              Running
    aziot-certd             Down - activating
    aziot-tpmd              Down - activating
aziot-identityd is in a bad state because:
aziot-identityd.service: Down - activating : Printing the last 10 log lines.
-- Logs begin at Wed 2021-06-09 21:02:20 UTC, end at Thu 2022-01-20 07:49:30 UTC. --
Jan 20 07:49:28 ubuntu1804lts systemd[1]: Started Azure IoT Identity Service.
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [INFO] - Starting service...
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [INFO] - Version - 1.2.4
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [ERR!] - could not read config
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [ERR!] - caused by: could not read config
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [ERR!] - caused by: missing field `hostname`
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]: 2022-01-20T07:49:28Z [ERR!] -    0: <unknown>
Jan 20 07:49:28 ubuntu1804lts aziot-identityd[81087]:    1: <unknown>
Jan 20 07:49:28 ubuntu1804lts systemd[1]: aziot-identityd.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 07:49:28 ubuntu1804lts systemd[1]: aziot-identityd.service: Failed with result 'exit-code'.
aziot-certd is in a bad state because:
aziot-certd.service: Down - activating : Printing the last 10 log lines.
-- Logs begin at Wed 2021-06-09 21:02:20 UTC, end at Thu 2022-01-20 07:49:30 UTC. --
Jan 20 07:49:28 ubuntu1804lts systemd[1]: Started Azure IoT Certificates Service.
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [INFO] - Starting service...
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [INFO] - Version - 1.2.4
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [ERR!] - could not read config
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [ERR!] - caused by: could not read config
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [ERR!] - caused by: missing field `homedir_path`
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]: 2022-01-20T07:49:28Z [ERR!] -    0: <unknown>
Jan 20 07:49:28 ubuntu1804lts aziot-certd[81086]:    1: <unknown>
Jan 20 07:49:28 ubuntu1804lts systemd[1]: aziot-certd.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 07:49:28 ubuntu1804lts systemd[1]: aziot-certd.service: Failed with result 'exit-code'.*

I'm assuming the errors with 18.04 are due to a version mismatch. Is this correct?
If yes, do I keep running the 18.04 version? If so, how do I resolve these errors?

If not, what is the correct prod list/package list source to install 20.04 versions for moby and iotedge?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
531 questions
0 comments No comments
{count} vote

Accepted answer
  1. António Sérgio Azevedo 7,661 Reputation points Microsoft Employee
    2022-01-20T15:07:29.837+00:00

    Hi @SB ,

    Are you following this tutorial?: Create and provision an IoT Edge device on Linux using symmetric keys

    Ran the same with 18.04 and it installs fine but with the following errors:

    If you complete that tutorial till the end, do you still see those errors when sudo iotedge system status ?

    Ubuntu 20.04 prod list does not include aziot-edge

    As mentioned in Azure IoT Edge supported systems "The Ubuntu Server 18.04 installation steps in Install or uninstall Azure IoT Edge for Linux should work without any changes on Ubuntu 20.04."

    Therefore let me further investigate this.

    Thanks!


0 additional answers

Sort by: Most helpful