非常感谢您的耐心解答,我首先更正一下我的说法,我目前看上去应该正确的安装了驱动,在系统信息里面已经显示使用了nvidia驱动
但是我现在目前的问题在与开启uefi和security boot模式下不能进入系统,但是在关闭security boot或者关闭uefi模式下都能进入系统,也就是说我现在问题在于我的驱动没有信任的签名,不能通过security boot验证。
此外您给我提供的代码运行效果如下:
hnaaa@hnaaa-Alienware-17-R4:~$ uname -a
Linux hnaaa-Alienware-17-R4 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
hnaaa@hnaaa-Alienware-17-R4:~$ sudo lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Sky Lake Host Bridge/DRAM Registers [8086:1910] (rev 07)
Subsystem: Dell Skylake Host Bridge/DRAM Registers [1028:0776]
Kernel driver in use: skl_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:01.2 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x4) [8086:1909] (rev 07)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 Display controller [0380]: Intel Corporation Skylake Integrated Graphics [8086:191b] (rev 06)
DeviceName: Onboard IGD
Subsystem: Dell Skylake Integrated Graphics [1028:0776]
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07)
Subsystem: Dell Skylake Processor Thermal Subsystem [1028:0776]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
Subsystem: Dell Sunrise Point-H USB 3.0 xHCI Controller [1028:0776]
Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31)
Subsystem: Dell Sunrise Point-H Thermal subsystem [1028:0776]
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)
Subsystem: Dell Sunrise Point-H CSME HECI [1028:0776]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] [8086:a102] (rev 31)
Subsystem: Dell Sunrise Point-H SATA controller [AHCI mode] [1028:0776]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #1 [8086:a110] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.4 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #5 [8086:a114] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #9 [8086:a118] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a150] (rev 31)
Subsystem: Dell Sunrise Point-H LPC Controller [1028:0776]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)
Subsystem: Dell Sunrise Point-H PMC [1028:0776]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
Subsystem: Dell Sunrise Point-H HD Audio [1028:0776]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
Subsystem: Dell Sunrise Point-H SMBus [1028:0776]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1ba1] (rev a1)
Subsystem: Dell Device [1028:0775]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nvidia_drm, nvidia
3c:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller [1969:e0a1] (rev 10)
Subsystem: Dell Killer E2400 Gigabit Ethernet Controller [1028:0772]
Kernel driver in use: alx
Kernel modules: alx
3d:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci
3e:00.0 Non-Volatile memory controller [0108]: Toshiba America Info Systems Device [1179:0115] (rev 01)
Subsystem: Toshiba America Info Systems Device [1179:0001]
Kernel driver in use: nvme
Kernel modules: nvme
hnaaa@hnaaa-Alienware-17-R4:~$ sudo lshw -numeric -class video
*-display
description: VGA compatible controller
product: NVIDIA Corporation [10DE:1BA1]
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 vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:140 memory:dc000000-dcffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000(size=128) memory:c0000-dffff
*-display
description: Display controller
product: Intel Corporation [8086:191B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm bus_master cap_list
configuration: driver=i915 latency=0
resources: irq:125 memory:db000000-dbffffff memory:70000000-7fffffff ioport:f000(size=64)
hnaaa@hnaaa-Alienware-17-R4:~$ sudo ubuntu-drivers devices
[sudo] hnaaa 的密码:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation
manual_install: True
modalias : pci:v000010DEd00001BA1sv00001028sd00000775bc03sc00i00
driver : nvidia-390 - third-party free recommended
driver : nvidia-387 - third-party free
driver : nvidia-384 - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
hnaaa@hnaaa-Alienware-17-R4:~$ sudo efibottmgr -v
sudo: efibottmgr:找不到命令
hnaaa@hnaaa-Alienware-17-R4:~$ sudo efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0000,0006,0001,0002
Boot0000* Windows Boot Manager HD(1,GPT,e39ea56b-070b-4dfd-80d7-d7c726615ba3,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....z...............
Boot0001* Onboard NIC (IPV4) PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/MAC(18dbf241c1a9,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)..BO
Boot0002* Onboard NIC (IPV6) PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/MAC(18dbf241c1a9,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0006* HNAAA HD(1,GPT,e39ea56b-070b-4dfd-80d7-d7c726615ba3,0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi)
hnaaa@hnaaa-Alienware-17-R4:~$ echo $DESKTOP_SESSION
ubuntu
hnaaa@hnaaa-Alienware-17-R4:~$ sudo cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="
http://www.ubuntu.com/"
SUPPORT_URL="
http://help.ubuntu.com/"
BUG_REPORT_URL="
http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
如上,感谢您的回答