When trying to install the Watson IoT edge platform on an x86(64 bit) PC running Ubuntu, I get the following error:
$ sudo apt-get install horizon-wiotp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
horizon-wiotp : Depends: horizon (= 2.17.2~ppa~ubuntu.xenial) but 2.20.5~ppa~ubuntu.xenial is to be installed
E: Unable to correct problems, you have held broken packages.
I noticed a similar problem reported for Raspbian, but the prescribed solution didn't work on x86. I'd once forced it to work by hacking up the installation procedure, but I don't remember exactly how.
What is the correct way to install the IoT Edge Platform? Is there a plan these dependency issues? This has been broken for months now.
Thanks, --Dave
Answer by Leandro Cordeiro David (227) | Feb 08 at 12:25 PM
Probably similar to this question: https://developer.ibm.com/answers/questions/481558/watson-iot-edge-installation-issue-on-raspberry-pi/
Can you try this (for raspberry)
apt-get install horizon-cli=2.17.14~ppa~raspbian.jessie
apt-get install horizon=2.17.14~ppa~raspbian.jessie
apt-get install horizon-wiotp
Or change raspbian.jessie for ubuntu.xenial for ubuntu installation
Hi Leandro,
That question was the one I was referring to when I said "I noticed a similar problem reported for Raspbian". As I stated, though, just translating that workaround into ubuntu.xenial doesn't work:
bws@ubuntu-amd-squiddy:~$ sudo apt-get install horizon-cli=2.17.14~ppa~ubuntu.xenial
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.17.14~ppa~ubuntu.xenial' for 'horizon-cli' was not found
Isn't it possible for you to to just fix this on the apt server side (maybe by just reverting the packages to whatever they were when they last worked)? The way things are now, it's impossible to install and it's been that way for several months now.
--Dave
I eventually found something that works (although I'm not sure it's the best solution). I had to download all of the *.deb files for the "lowest common version" of all of the packages, which turns out to be 2.17.9 for the _amd64 architecture:
sudo dpkg -i horizon-cli_2.17.9~ppa~ubuntu.xenial_amd64.deb
sudo dpkg -i horizon_2.17.9~ppa~ubuntu.xenial_amd64.deb
sudo dpkg -i bluehorizon_2.17.9~ppa~ubuntu.xenial_all.deb
sudo dpkg --force-all -i horizon-wiotp_2.17.9~ppa~ubuntu.xenial_all.deb
--Dave
How to configure or enable a Cloud Foundry app to be available as an Edge Service? 1 Answer
Watson IoT edge installation issue on raspberry pi 3 4 Answers
How to actually use Watson IoT Platform Edge once it's installed? 0 Answers
HTTP 503 error when running wiotp_agent_setup 1 Answer
Error when running wiotp_agent_setup 0 Answers