openthread / ot-br-posix

OpenThread Border Router, a Thread border router for POSIX-based platforms.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
421 stars 235 forks source link

Bootstrap error: 'dhcpcd' has no installation candidate #2610

Closed Marttico closed 5 days ago

Marttico commented 6 days ago

Describe the bug A clear and concise description of what the bug is. Whenever I try to run the bootstrap script, I end up getting an error that shows that dhcpcd has no installation candidate.

The last command to be executed by the bootstrap script returns the following:

+ sudo apt-get install --no-install-recommends -y dhcpcd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package dhcpcd 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
However the following packages replace it:
  dhcpcd5 dhcpcd5:armhf

E: Package 'dhcpcd' has no installation candidate

To Reproduce Information to reproduce the behavior, including:

  1. Git commit id b4cfa2ffa25605efca096da4b6a984d353e3900e

  2. IEEE 802.15.4 hardware platform Raspberry Pi 4? (I'm not sure if this is what is meant here) I'm using Raspberry Pi OS (Legacy, 64-bit) lite

  3. Build steps

I've followed this guide to set up a border router. https://openthread.io/guides/border-router/build

I've issued the following commands. git clone https://github.com/openthread/ot-br-posix cd ot-br-posix ./script/bootstrap

  1. Network topology No network just yet.

Expected behavior A clear and concise description of what you expected to happen. I expected the bootstrap script to resume past sudo apt-get install --no-install-recommends -y dhcpcd

Console/log output If applicable, add console/log output to help explain your problem. Here's the output of the bootstrap script:

+ sudo apt-get install --no-install-recommends -y dhcpcd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package dhcpcd 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
However the following packages replace it:
  dhcpcd5 dhcpcd5:armhf

E: Package 'dhcpcd' has no installation candidate

Full log: https://pastebin.com/ErFbZC0s

Additional context Add any other context about the problem here. I've been able to use this guide to install an openthread border router about half a year ago. Not too sure what changed. I've tried changing dhcpcd in the bootstrap script to dhcpcd5, but this ended up causing other problems during the setup process, which may be related. So I'm wondering whether I'm doing something wrong or if something is broken. Thanks in advance!

yangsong-cnyn commented 6 days ago

Hi @Marttico, the issue is because I changed the default Raspi config incorrectly to include what should only be enabled in reference device. I will let you know once fix is merged.