今天一臺機器 重裝nvidia驅動報錯,在卸載環節 折騰了半天,報如下錯
nvidia-prime
E: Sub-process /usr/bin/dpkg returned an error code (1)
再網上看 在卸載nvidia-prime時 一文件無法重命名
Purging configuration files for nvidia-prime (0.8.2) ...
mv: cannot move '/etc/X11/xorg.conf' to '/etc/X11/xorg.conf.11042019': Operation not permitted
給保護文件添加標記的方式: 參考如下鏈接,去掉標記
chattr -i xorg.conf
終於都給卸載了
https://blog.csdn.net/liuweiyuxiang/article/details/83685923