opensuse 15.1 升级后卡在Login界面


#1


升级后重启就卡在这个界面了,键盘没反应。系统还有得救吗*<(¦Q[▓▓ 呼呼呼。。。。开发环境搭建的七七八八了,不想重装系统了


#2

如果是Btrfs文件系统,开机选项有boot from read only snapshot。进去之后,选择最近一次的正常系统快照。进去选定的快照系统后,点开终端,输入sudo snapper rollback。然后重启。进入默认的opensuse启动项,就是你最近那次完好的系统。


#3

我用U盘进行resume system时,看了/var/log下面的message,发现是加载内核时nvidia显卡出错,图形界面启动失败。
现在最大的问题系,无论是正常启动系统还是高级模式下的恢复模式启动系统,都会卡在login界面,键盘任何按键都没反应,想要使用字符模式都不行。


#4

我用的是ext4


#5

显卡问题无能为力,不过开发环境之类的一般不都在home目录下么?这样的话重装一下再把home挂载回来问题不大吧。


#6

只有少数在home下,现在如果tty1下能响应键盘的话,其实还是很好解决的


#7

搞个rescue U盘chroot进去修吧!操作操作显卡驱动什么的


#8

在引导画面按 e 进入编辑模式,在引导参数最后加 “init 3”


#9

好的,先谢谢哈,今晚回去试试


#10

谢谢哈,今晚回去试试看


#11

我的系统升级后,也只能登录文本模式,把原有的第三方显卡驱动卸载了,重新安装一下就可以图形登录了,我一直这样干。我不确定你的显卡是INVDIA


#12

我的是nvidia显卡,为什么我的Login界面不能响应键盘呢,运行模式没切换过来?


#13

还有不是说只有升级内核后闭源显卡才要重新安装嘛,我那次升级没有升级内核呀


#14

它说找不到init命令


#15

加在引导参数上啊:hushed:又不是运行,怎么还能找不到呢:joy:


#16

我一开始加到最后了:joy:
不过现在加载引导参数后面,键盘还是响应不了,我在resume里面尝试了chroot,然后成功把NVIDIA驱动卸载了,接着安装,出现下面的错误:

installer version: 418.56

PATH: /sbin:/bin:/usr/sbin:/usr/bin

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Unable to load: nvidia-installer ncurses user interface

Using built-in stream user interface
-> Detected 2 CPUs online; setting concurrency level to 2.
-> Installing NVIDIA driver version 418.56.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
   grep: /etc/sysconfig/kernel: No such file or directory
-> done.
-> The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but a reboot may be required first.  Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation)
WARNING: The file '/proc/sys/kernel/modprobe' is unavailable; the X server will use `/sbin/modprobe` as the path to the `modprobe` utility.  This path differs from the one determined by `nvidia-installer`, /usr/bin/kmod.  Please verify that `/sbin/modprobe` works correctly or mount the /proc file system and verify that '/proc/sys/kernel/modprobe' reports the correct path.
WARNING: Unable to open the file '/proc/version' (No such file or directory).
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.12.14-lp151.23-default/source'
-> Kernel output path: '/lib/modules/4.12.14-lp151.23-default/build'
-> Performing Compiler check.
-> Performing Dom0 check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Performing vgpu_kvm check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /usr/bin/make -k -j2 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.12.14-lp151.23-default/source" SYSOUT="/lib/modules/4.12.14-lp151.23-default/build"'...
   rm -f -r conftest
   make[1]: Entering directory '/usr/src/linux-4.12.14-lp151.23'
   make[2]: Entering directory '/usr/src/linux-4.12.14-lp151.23-obj/x86_64/default'
   make[2]: Leaving directory '/usr/src/linux-4.12.14-lp151.23-obj/x86_64/default'
   make[1]: Leaving directory '/usr/src/linux-4.12.14-lp151.23'
-> Building kernel modules
   executing: 'cd ./kernel; /usr/bin/make -k -j2  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.12.14-lp151.23-default/source" SYSOUT="/lib/modules/4.12.14-lp151.23-default/build"'...
   make[1]: Entering directory '/usr/src/linux-4.12.14-lp151.23'
   make[2]: Entering directory '/usr/src/linux-4.12.14-lp151.23-obj/x86_64/default'
     SYMLINK /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-kernel.o
     SYMLINK /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia-modeset/nv-modeset-kernel.o
    CONFTEST: INIT_WORK
    CONFTEST: remap_pfn_range
    CONFTEST: hash__remap_4k_pfn
    CONFTEST: follow_pfn
    CONFTEST: vmap
    CONFTEST: set_pages_uc
    CONFTEST: list_is_first
    CONFTEST: set_memory_uc
    CONFTEST: set_memory_array_uc
    CONFTEST: change_page_attr
    CONFTEST: pci_get_class
    CONFTEST: pci_choose_state
    CONFTEST: vm_insert_page
    CONFTEST: acpi_device_id
    CONFTEST: acquire_console_sem
    CONFTEST: console_lock
    CONFTEST: kmem_cache_create
    CONFTEST: on_each_cpu
    CONFTEST: smp_call_function
    CONFTEST: acpi_evaluate_integer
    CONFTEST: ioremap_cache
    CONFTEST: ioremap_wc
    CONFTEST: acpi_walk_namespace
    CONFTEST: pci_domain_nr
    CONFTEST: pci_dma_mapping_error
    CONFTEST: sg_alloc_table
    CONFTEST: sg_init_table
    CONFTEST: pci_get_domain_bus_and_slot
    CONFTEST: get_num_physpages
    CONFTEST: proc_create_data
    CONFTEST: efi_enabled
    CONFTEST: pde_data
    CONFTEST: proc_remove
    CONFTEST: pm_vt_switch_required
    CONFTEST: xen_ioemu_inject_msi
    CONFTEST: phys_to_dma
    CONFTEST: get_dma_ops
    CONFTEST: write_cr4
    CONFTEST: of_get_property
    CONFTEST: of_find_node_by_phandle
    CONFTEST: of_node_to_nid
    CONFTEST: pnv_pci_get_npu_dev
    CONFTEST: of_get_ibm_chip_id
    CONFTEST: for_each_online_node
    CONFTEST: node_end_pfn
    CONFTEST: pci_bus_address
    CONFTEST: pci_stop_and_remove_bus_device
    CONFTEST: pci_remove_bus_device
    CONFTEST: request_threaded_irq
    CONFTEST: register_cpu_notifier
    CONFTEST: cpuhp_setup_state
    CONFTEST: dma_map_resource
    CONFTEST: backlight_device_register
    CONFTEST: register_acpi_notifier
    CONFTEST: timer_setup
    CONFTEST: pci_enable_msix_range
    CONFTEST: compound_order
    CONFTEST: do_gettimeofday
    CONFTEST: remap_page_range
    CONFTEST: address_space_init_once
    CONFTEST: kbasename
    CONFTEST: fatal_signal_pending
    CONFTEST: list_cut_position
    CONFTEST: vzalloc
    CONFTEST: wait_on_bit_lock_argument_count
    CONFTEST: bitmap_clear
    CONFTEST: usleep_range
    CONFTEST: radix_tree_empty
    CONFTEST: radix_tree_replace_slot
    CONFTEST: pnv_npu2_init_context
    CONFTEST: drm_dev_unref
    CONFTEST: drm_reinit_primary_mode_group
    CONFTEST: get_user_pages_remote
    CONFTEST: get_user_pages
    CONFTEST: drm_gem_object_lookup
    CONFTEST: drm_atomic_state_ref_counting
    CONFTEST: drm_driver_has_gem_prime_res_obj
    CONFTEST: drm_atomic_helper_connector_dpms
    CONFTEST: drm_connector_funcs_have_mode_in_name
    CONFTEST: vmf_insert_pfn
    CONFTEST: drm_framebuffer_get
    CONFTEST: drm_gem_object_get
    CONFTEST: is_export_symbol_gpl_of_node_to_nid
    CONFTEST: drm_dev_put
    CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
    CONFTEST: is_export_symbol_present_swiotlb_dma_ops
    CONFTEST: i2c_adapter
    CONFTEST: pm_message_t
    CONFTEST: irq_handler_t
    CONFTEST: acpi_device_ops
    CONFTEST: acpi_op_remove
    CONFTEST: outer_flush_all
    CONFTEST: proc_dir_entry
    CONFTEST: scatterlist
    CONFTEST: sg_table
    CONFTEST: file_operations
    CONFTEST: vm_operations_struct
    CONFTEST: atomic_long_type
    CONFTEST: pci_save_state
    CONFTEST: file_inode
    CONFTEST: task_struct
    CONFTEST: kuid_t
    CONFTEST: dma_ops
    CONFTEST: swiotlb_dma_ops
    CONFTEST: dma_map_ops
    CONFTEST: noncoherent_swiotlb_dma_ops
    CONFTEST: vm_fault_present
    CONFTEST: vm_fault_has_address
    CONFTEST: backlight_properties_type
    CONFTEST: vmbus_channel_has_ringbuffer_page
    CONFTEST: fault_flags
    CONFTEST: atomic64_type
    CONFTEST: address_space
    CONFTEST: backing_dev_info
    CONFTEST: mm_context_t
    CONFTEST: vm_ops_fault_removed_vma_arg
    CONFTEST: node_states_n_memory
    CONFTEST: drm_bus_present
    CONFTEST: drm_bus_has_bus_type
    CONFTEST: drm_bus_has_get_irq
    CONFTEST: drm_bus_has_get_name
    CONFTEST: drm_driver_has_legacy_dev_list
    CONFTEST: drm_driver_has_set_busid
    CONFTEST: drm_crtc_state_has_connectors_changed
    CONFTEST: drm_init_function_args
    CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
    CONFTEST: drm_helper_mode_fill_fb_struct
    CONFTEST: drm_master_drop_has_from_release_arg
    CONFTEST: drm_driver_unload_has_int_return_type
    CONFTEST: kref_has_refcount_of_type_refcount_t
    CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
    CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
    CONFTEST: drm_mode_object_find_has_file_priv_arg
    CONFTEST: dma_buf_owner
    CONFTEST: drm_connector_list_iter
    CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
    CONFTEST: dom0_kernel_present
    CONFTEST: nvidia_vgpu_hyperv_available
    CONFTEST: nvidia_vgpu_kvm_build
    CONFTEST: nvidia_grid_build
    CONFTEST: drm_available
    CONFTEST: drm_atomic_available
    CONFTEST: is_export_symbol_gpl_refcount_inc
    CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
     CC [M]  /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-frontend.o
     CC [M]  /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-instance.o
   In file included from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/conftest.h:6:0,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/nv-linux.h:17,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-frontend.c:13:
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                 ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:30: error: stray ‘\342’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                 ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:31: error: stray ‘\200’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                  ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:32: error: stray ‘\230’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                   ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:75: error: stray ‘\342’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                                                              ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:76: error: stray ‘\200’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                                                               ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:15:77: error: stray ‘\231’ in program
    conftest13386.c: In function ‘conftest_drm_atomic_set_mode_prop_for_crtc’:
                                                                                ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:61: error: stray ‘\342’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:62: error: stray ‘\200’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                 ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:63: error: stray ‘\230’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                  ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:97: error: stray ‘\342’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                                                    ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:98: error: stray ‘\200’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                                                     ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:16:99: error: stray ‘\231’ in program
    conftest13386.c:21:21: error: too few arguments to function ‘drm_atomic_set_mode_prop_for_crtc’
                                                                                                      ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:18:22: error: expected identifier or ‘(’ before ‘^’ token
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         ^
   /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/conftest/generic.h:20:14: error: too many decimal points in number
    /lib/modules/4.12.14-lp151.23-default/source/include/drm/drm_atomic.h:604:1: note: declared here
                 ^~~~~~~
   In file included from /usr/src/linux-4.12.14-lp151.23/include/linux/linkage.h:4:0,
                    from /usr/src/linux-4.12.14-lp151.23/include/linux/preempt.h:9,
                    from /usr/src/linux-4.12.14-lp151.23/include/linux/spinlock.h:50,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/nv-lock.h:16,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/nv-linux.h:19,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-frontend.c:13:
   /usr/src/linux-4.12.14-lp151.23/include/linux/compiler.h:109:28: error: field ‘data’ has incomplete type
     struct ftrace_branch_data data;
                               ^~~~
   In file included from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/conftest.h:6:0,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/common/inc/nv-linux.h:17,
                    from /tmp/selfgz10315/NVIDIA-Linux-x86_64-418.56/kernel/nvidia/nv-instance.c:13:

#17

不知道我使用U盘upgrade行不行呢?


#18

我升级之后也卡在登录界面了!键盘鼠标无响应!我的电脑是intel集成显卡,登录界面有点发虚,分辨率不高。难道intel显卡驱动也不行?不应该啊!
即使自动登录进去,键盘鼠标还是无响应,网络还打叉,我是插着网线的。


#19

你这个是nvidia显卡驱动内核模块没法编译,和你的内核版本不匹配。
尝试一下这个库里面的nvidia驱动安装包吧:
http://download.nvidia.com/opensuse/leap/15.1/x86_64/

如果你是新显卡(GTX8XX以上),安装
nvidia-computeG05-418.56-lp151.9.1.x86_64.rpmnvidia-gfxG05-kmp-default-418.56_k4.12.14_lp151.24-lp151.9.12.x86_64.rpmnvidia-glG05-418.56-lp151.9.1.x86_64.rpmx11-video-nvidiaG05-418.56-lp151.9.1.x86_64.rpm这四个包。


#20

好的,蟹蟹您,我忙完尝试一下