「ubuntu-drivers-common」- 检测和安装额外的 Ubuntu 驱动包

认识

官网:https://github.com/canonical/ubuntu-drivers-common
文档:https://github.com/canonical/ubuntu-drivers-common/blob/master/README.md
仓库:https://github.com/canonical/ubuntu-drivers-common

ubuntu-drivers-common —— Detect and install additional Ubuntu driver packages … 简而言之,该工具可用来简化 Ubuntu 的安装驱动程序。

组成

# apt-file list ubuntu-drivers-common # 2025-10-20 # Ubuntu 25.04

/lib/systemd/system/gpu-manager.service
/lib/udev/rules.d/71-u-d-c-gpu-detection.rules

/sbin/u-d-c-print-pci-ids

/usr/bin/gpu-manager
/usr/bin/nvidia-detector
/usr/bin/quirks-handler
/usr/bin/ubuntu-drivers

/usr/lib/nvidia/alternate-install-available

/usr/lib/python3/dist-packages/NvidiaDetector/init.py
/usr/lib/python3/dist-packages/NvidiaDetector/alternatives.py
/usr/lib/python3/dist-packages/NvidiaDetector/nvidiadetector.py
/usr/lib/python3/dist-packages/Quirks/init.py
/usr/lib/python3/dist-packages/Quirks/quirkapplier.py
/usr/lib/python3/dist-packages/Quirks/quirkinfo.py
/usr/lib/python3/dist-packages/Quirks/quirkreader.py
/usr/lib/python3/dist-packages/UbuntuDrivers/init.py
/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py
/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py
/usr/lib/python3/dist-packages/ubuntu_drivers_common-0.0.0.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/ubuntu_drivers_common-0.0.0.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/ubuntu_drivers_common-0.0.0.egg-info/top_level.txt
/usr/lib/ubiquity/target-config/31ubuntu_driver_packages

/usr/share/apport/package-hooks/ubuntu-drivers-common.py
/usr/share/doc/ubuntu-drivers-common/README
/usr/share/doc/ubuntu-drivers-common/changelog.gz
/usr/share/doc/ubuntu-drivers-common/copyright
/usr/share/python3/runtime.d/ubuntu-drivers-common.rtupdate
/usr/share/ubuntu-drivers-common/detect/arm-gles.py
/usr/share/ubuntu-drivers-common/detect/sl-modem.py
/usr/share/ubuntu-drivers-common/fake-devices-wrapper
/usr/share/ubuntu-drivers-common/obsolete
/usr/share/ubuntu-drivers-common/quirks/dell_latitude
/usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
/usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here

性质

This package aggregates and abstracts Ubuntu specific logic and knowledge about third-party driver packages.

It provides:

  • a Python API for detecting driver packages for a particular piece of hardware or the whole system.
  • an “ubuntu-drivers” command line tool to list or install driver packages (mostly for integration in installers).
  • some NVidia specific support code to find the most appropriate driver version, as well as setting up the alternatives symlinks that the proprietary NVidia and FGLRX packages use.