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?
Thanks for confirming you are unblocked and how you achieved it :). Very helpful to the community. Please verify it as answer as well - feel free to convert your comment to answer if preferrable! Regarding the 20.04 version error, you don't want to continue it's troubleshooting?
Thanks!
I'd continue with Ubuntu 18.04 since 20.04 isn't supported yet. Would be nice to work with the latest but well..