重新启动Ubuntu后出现大雨错误(我需要删除2个文件)


8

我加入DelugeStartup applications有时在重启或关闭Deluge后将无法启动。如果尝试在终端中运行它,则会收到下一个错误:

vas@LenovoZ580:~$ deluge
[ERROR   ] 11:18:36 ipcinterface:156 Deluge restart failed: Couldn't listen on any:/home/vas/.config/deluge/ipc/deluge-gtk: Cannot acquire lock.

如果我删除/home/vas/.config/deluge/ipc/deluge-gtk/home/vas/.config/deluge/ipc/deluge-gtk.lock然后Deluge正常启动。

重新启动或关闭笔记本电脑时,如何设置这两个文件(如果存在)要删除?

Answers:


8

您可以创建一个删除两个文件并将其设置为在启动时运行的脚本。

像这样:

#!/bin/bash
rm /home/vas/.config/deluge/ipc/deluge-gtk
rm /home/vas/.config/deluge/ipc/deluge-gtk.lock

您需要将脚本放置在中/etc/init.d/

参见:https : //superuser.com/questions/155476/how-do-i-make-a-script-run-upon-startup-of-the-ubuntu-machine

另外,这里还有一个有关如何bash脚本的简短教程:https : //help.ubuntu.com/community/Beginners/BashScripting


4

当Deluge无法干净退出时,这是一个常见错误。一些符号链接断开,Deluge不知道该怎么办。但是我愿意。

rm /home/vas/.config/deluge/ipc/deluge*

然后启动Deluge。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.