/usr/lib 的所有者不是 root

bal*_*azs 1 permissions root virtualbox chown ownership

Virtualbox 程序错误:

无法为虚拟机打开会话.... 无法加载 VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT)。

终端输出:

balazs@inspiron:/usr$ ls -l
total 164
drwxr-xr-x   2 root   root   69632 Oct 12 12:27 bin
drwxr-xr-x   2 root   root    4096 Apr 24 19:04 games
drwxr-xr-x  81 root   root   12288 Sep 29 11:57 include
drwxr-xr-x 200 balazs balazs 36864 Oct 12 12:27 lib
drwxr-xr-x   4 root   root    4096 May 23 10:43 lib32
drwxr-xr-x  12 root   root    4096 Oct  3 14:02 local
drwxr-xr-x   2 root   root   12288 Oct 10 19:17 sbin
drwxr-xr-x 337 root   root   12288 Oct 12 12:27 share
drwxr-xr-x  11 root   root    4096 Oct 12 12:27 src
Run Code Online (Sandbox Code Playgroud)

我没有改变任何东西。也许其他一些安装的软件把事情搞砸了。但我认为 /usr/lib 应该归 root 所有。文件夹内的所有内容都归root所有。

balazs@inspiron:/usr/lib$ ls -l | less
total 196232
drwxr-xr-x  2 root   root         4096 Apr 24 19:03 accountsservice
drwxr-xr-x  7 root   root         4096 Jul 16 12:49 ADM_plugins
drwxr-xr-x  3 root   root         4096 Apr 24 19:04 aisleriot
drwxr-xr-x  2 root   root         4096 Apr 24 19:04 apg
drwxr-xr-x  2 root   root         4096 May 28 01:50 apr-util-1
drwxr-xr-x  4 root   root         4096 Apr 24 19:02 apt
drwxr-xr-x  2 root   root        12288 Apr 24 19:03 aspell
drwxr-xr-x  2 root   root         4096 Apr 24 19:03 at-spi2-core
-rw-r--r--  1 root   root        34512 Jul 11 07:51 attica_kde.so
drwxr-xr-x  2 root   root         4096 Apr 24 19:04 avahi
Run Code Online (Sandbox Code Playgroud)

我应该如何解决这个问题?

我担心我会破坏我的操作系统。我在那个文件夹上做了一次 sudo chown 并且我不得不重新安装所有东西,因为 sudo 不是由 root 等拥有的。(一年前)我决定不使用 Virtualbox,但现在我需要它。有什么帮助吗?

Rad*_*anu 5

使用chown更改所有者:

sudo chown root:root /usr/lib
Run Code Online (Sandbox Code Playgroud)

这会将/usr/lib目录的所有者更改为 root。