wicd comes with scripts to bring the connection up or down /usr/share/wicd/scripts/50-wicd-suspend.sh /usr/share/wicd/scripts/80-wicd-connect.sh these scripts use /usr/share/wicd/daemon/suspend.py /usr/share/wicd/daemon/autoconnect.py which have the first line #!/usr/bin/env python If `env pyton` is python3 this scripts fail. One solution is to add exec /usr/bin/python2 -O to the scripts in /usr/share/wicd/scripts
I don't know why distutils-r1 does not contain a function to fix shebangs... that's why I solved this with sed call. In the end the scripts /usr/share/wicd/daemon/suspend.py /usr/share/wicd/daemon/autoconnect.py /usr/share/wicd/daemon/monitor.py call python2 directly now. Please test and reopen if you still have problem.s