![如何在命令行中使用 ubuntu-drivers-common 或 software-properties 来更改图形驱动程序?](https://linux22.com/image/852568/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E4%BD%BF%E7%94%A8%20ubuntu-drivers-common%20%E6%88%96%20software-properties%20%E6%9D%A5%E6%9B%B4%E6%94%B9%E5%9B%BE%E5%BD%A2%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%EF%BC%9F.png)
Martin Pitt 在 Ubuntu 14.04 中删除了 jockey-text (显然它在 13.10 中也出现了问题)但是当 X 无法工作时,我使用它在命令行中更改图形驱动程序。我现在该怎么做(他在标题中提到了这两个包)?
答案1
使用ubuntu-drivers
,可用的命令如下所述:
usage: ubuntu-drivers [-h] [--package-list PATH] <command>
List/install driver packages for Ubuntu.
positional arguments:
<command> See below
optional arguments:
-h, --help show this help message and exit
--package-list PATH Create file with list of installed packages (in
autoinstall mode)
Available commands:
debug: Print all available information and debug data about drivers.
autoinstall: Install drivers that are appropriate for automatic installation.
devices: Show all devices which need drivers, and which packages apply to them.
list: Show all driver packages which apply to the current system.
因此,您可以使用 获取包名称列表sudo ubuntu-drivers devices
,然后使用 安装相应的包apt-get
。
安装完要使用的那个后,你必须删除你不想使用的那个。这将强制 Ubuntu 使用你安装的那个(感谢@广告20000)