我使用以下命令安装了团队查看器https://www.teamviewer.com/en/help/427-how-do-i-install-teamviewer-on-my-ubuntu-system链接。安装后,在 sudo 中运行时显示——
Init...
*** TeamViewer can not be executed with sudo! ***
Either use your normal user account without sudo
or use a the real root account to log in to your desktop (not recommended!).
并且在没有 sudo 的情况下运行时它显示--
mkdir: cannot create directory ‘.local/share/teamviewer11’: Permission denied
Error: Could not create '.local/share/teamviewer11/logfiles
mkdir: cannot create directory ‘.local/share/teamviewer11’: Permission denied
Error: Could not create '.local/share/teamviewer11/logfiles
Error: InitDirs failed. (2)
答案1
删除该目录
sudo mv ~/.local/share/teamviewer11 ~/.local/share/teamviewer11.bak
然后重试 Teamviewer没有 sudo