告诉他们不要安装非自由软件。如果这不起作用,请尝试:
创建用户组powerusers,该组的用户只能安装特定类型的软件。
# addgroup powerusers
Run Code Online (Sandbox Code Playgroud)编辑/etc/sudoers,仅授予powerusers权限sudo apt-get:
%powerusers ALL = (ALL) /usr/bin/apt-get
Run Code Online (Sandbox Code Playgroud)
现在,组内的用户powerusers只能使用 sudo apt-get ...,但不能sudo dpkg -i <downloaded.deb>编辑文件/etc/apt/sources.list。只有您可以确定要包含哪些来源。
从文件中删除non-free, restricted,multiverse源sources.list。
完毕!
由于计算机的智商水平为零,因此它无法检测其上运行的软件是否是自由软件。您唯一能做的一件事就是建议用户仅使用免费软件。:-)