The ZFS modules are not loaded ZFS模块无法加载怎么办?
某一次升级了Linux内核之后,发现ZFS存储不能正常使用了。提示:The ZFS modules are not loaded. Try running ‘/sbin/modprobe zfs’ as root to load them. […]
Ubuntu升级系统内核
由于很多原因,比如兼容更新的驱动程序,需要升级系统内核,下面是步骤,整个步骤还是非常简单的: 转到此处: http://kernel.ubuntu.com/~kernel-ppa/mainline/ 下载 3 (也许 4) debs 到某处 […]
Ubuntu切换系统内核
想切换不同系统内核怎么办?按下面步骤即可: 第一步:查找内核:grep submenu /boot/grub/grub.cfg
1 |
submenu 'Ubuntu 高级选项' $menuentry_id_option 'gnulinux-advanced-3f5e97d5-cd08-4560-94df-613149aac32e' { |
第二步:查找想要使用的内核 grep gnul […]
将本地磁盘挂载到Parallel Desktop中
有一天SMART Utility突然提示说本地某个盘出现了坏道,需要修复,但是Mac系统本身又不具有坏道修复功能,只能用diskgenius,正好PD中装了个WIN10,就想通过PD打开diskgenius进行坏道的检测和修复。 不过,正常 […]
Ubuntu安装ssh并开启远程访问
方便使用,这里备份一下: 首先安装:sudo apt-get install openssh-server 然后,开启密码登陆: sudo vi /etc/ssh/sshd_config 修改以下几处地方: PermitRootLogin […]
Ubuntu无法安装高版本NVIDIA驱动
有台机器比较奇怪,只能安装390.25版本的驱动,4xx的驱动都装不了。 每次安装驱动的时候,最后都会提示: ERROR: Unable to load the ‘nvidia-drm’ kernel module. 当然,大部分人说是因为 […]
Unable to load the kernel module ‘nvidia.ko’.
遇到这个问题:
1 2 3 4 5 |
Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc thatdiffers from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA GPU(s), or noNVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release. |
可以升级内核试试: 然后,执行:sudo apt-get install linux-source 本文最后更新于2020年12月19日,已超过 1 年没有更 […]
error: could not determine ZFS module version
ZFS存储真是不稳定。 更换了内核之后,打开导入zpool池的时候,会提示:error: could not determine ZFS module version 好坑啊,主要是DKMS的问题,跟我另一篇博客遇到的问题一样,可以参考: […]
Error: Failed to run: /usr/lib/lxd/lxd forkstart xxx
某一次重启之后,打开容器报错:
1 2 |
Error: Failed to run: /usr/lib/lxd/lxd forkstart mcj2 /var/lib/lxd/containers /var/log/lxd/mcj2/lxc.conf: Try `lxc info --show-log mcj2` for more info |
我们来看一下提示信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
$ lxc info --show-log mcj2 Name: mcj2 Remote: unix:// Architecture: x86_64 Created: 2019/05/05 01:39 UTC Status: Stopped Type: persistent Profiles: default Log: lxc mcj2 20201219085429.974 WARN conf - conf.c:lxc_setup_devpts:1616 - Invalid argument - Failed to unmount old devpts instance lxc mcj2 20201219085429.974 WARN apparmor - lsm/apparmor.c:apparmor_process_label_set:221 - Incomplete AppArmor support in your kernel lxc mcj2 20201219085429.974 ERROR apparmor - lsm/apparmor.c:apparmor_process_label_set:223 - If you really want to start this container, set lxc mcj2 20201219085429.974 ERROR apparmor - lsm/apparmor.c:apparmor_process_label_set:224 - lxc.apparmor.allow_incomplete = 1 lxc mcj2 20201219085429.974 ERROR apparmor - lsm/apparmor.c:apparmor_process_label_set:225 - in your container configuration file lxc mcj2 20201219085429.974 ERROR sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5) lxc mcj2 20201219085429.974 WARN network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth0" with index 36 lxc mcj2 20201219085429.974 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:842 - Received container state "ABORTING" instead of "RUNNING" lxc mcj2 20201219085429.975 ERROR start - start.c:__lxc_start:1939 - Failed to spawn container "mcj2" lxc 20201219085429.976 WARN commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_state" |
可以看到,目前的内核版本对AppArmor的支持还不 […]
Ubuntu更换GCC版本为5.4
升级到其他版本: Ubuntu16.04下升级gcc到7.5.0版本(可选gcc任意版本)_ubuntu16升级gcc7.5.0-CSDN博客 安装NVIDIA驱动的时候,提示:
1 2 |
The CC version check failed: The kernel was built with gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12), but the current compiler version is cc(Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010. |