目录"/var/lib/mercurial-server/"丢失 [英] directory '/var/lib/mercurial-server/' is missing
问题描述
重新安装mercurial-server后,目录'/var/lib/mercurial-server/'丢失
After reinstall mercurial-server, directory '/var/lib/mercurial-server/' missing
apt-get purge mercurial-server
sudo rm -rf /var/lib/mercurial-server
sudo apt-get update
sudo apt-get install mercurial mercurial-server
我尝试:
shabak@Ubuntu:/etc/mercurial-server$ cd /var/lib/mercurial-server
-bash: cd: /var/lib/mercurial-server: No such file or directory
我找不到文件夹"repos".
I can't find the folder 'repos'.
请帮助!
推荐答案
仅当"hg"用户不存在时,安装脚本才会创建并初始化该目录.否则,它假定您已经使用了现有设置.尝试将以下deluser
和delgroup
命令添加到您正在执行的操作中:
The install script creates and initializes that directory only if the "hg" user doesn't exist. Otherwise it assumes you have an existing setup it should use. Try adding these deluser
and delgroup
commands to what you're doing:
apt-get purge mercurial-server
deluser --remove-home --system hg
delgroup --system hg
rm -rf /var/lib/mercurial-server
apt-get update
apt-get install mercurial mercurial-server
或者,在清除"之前,执行"dpkg-reconfigure mercurial-server"并设置销毁所有数据的选项.
Alternately, before the "purge", do "dpkg-reconfigure mercurial-server" and set the option that destroys all data.
我将在以后的版本中进行检测并修复-感谢您举报!
I'll detect and fix this in a future revision - thanks for reporting it!
这篇关于目录"/var/lib/mercurial-server/"丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!