我正在使用Ubuntu 16.04。当我在终端中使用clear
命令时,它会产生以下错误:
terminals database is inaccessible
但是,当我使用sudo clear
时,它的工作原理是预期的。
我已经删除了/var/www/
中的一些文件,然后开始了这个问题。我检查了这个问题,侏儒终端中“清除”命令返回“终端数据库不可访问”,但这没有任何帮助。
下面是strace -etrace=open clear
的输出:
open("/home/user/anaconda3/bin/../lib/tls/x86_64/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/user/anaconda3/bin/../lib/tls/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/user/anaconda3/bin/../lib/x86_64/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/user/anaconda3/bin/../lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/home/user/anaconda3/bin/../lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
terminals database is inaccessible
+++ exited with 1 +++
发布于 2017-12-22 17:45:50
Anaconda3的路径设置在.bashrc
中。它干扰了clear
命令。从路径中移除Anaconda路径解决了这个问题。
下面是问题的GitHub参考:https://github.com/ContinuumIO/anaconda-issues/issues/331
发布于 2018-06-13 02:44:53
安装后,您可能已经移动了anaconda
目录,并且anaconda
目录中的一些bash脚本链接仍然指向前面的位置。最简单的解决方案是删除当前的anaconda
安装目录,删除指向它的.bashrc
中的任何路径,然后将其重新安装到所需的位置。
发布于 2022-04-14 03:35:07
export TERMINFO=/usr/share/terminfo
这对我有用。
https://askubuntu.com/questions/988694
复制相似问题