Драйверы ядра Нет такого файла или каталога

Внезапно, я вижу следующую ошибку после входа в систему. Я предполагаю, что это связано с недавним обновлением ядра.

enter image description here

$ cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "${PS1-}" ]; then
  if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

$ ls -al /etc/profile.d/
total 44
drwxr-xr-x   2 root root  4096 Jun 26 09:50 .
drwxr-xr-x 153 root root 12288 Jun 28 07:46 ..
-rw-r--r--   1 root root    96 Aug  7  2018 01-locale-fix.sh
-rw-r--r--   1 root root   825 Mär 21 10:55 apps-bin-path.sh
-rw-r--r--   1 root root   664 Apr  2  2018 bash_completion.sh
-rw-r--r--   1 root root  1003 Dez 29  2015 cedilla-portuguese.sh
-rw-r--r--   1 root root   687 Apr  2 18:30 input-method-config.sh
-rw-r--r--   1 root root  1945 Apr  9 14:12 vte-2.91.sh
-rw-r--r--   1 root root   954 Mär 17 21:06 xdg_dirs_desktop_session.sh

cat ~/.profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

Как это исправить?

1
задан 30 June 2019 в 22:33

1 ответ

Я вполне уверен, что эта ошибка связана с указанным в списке путями ваших модулей ядра, а не обязательно с вашим /etc/profile.

Вы проверили, есть ли у /usr/lib/modules/5.0.0-16-generic/kernel/drivers/ эти пути модулей? Мои находятся в /lib/modules/$(uname -r)/kernel/drivers, и это может быть просто результатом ошибки компоновки.

0
ответ дан 30 June 2019 в 22:33

Другие вопросы по тегам:

Похожие вопросы: