![升级到 20.04 后运行 lxc 时出错](https://linux22.com/image/1178650/%E5%8D%87%E7%BA%A7%E5%88%B0%2020.04%20%E5%90%8E%E8%BF%90%E8%A1%8C%20lxc%20%E6%97%B6%E5%87%BA%E9%94%99.png)
笔记:该错误似乎只是表面上的,尽管出现错误,命令仍可正常工作。
从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