Closed Someguy123 closed 3 years ago
For anyone who wants to run dhcpy6d on Ubuntu 18.04 - here's the workaround for now:
git clone https://github.com/HenriWahl/dhcpy6d.git dhcpy6d
cd dhcpy6d
sudo apt install -y python3.8 python3.8-dev python3.8-venv
# Python 3.8's pip doesn't work properly on Ubuntu 18.04 unless you upgrade keyrings.alt
sudo -H python3.8 -m pip install -U keyrings.alt
# For some reason the 'distro' package isn't automatically installed by dhcpy6d, so manually install it
sudo -H python3.8 -m pip install -U distro
# Now, we can use "pip install ." to install the current folder (dhcpy6d) as a python package via setup.py
sudo -H python3.8 -m pip install .
Once it's installed, we'll need to correct the permissions on /usr/sbin/dhcpy6d
sudo chmod 755 /usr/sbin/dhcpy6d
Next you'll need to open /usr/sbin/dhcpy6d
in your preferred editor e.g. nano or vim
sudo nano /usr/sbin/dhcpy6d
Change the line
#!/usr/bin/env python3
To this:
#!/usr/bin/env python3.8
Then save and exit the file.
Hi, thanks for the hint - I will check this.
Won't it run with the default python 3.6 too?
Well, I see... the problem is that all packages in Ubuntu 18.04 are older than in Debian 10 which was used to build the packages. Maybe the easiest solution might be an ugrade to Ubuntu 20.04?
As per the title, the
.deb
package does not work on Ubuntu 18.04, and nor doesbuild.sh
in the Git repository.When attempting to install the .deb file published on the website:
When attempting to use the
build.sh
script: