My work record everyday
bluetooth@rafavi:/mnt/d/ubuntu_env/ContentAutomationHub$ source Scripts/activate
: command not found
-bash: Scripts/activate: line 4: syntax error near unexpected token `$'{\r''
'bash: Scripts/activate: line 4: `deactivate () {
用户从WSL切换到Windows本地环境了,现在在PowerShell里尝试使用sudo命令,但Windows的PowerShell默认不支持sudo,所以出现了禁用提示。用户明显在环境选择上遇到了障碍,需要引导他在正确的环境下操作。
Read more … 已在此计算机上禁用 Sudo。若要启用它,请转到 Developer Settings page“设置”
bluetooth@rafavi:/mnt/c/Windows/system32$ sudo systemctl start redis && sudo systemctl enable redis Failed to enable unit: Refusing to operate on alias name or linked unit file: redis.service bluetooth@rafavi:/mnt/c/Windows/system32$ systemctl start redis Failed to start redis.service: Interactive authentication required. See system logs and 'systemctl status redis.service' for details.
Page 7 of 10