问题
ubuntu18.04下nvidia-settings无法保存设置
解决方法
打开终端执行
nvidia-settings
点击 Save to X Configuration File 提示 Unable to open X config file ‘/etc/X11/xorg.conf’ for writing
看终端输出
Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
Error accessing /usr/share/screen-resolution-extra/nvidia-polkit: No such file or directory
ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.
发现没有 /usr/sh