我想说我对 Ubuntu 的了解介于新手和普通用户之间。我目前运行的是 16.04 版,大约一周以来,我遇到了一个问题,就是更新无休止。最后,我重启了系统,无法进行任何安装/更新,直到问题解决。
dpkg --configure -a
和都会apt-get install -f
导致与正常更新窗口中相同的结果。更具体地说,最后一行:
gord0@gord0-P65-P67SG:/var/lib/dpkg/updates$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
python-compizconfig
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
42 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up google-chrome-stable (55.0.2883.75-1) ...
Setting up imagemagick-common (8:6.8.9.9-7ubuntu5.3) ...
Setting up libmagickcore-6.q16-2:amd64 (8:6.8.9.9-7ubuntu5.3) ...
Setting up libmagickwand-6.q16-2:amd64 (8:6.8.9.9-7ubuntu5.3) ...
Setting up update-notifier-common (3.168.2) ...
flashplugin-installer: processing...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20161108.1.orig.tar.gz
Get:1 http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20161108.1.orig.tar.gz [27.2 MB]
Fetched 27.2 MB in 11s (2,462 kB/s)
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20161108.1.orig.tar.gz' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Installing from local file /var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20161108.1.orig.tar.gz
Flash Plugin installed.
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.3) ...
Setting up firefox (50.0.2+build1-0ubuntu0.16.04.1) ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-locale-en (50.0.2+build1-0ubuntu0.16.04.1) ...
Setting up libgs9-common (9.18~dfsg~0-0ubuntu2.2) ...
Setting up libgs9:amd64 (9.18~dfsg~0-0ubuntu2.2) ...
Setting up ghostscript (9.18~dfsg~0-0ubuntu2.2) ...
Setting up ghostscript-x (9.18~dfsg~0-0ubuntu2.2) ...
Setting up imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.3) ...
Setting up imagemagick (8:6.8.9.9-7ubuntu5.3) ...
Setting up libmagickcore-6.q16-2-extra:amd64 (8:6.8.9.9-7ubuntu5.3) ...
Setting up linux-image-4.4.0-51-generic (4.4.0-51.72) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-51-generic
vmlinuz(/boot/vmlinuz-4.4.0-51-generic) points to /boot/vmlinuz-4.4.0-51-generic (/boot/vmlinuz-4.4.0-51-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-51-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic
它只是永远停留在那里run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic
:/
我只想安装这个更新,然后从我的生活中消失哈哈!任何帮助都非常感谢。:]
编辑:结果dkms status
是:
bbswitch, 0.8, 4.4.0-47-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-51-generic, x86_64: installed
nvidia-375, 375.20, 4.4.0-47-generic, x86_64: installed
编辑:结果ls -al /usr/src
是:
共 40 drwxr-xr-x 10 root root 4096 11 月 30 日 11:22。 drwxr-xr-x 12 root root 4096 11月21日 15:03 .. drwxr-xr-x 2 root root 4096 十一月 21 15:04 bbswitch-0.8 drwxr-xr-x 27 root root 4096 7月19日 17:47 linux-headers-4.4.0-31 drwxr-xr-x 7 root root 4096 7月19日 17:47 linux-headers-4.4.0-31-generic drwxr-xr-x 27 root root 4096 十一月 21 14:37 linux-headers-4.4.0-47 drwxr-xr-x 7 root root 4096 十一月 21 14:37 linux-headers-4.4.0-47-generic drwxr-xr-x 27 root root 4096 十一月 30 11:22 linux-headers-4.4.0-51 drwxr-xr-x 7 root root 4096 十一月 30 11:22 linux-headers-4.4.0-51-generic drwxr-xr-x 8 root root 4096 十一月 21 15:29 nvidia-375-375.20
编辑:的输出为ls /boot
:
abi-4.4.0-31-通用 memtest86+.bin abi-4.4.0-47-通用 memtest86+.elf abi-4.4.0-51-通用 memtest86+_multiboot.bin config-4.4.0-31-通用 System.map-4.4.0-31-通用 config-4.4.0-47-通用 System.map-4.4.0-47-通用 config-4.4.0-51-通用 System.map-4.4.0-51-通用 efi vmlinuz-4.4.0-31-通用 grub vmlinuz-4.4.0-47-通用 initrd.img-4.4.0-31-通用 vmlinuz-4.4.0-47-通用.efi.signed initrd.img-4.4.0-47-通用 vmlinuz-4.4.0-51-通用
编辑sudo make
:来自的输出/usr/src/nvidia375-375.20
:
使“CC = cc” KBUILD_VERBOSE = -C /lib/modules/4.4.0-51-generic/build M = /usr/src/nvidia-375-375.20 ARCH = x86_64 NV_KERNEL_SOURCES = /lib/modules/4.4.0-51-generic/build NV_KERNEL_OUTPUT = /lib/modules/4.4.0-51-generic/build NV_KERNEL_MODULES =“nvidia nvidia-uvm nvidia-modeset nvidia-drm” INSTALL_MOD_DIR =内核/驱动程序/视频模块 make[1]: 进入目录 '/usr/src/linux-headers-4.4.0-51-generic' 测试:INIT_WORK 测试:remap_pfn_range 测试:follow_pfn 比赛:vmap 测试:set_pages_uc 测试:set_memory_uc 测试:set_memory_array_uc 测试:change_page_attr 测试:pci_get_class 测试:pci_choose_state 测试:vm_insert_page 测试:acpi_device_id 测试:acquire_console_sem 测试:console_lock 测试:kmem_cache_create 测试:在每个 CPU 上 测试:smp_call_function 测试:acpi_evaluate_integer 测试:ioremap_cache 比赛:ioremap_wc 测试:acpi_walk_namespace 测试:pci_domain_nr 测试:pci_dma_mapping_error 测试:sg_alloc_table 测试:sg_init_table 测试:pci_get_domain_bus_and_slot 测试:get_num_physpages 测试:efi_enabled 测试:proc_create_data 测试:pde_数据 测试:proc_remove 测试:pm_vt_switch_required 测试:drm_driver_has_set_busid 测试:drm_driver_has_gem_prime_res_obj 测试:xen_ioemu_inject_msi 测试:phys_to_dma 测试:get_dma_ops 测试:write_cr4 测试:of_parse_phandle 测试:for_each_online_node 测试:node_end_pfn 测试: pci_bus_address 测试:pci_stop_and_remove_bus_device 测试:pci_remove_bus_device CONFTEST:请求线程中断 测试:remap_page_range 测试:address_space_init_once CONFTEST: kbasename 测试:fatal_signal_pending 测试:list_cut_position 比赛:vzalloc 测试:wait_on_bit_lock_argument_count 测试:bitmap_clear 测试:usleep_range 测试:radix_tree_empty 测试:drm_dev_unref 测试:drm_reinit_primary_mode_group 测试:drm_atomic_set_mode_for_crtc 测试:drm_atomic_clean_old_fb 测试:get_user_pages_remote 测试:drm_gem_object_lookup 测试:i2c_adapter 测试:pm_message_t 测试:irq_handler_t 测试:acpi_device_ops 测试:acpi_op_remove 测试:outer_flush_all 测试:proc_dir_entry CONFTEST:散点图 测试:sg_table 测试:file_operations 测试:vm_operations_struct 测试:atomic_long_type 测试:pci_save_state 测试:file_inode 测试:task_struct 比赛:kuid_t 测试:dma_ops 测试:dma_map_ops 测试:noncoherent_swiotlb_dma_ops CONFTEST:故障标志 测试:atomic64_type CONFTEST:address_space 测试:backing_dev_info 测试:kernel_write 测试:strnstr 测试:iterate_dir 比赛:kstrtoull 测试:mm_context_t 测试:drm_bus_present 测试:drm_bus_has_bus_type 测试:drm_bus_has_get_irq 测试:drm_bus_has_get_name 测试:drm_driver_has_legacy_dev_list 测试:drm_crtc_state_has_connectors_changed 测试:drm_init_functions_have_name_arg 测试:drm_mode_connector_list_update_has_merge_type_bits_arg 测试:drm_helper_mode_fill_fb_struct_has_const_mode_cmd_arg 测试:drm_master_drop_has_from_release_arg 测试:drm_mode_config_funcs_has_atomic_state_alloc CONFTEST:dom0_kernel_present 测试:nvidia_vgpu_kvm_build 测试:drm_available 测试:nvidia_grid_build 测试:drm_atomic_available 测试:drm_atomic_modeset_nonblocking_commit_available CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-frontend.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-instance.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-acpi.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-chrdev.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-cray.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-dma.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-gvi.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-i2c.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-mempool.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-mmap.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-p2p.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-pat.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-procfs.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-usermap.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-vm.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-vtophys.o CC [M] /usr/src/nvidia-375-375.20/nvidia/os-interface.o CC [M] /usr/src/nvidia-375-375.20/nvidia/os-mlock.o CC [M] /usr/src/nvidia-375-375.20/nvidia/os-pci.o CC [M] /usr/src/nvidia-375-375.20/nvidia/os-registry.o CC [M] /usr/src/nvidia-375-375.20/nvidia/os-usermap.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-modeset-interface.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-pci-table.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-kthread-qo CC [M] /usr/src/nvidia-375-375.20/nvidia/nv-kthread-q-selftest.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nv_uvm_interface.o CC [M] /usr/src/nvidia-375-375.20/nvidia/ebridge_linux.o CC [M] /usr/src/nvidia-375-375.20/nvidia/ibmnpu_linux.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nvlink_linux.o CC [M] /usr/src/nvidia-375-375.20/nvidia/nvlink_pci.o 符号链接 /usr/src/nvidia-375-375.20/nvidia/nv-kernel.o LD [M] /usr/src/nvidia-375-375.20/nvidia.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_utils.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_common.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_linux.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_migration.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_migration_stubs.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_migration_kepler.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_migration_maxwell.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_migration_pascal.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_channel_mgmt.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/nvstatus.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/nv-kthread-qo CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/nv-kthread-q-selftest.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_common_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_channel_directed_tests.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_channel_basic_sanity_tests.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_kernel_events.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_kernel_counters.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_debug_session.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_gpu_ops_tests.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_lite.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_page_cache.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_lite_api.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_lite_prefetch.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_lite_region_tracking.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_mmu_mgmt_pascal.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_mmu_mgmt.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_mmu_mgmt_stubs.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_full_fault_buffer.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm_full_fault_buffer_pascal.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/mmu_fmt.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/gmmu_fmt.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_tools.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_global.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_gpu.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_procfs.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_va_space.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_gpu_semaphore.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_mem.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_rm_mem.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_channel.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_lock.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_hal.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_tree.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_allocator.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_va_range.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_va_block.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_group.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_gpu_page_fault.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_events.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_module.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_mmu.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pte_batch.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_tlb_batch.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_push.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pushbuffer.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_thread_context.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_tracker.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kepler.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kepler_ce.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kepler_host.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kepler_mmu.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_maxwell.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_maxwell_host.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pascal.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pascal_ce.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pascal_host.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pascal_mmu.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pascal_fault_buffer.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_policy.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_utils.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kvmalloc.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pmm_gpu.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_migrate.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_map_external.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_user_channel.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_hmm.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_heuristics.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_thrashing.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_prefetch.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_test_rng.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_tree_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_allocator_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_gpu_semaphore_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_mem_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_rm_mem_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_page_tree_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_tracker_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_push_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_channel_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_ce_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_lock_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_utils_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_kvmalloc_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_pmm_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_events_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_perf_module_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_get_rm_ptes_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_fault_buffer_flush_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_mmu_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_peer_identity_mappings_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_va_block_test.o CC [M] /usr/src/nvidia-375-375.20/nvidia-uvm/uvm8_range_group_tree_test.o LD [M] /usr/src/nvidia-375-375.20/nvidia-uvm.o CC [M] /usr/src/nvidia-375-375.20/nvidia-modeset/nvidia-modeset-linux.o 符号链接 /usr/src/nvidia-375-375.20/nvidia-modeset/nv-modeset-kernel.o LD [M] /usr/src/nvidia-375-375.20/nvidia-modeset.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-drv.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-utils.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-crtc.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-encoder.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-connector.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-gem.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-fb.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-modeset.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-mmap.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-fence.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nvidia-drm-linux.o CC [M] /usr/src/nvidia-375-375.20/nvidia-drm/nv-pci-table.o LD [M] /usr/src/nvidia-375-375.20/nvidia-drm.o ld -r -o /usr/src/nvidia-375-375.20/nvidia/nv-interface.o /usr/src/nvidia-375-375.20/nvidia/nv-frontend.o /usr/src/nvidia-375-375.20/nvidia/nv-instance.o /usr/src/nvidia-375-375.20/nvidia/nv.o /usr/src/nvidia-375-375.20/nvidia/nv-acpi.o /usr/src/nvidia-375-375.20/nvidia/nv-chrdev.o /usr/src/nvidia-375-375.20/nvidia/nv-cray.o /usr/src/nvidia-375-375.20/nvidia/nv-dma.o /usr/src/nvidia-375-375.20/nvidia/nv-gvi.o /usr/src/nvidia-375-375.20/nvidia/nv-i2c.o /usr/src/nvidia-375-375.20/nvidia/nv-mempool.o /usr/src/nvidia-375-375.20/nvidia/nv-mmap.o /usr/src/nvidia-375-375.20/nvidia/nv-p2p.o /usr/src/nvidia-375-375.20/nvidia/nv-pat.o /usr/src/nvidia-375-375.20/nvidia/nv-procfs.o /usr/src/nvidia-375-375.20/nvidia/nv-usermap.o /usr/src/nvidia-375-375.20/nvidia/nv-vm.o /usr/src/nvidia-375-375.20/nvidia/nv-vtophys.o /usr/src/nvidia-375-375.20/nvidia/os-interface.o /usr/src/nvidia-375-375.20/nvidia/os-mlock.o /usr/src/nvidia-375-375.20/nvidia/os-pci.o /usr/src/nvidia-375-375.20/nvidia/os-registry.o /usr/src/nvidia-375-375.20/nvidia/os-usermap.o /usr/src/nvidia-375-375.20/nvidia/nv-modeset-interface.o /usr/src/nvidia-375-375.20/nvidia/nv-pci-table.o /usr/src/nvidia-375-375.20/nvidia/nv-kthread-qo /usr/src/nvidia-375-375.20/nvidia/nv-kthread-q-selftest.o /usr/src/nvidia-375-375.20/nvidia/nv_uvm_interface.o /usr/src/nvidia-375-375.20/nvidia/ebridge_linux.o /usr/src/nvidia-375-375.20/nvidia/ibmnpu_linux.o /usr/src/nvidia-375-375.20/nvidia/nvlink_linux.o /usr/src/nvidia-375-375.20/nvidia/nvlink_pci.o ld -r -o /usr/src/nvidia-375-375.20/nvidia-modeset/nv-modeset-interface.o /usr/src/nvidia-375-375.20/nvidia-modeset/nvidia-modeset-linux.o 构建模块,第 2 阶段。 MODPOST 4个模块 CC /usr/src/nvidia-375-375.20/nvidia-drm.mod.o LD [M] /usr/src/nvidia-375-375.20/nvidia-drm.ko CC /usr/src/nvidia-375-375.20/nvidia-modeset.mod.o LD [M] /usr/src/nvidia-375-375.20/nvidia-modeset.ko CC /usr/src/nvidia-375-375.20/nvidia-uvm.mod.o LD [M] /usr/src/nvidia-375-375.20/nvidia-uvm.ko CC /usr/src/nvidia-375-375.20/nvidia.mod.o LD [M] /usr/src/nvidia-375-375.20/nvidia.ko make[1]:离开目录‘/usr/src/linux-headers-4.4.0-51-generic’
编辑cat dkms.conf
:上述目录中的输出为:
PACKAGE_NAME="nvidia-375" PACKAGE_VERSION="375.20" CLEAN="清洁" BUILT_MODULE_NAME[0]="nvidia" 目标模块名称[0]="nvidia_375" DEST_MODULE_LOCATION[0]="/内核/驱动程序/char/drm" MAKE[0]="'make' -j$(nproc) NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=$kernel_source_dir LD=/usr/bin/ld.bfd 模块" BUILT_MODULE_NAME[1]="nvidia-模式集" 目标模块名称[1]="nvidia_375_modeset" DEST_MODULE_LOCATION[1]="/内核/驱动程序/char/drm" BUILT_MODULE_NAME[2]="nvidia-drm" 目标模块名称[2]="nvidia_375_drm" DEST_MODULE_LOCATION[2]="/内核/驱动程序/char/drm" 自动安装=“是” #PATCH[0]="buildfix_kernel_4.9.补丁" #PATCH_MATCH[0]="^4.9" #PATCH[0]="buildfix_kernel_4.8.补丁" #PATCH[0]="buildfix_kernel_4.6.补丁" #PATCH_MATCH[0]="^4.[6-7]" #PATCH[0]="允许子级别大于 5.补丁" #PATCH_MATCH[0]="^3.[8-9]" #PATCH[1]="buildfix_kernel_3.10.补丁" #PATCH_MATCH[1]="^3.[10-11]" #PATCH[0]="buildfix_kernel_3.18.补丁" #PATCH[1]="注册-VT-switch-requirements.补丁" BUILT_MODULE_NAME[3]="nvidia-uvm" DEST_MODULE_LOCATION[3]="/内核/驱动程序/char/drm" 目标模块名称[3]="nvidia_375_uvm" #PATCH[1]="buildfix_kernel_4.7_amd64_only.补丁"
答案1
nvidia dkms 驱动程序构建失败,因此我们将手动尝试解决它。
步骤 #1(成功)
我们将彻底删除 nvidia dkms 驱动程序。
dkms status # will show nvidia on 4.4.0-47
sudo dkms remove nvidia-375/375.20 --all
dkms status # shouldn't see the nvidia at all
步骤 #2(成功)
我们将尝试完成之前失败的更新。
sudo apt-get update
dpkg --configure -a
apt-get install -f
从 Unity 仪表板运行软件更新程序。
如果在执行前 3 个命令期间没有重新启动:
reboot
回报。
步骤 #3(正如我们所想的那样,构建失败)
现在我们将添加/构建/安装 nvidia dkms 驱动程序。
uname -r # only proceed if it shows 4.4.0-51
sudo dkms add nvidia-375/375.20
dkms status # nvidia should show as added on 4.4.0-51
sudo dkms build nvidia-375/375.20 -k 4.4.0-51-generic
dkms status # nvidia should show as built on 4.4.0-51
sudo dkms install nvidia-375/375.20 -k 4.4.0-51-generic
dkms status # nvidia should show as installed on 4.4.0-51
reboot
步骤#4(成功)
sudo dkms remove nvidia-375/375.20 --all
cd /usr/src/nvidia-375-375.20 # go to the source code directory
sudo make clean # make sure it's a clean directory
sudo make # build the source without dkms, if it can
- 复制/粘贴所有输出
make
(将其编辑到您的问题中) - 放在
<pre>
文本开头和</pre>
文本结尾
sudo make clean # clean it out again
底线是... nvidia 驱动程序无法dkms build
在内核 4.4.0 上运行。问题可能出在 dkms.conf 文件上。用户需要联系 nvidia 寻求支持。也可以尝试从位于 的 .deb 文件重新安装 nvidia /var/cache/apt/archives
。