“无法设置锁定文件:/tmp/g2ipmsg.lock errno : -11(资源暂时不可用)”

Mad*_*u K 7 networking

我从 Ubuntu 软件中心安装了 IP Messenger (GNOME 2) 但它不工作。它总是在 Ubuntu 12.04 上显示错误消息。

FileName:ipmsg.c
Function:create_lock_file
Line:157
Can not setup lock file:/tmp/g2ipmsg.lock errno : -11 (Resource temporarily unavailable)
Run Code Online (Sandbox Code Playgroud)

yil*_*lmi 0

尝试首先检查 /tmp/ 目录以及它是否可供所有用户写入。

也尝试这个解决方案:

  1. 在终端上输入以下命令 -gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

  2. 重新启动并单击 gnome ip messenger 仍然可能会出现创建锁定文件错误,但可以在通知面板中查看。

  3. 如果这仍然不起作用,请确保您可以写入 /tmp,尝试touch /tmp/foo确保您可以写入其中

  4. 接下来,查看 /tmp 中是否有锁定文件: ls -l /tmp/g2ipmsg.lock 如果看不到尝试使用sudo ls -a /tmp/

  5. 您可以看到谁拥有锁定文件。如果有锁定文件,请使用 pgrep ipmsg 检查进程是否正在运行。如果没有,请将其删除:rm /tmp/g2ipmsg.locksudo rm /tmp/g2ipmsg.lock

让我们知道它是否有效


Mad*_*ari 0

我也有同样的问题。在这里您可以尝试替代Iptux。您可以向 Windows 上的 ipmsg 和 Ubuntu 上的 iptux 发送/接收消息。

要安装 iptux 使用命令:

sudo apt-get install iptux
Run Code Online (Sandbox Code Playgroud)