SystemError: could not open configuration file `/etc/libuser.conf': 没有那个文件或目录
2017-06-23 17:26
741 查看
今天在Ubuntu16.04 64位系统上面安装smb服务器,出现以下错误提示。
解决方法:
在/etc目录下创建 libuser.conf 文件,使用如下命令。
再次启动smb服务器就可以出现正常的图形界面
root@mq-VM:/home/mq# system-config-samba Traceback (most recent call last): File "/usr/sbin/system-config-samba", line 45, in <module> mainWindow.MainWindow(debug_flag) File "/usr/share/system-config-samba/mainWindow.py", line 121, in __init__ self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window) File "/usr/share/system-config-samba/basicPreferencesWin.py", line 97, in __init__ self.admin = libuser.admin() SystemError: could not open configuration file `/etc/libuser.conf': 没有那个文件或目录
解决方法:
在/etc目录下创建 libuser.conf 文件,使用如下命令。
root@mq-VM:/home/mq# sudo touch /etc/libuser.conf
再次启动smb服务器就可以出现正常的图形界面
root@mq-VM:/home/mq# system-config-samba
结束
相关文章推荐
- Syntax error on line of /etc/httpd/conf/httpd.conf: Could not open configuration file *.conf denied
- Could not open GPS configuration file /etc/gps.conf
- Ubuntu 16.04下操作iptables的技巧(解决Failed to start iptables.service: Unit iptables.service not found.或者/etc/init.d/iptables: 没有那个文件或目录)
- linux下用dom4j写入xml时 报错java.io.FileNotFoundException..(没有那个文件或目录
- httpd: Could not open configuration file /xxx/conf/httpd.conf: No such file or directory
- Could not open virtual machine – vmx is not a valid virtual machine configuration file
- ubuntu 64bit arm gcc: No such file or directory 没有那个文件或目录
- No such file or directory(没有那个文件或目录)的小问题
- greenplum集群发生了某个节点报“could not open relation 1663/16384/32749972: 无此文件或目录”后再无法启动后的一个解决方法-唐成
- linux下执行php文件发现Could not open input file
- /etc/init.d/mysql: /usr/bin/my_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
- Centos GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
- mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file or direc
- 解决执行Oracle控制脚本时遇到的 “cat: /etc/oratab: 没有那个文件或目录”的问题
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- 解决执行Oracle控制脚本时遇到的 “cat: /etc/oratab: 没有那个文件或目录”的问题
- 解决 Python.h:没有那个文件或目录 错误的方法( Python.h:No such file or directory )
- /bin/bash^M: 坏的解释器: 没有那个文件或目录(bad interpreter: No such file or directory)
- centos yum安装 Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias
- 启动bind时报none:0: open: /etc/named/named.conf: file not found