现在装的win10和ubuntu18.04双系统。
之前一直,很好用,也没有发热问题。但是之前尝试过安装nvidia驱动,使用如下命令安装的:
代码: 全选
sudo ubuntu-drivers autoinstall
不知道什么原因,求各位大神指教,感激不尽呀!
代码: 全选
sudo ubuntu-drivers autoinstall
代码: 全选
$:uname -r
4.15.0-041500-generic
~$ sudo lspci -knn
[sudo] password for devin:
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5904] (rev 02)
Subsystem: Device [1d72:1604]
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
Subsystem: Device [1d72:1604]
Kernel driver in use: i915
Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: xhci_hcd
00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port [8086:9d10] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.4 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 [8086:9d14] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 [8086:9d18] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC Controller [8086:9d58] (rev 21)
Subsystem: Device [1d72:1604]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: intel_pmc_core
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
Subsystem: Device [1d72:1604]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
Subsystem: Device [1d72:1604]
Kernel modules: i2c_i801
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d12] (rev a1)
Subsystem: Device [1d72:1604]
Kernel modules: nvidiafb, nouveau
02:00.0 Network controller [0280]: Intel Corporation Wireless 8265 / 8275 [8086:24fd] (rev 78)
Subsystem: Intel Corporation Wireless 8265 / 8275 [8086:9010]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
03:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 [144d:a804]
Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 [144d:a801]
Kernel driver in use: nvme
~$ sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: Intel Corporation [8086:5916]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:128 memory:b2000000-b2ffffff memory:c0000000-cfffffff ioport:4000(size=64) memory:c0000-dffff
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1D12]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:b3000000-b3ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:3000(size=128)
~$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001D12sv00001D72sd00001604bc03sc02i00
vendor : NVIDIA Corporation
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-396 - third-party free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
~$ nvidia-settings --glxinfo | grep "OpenGL version string"
Command 'nvidia-settings' not found, but can be installed with:
sudo apt install nvidia-settings
~$ dmesg | grep -i chipset
~$ sudo cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.runpm=0"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
~$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
1920x1080 59.98*+ 59.97 59.96 59.93 48.01
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
1. 雙顯卡sudo lspci -knn
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
Subsystem: Device [1d72:1604]
Kernel driver in use: i915
Kernel modules: i915
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d12] (rev a1)
Subsystem: Device [1d72:1604]
Kernel modules: nvidiafb, nouveau
2. nVidia 顯卡 沒有合適驅動 作用中 所以可能啟動失敗*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1D12]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:b3000000-b3ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:3000(size=128)
3. http://pci-ids.ucw.cz/read/PC/10de/1d1201:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d12] (rev a1)
3-2. 推薦 安裝 套件 nvidia-driver-396sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001D12sv00001D72sd00001604bc03sc02i00
vendor : NVIDIA Corporation
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-396 - third-party free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
代码: 全选
~$ sudo add-apt-repository ppa:graphics-drivers/ppa
Fresh drivers from upstream, currently shipping Nvidia.
## Current Status
Current short-lived branch release: `nvidia-396` (396.24)
Dropped support for Fermi series (https://nvidia.custhelp.com/app/answers/detail/a_id/4656)
Current long-lived branch release: `nvidia-390` (390.48)
Old long-lived branch release: `nvidia-384` (384.130)
For G8x, G9x and GT2xx GPUs use `nvidia-340` (340.106)
For NV4x and G7x GPUs use `nvidia-304` (304.137) End-Of-Life!
Support timeframes for Unix legacy GPU releases:
https://nvidia.custhelp.com/app/answers/detail/a_id/3142
## What we're working on right now:
- Normal driver updates
- Help Wanted: Mesa Updates for Intel/AMD users, ping us if you want to help do this work, we're shorthanded.
## WARNINGS:
This PPA is currently in testing, you should be experienced with packaging before you dive in here:
Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/
### How you can help:
## Install PTS and benchmark your gear:
sudo apt-get install phoronix-test-suite
Run the benchmark:
phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley
and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads
## Share your results with the community:
Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers
Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.
If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.
If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!
## Help us Help You!
We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA:
http://www.ubuntu.com/download/desktop/contribute
More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://dl.google.com/linux/chrome/deb stable Release [1,189 B]
Get:3 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:5 http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic InRelease
Get:6 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,385 B]
Hit:7 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
Get:8 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Hit:10 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [145 kB]
Hit:12 http://ppa.launchpad.net/gunnarhj/ibus-libpinyin/ubuntu bionic InRelease
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [117 kB]
Get:14 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:15 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu artful InRelease
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [56.2 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [50.4 kB]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [50.3 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [29.0 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [5,784 B]
Get:22 http://cn.archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Ign:23 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic InRelease
Hit:24 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Get:25 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [259 kB]
Get:26 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [288 kB]
Ign:27 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic InRelease
Get:28 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [109 kB]
Get:29 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [138 kB]
Get:30 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [31.4 kB]
Get:31 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [53.7 kB]
Get:32 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [160 kB]
Err:33 http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:34 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [160 kB]
Get:35 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [72.9 kB]
Get:36 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [149 kB]
Get:37 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [160 kB]
Err:38 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:39 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [264 kB]
Err:40 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:41 http://cn.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:42 http://cn.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,100 B]
Get:43 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 Packages [912 B]
Get:44 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/multiverse i386 Packages [908 B]
Get:45 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en [648 B]
Get:46 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [75.9 kB]
Get:47 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [61.6 kB]
Get:48 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [29.6 kB]
Get:49 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 DEP-11 Metadata [40.3 kB]
Get:50 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 48x48 Icons [5,640 B]
Get:51 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [11.7 kB]
Get:52 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [28.1 kB]
Get:53 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe i386 Packages [28.0 kB]
Get:54 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [15.5 kB]
Get:55 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [26.4 kB]
Get:56 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [6,251 B]
Get:57 http://cn.archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [8,730 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:5 http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic InRelease
Hit:6 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:8 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:9 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:10 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:11 http://ppa.launchpad.net/gunnarhj/ibus-libpinyin/ubuntu bionic InRelease
Hit:12 http://cn.archive.ubuntu.com/ubuntu bionic-proposed InRelease
Hit:13 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu artful InRelease
Ign:14 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Ign:16 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic InRelease
Err:17 http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Err:18 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Err:19 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
~$ sudo apt install nvidia-driver-396
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqt4-opengl libqtwebkit4
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-cfg1-396 libnvidia-compute-396:i386 libnvidia-decode-396:i386
libnvidia-encode-396:i386 libnvidia-fbc1-396:i386 libnvidia-gl-396:i386
libnvidia-ifr1-396:i386 nvidia-compute-utils-396 nvidia-dkms-396
nvidia-kernel-common-396 nvidia-kernel-source-396 nvidia-prime
nvidia-settings nvidia-utils-396 xserver-xorg-video-nvidia-396
The following packages will be REMOVED:
libnvidia-cfg1-390 xserver-xorg-video-nvidia-390
The following NEW packages will be installed:
libnvidia-cfg1-396 libnvidia-compute-396:i386 libnvidia-decode-396:i386
libnvidia-encode-396:i386 libnvidia-fbc1-396:i386 libnvidia-gl-396:i386
libnvidia-ifr1-396:i386 nvidia-compute-utils-396 nvidia-dkms-396
nvidia-driver-396 nvidia-kernel-common-396 nvidia-kernel-source-396
nvidia-prime nvidia-settings nvidia-utils-396 xserver-xorg-video-nvidia-396
0 upgraded, 16 newly installed, 2 to remove and 23 not upgraded.
Need to get 0 B/50.2 MB of archives.
After this operation, 206 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 251138 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-video-nvidia-396_396.51-0ubuntu0~gpu18.04.1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-396 (396.51-0ubuntu0~gpu18.04.1) ...
dpkg: error processing archive (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so', which is also in package xserver-xorg-video-nvidia-390 390.77-0ubuntu0~gpu18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/xserver-xorg-video-nvidia-396_396.51-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
代码: 全选
sudo apt-get -o Dpkg::Options::="--force-overwrite" install /var/cache/apt/archives/xserver-xorg-video-nvidia-396_396.51-0ubuntu0~gpu18.04.1_amd64.deb
1. 你以前安裝的 nvidia-driver-390 還沒完全移除 影響到 nvidia-driver-396 的安裝Unpacking xserver-xorg-video-nvidia-396 (396.51-0ubuntu0~gpu18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/xserver-xorg-video-nvidia-396_396.51-0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so', which is also in package xserver-xorg-video-nvidia-390 390.77-0ubuntu0~gpu18.04.1
2. http://ppa.launchpad.net/bumblebee/stable/ubuntu/dists/E: The repository 'http://ppa.launchpad.net/bumblebee/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
3. http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu/dists/E: The repository 'http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
4. http://ppa.launchpad.net/wiznote-team/ppa/ubuntu/dists/E: The repository 'http://ppa.launchpad.net/wiznote-team/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
代码: 全选
~$ sudo dpkg -l | grep xserver-xorg-video-nvidia
ii xserver-xorg-video-nvidia-390 390.77-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary Xorg driver
~$ sudo dpkg -S /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
xserver-xorg-video-nvidia-390: /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
3-2-2. 安裝方法
...
把以前已經安裝過的 nvidia 套件 (包含沒安裝成功的 nvidia 套件) 先移除
sudo add-apt-repository ppa:graphics-drivers/ppa
1. 你以前曾經安裝套件 xserver-xorg-video-nvidia-390sudo dpkg -l | grep xserver-xorg-video-nvidia
ii xserver-xorg-video-nvidia-390 390.77-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary Xorg driver
sudo dpkg -S /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
xserver-xorg-video-nvidia-390: /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
代码: 全选
~$ sudo apt purge xserver-xorg-video-nvidia-390
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libegl-mesa0 : Breaks: nvidia-304 but 304.137-0ubuntu2 is to be installed
libglx0 : Depends: libglx-mesa0 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
1. libglx-mesa 與 nvidia-390 打包時 可能存在衝突The following packages have unmet dependencies:
libegl-mesa0 : Breaks: nvidia-304 but 304.137-0ubuntu2 is to be installed
libglx0 : Depends: libglx-mesa0 but it is not going to be installed
2. 這個錯誤訊息 由於某個套件安裝不完整E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
viewtopic.php?p=3208834#p3208834
3-2. 推薦 安裝 套件 nvidia-driver-396
代码: 全选
~$ sudo dpkg --remove --force-remove-reinstreq libglx0
dpkg: dependency problems prevent removal of libglx0:amd64:
libgl1:amd64 depends on libglx0 (= 1.0.0-2ubuntu2.1).
dpkg: error processing package libglx0:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libglx0:amd64
~$ sudo dpkg --remove --force-remove-reinstreq libegl-mesa0
dpkg: dependency problems prevent removal of libegl-mesa0:amd64:
libegl1:amd64 depends on libegl-mesa0.
dpkg: error processing package libegl-mesa0:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libegl-mesa0:amd64
~$ sudo dpkg --remove --force-remove-reinstreq xserver-xorg-video-nvidia-390
dpkg: error processing package xserver-xorg-video-nvidia-390 (--remove):
dependency problems - not removing
Errors were encountered while processing:
xserver-xorg-video-nvidia-390
~$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1. GeForce MX150 在 396.51 支援名單內https://launchpad.net/~graphics-drivers ... ubuntu/ppa
nvidia-graphics-drivers-396
396.51-0ubuntu0~gpu18.10.1