笔记:该错误似乎只是表面上的,尽管出现错误,命令仍可正常工作。
从18.04升级到20.04后,lxc
以非root用户运行出现以下错误:
$ lxc list
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
+---------+---------+---------------------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+---------------------+------+-----------+-----------+
| mysql | RUNNING | ---.---.-.-- (eth0) | | CONTAINER | 0 |
+---------+---------+---------------------+------+-----------+-----------+
$ lxc exec mysql bash
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
root@mysql:~#
这仅当我没有以 身份运行命令时才会发生root
。如果我在 下运行sudo
,则命令运行时不会出错。
有什么建议可以看看吗?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal