我试图在一台带有ubuntu服务器12.04的无头机器上安装螺母,我一直在收集这个错误:
$ sudo apt-get install nut
Reading package lists... Done
Building dependency tree
Reading state information... Done
nut is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up nut-server (2.6.3-1ubuntu1.1) ...
grep: /etc/nut/nut.conf: No such file or directory
sed: can't read /etc/nut/nut.conf: No such file or directory
dpkg: error processing nut-server (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of nut:
nut depends on nut-server; however:
Package nut-server is not configured yet.
dpkg: error processing nut (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nut-server
nut
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2012-12-28 04:43:51
在多次尝试将螺母配置为与我的UPS一起工作之后,我决定卸载所有设备并从头开始。在这个卸载过程中,我以某种方式删除了nut.conf表单/etc/nut。为了能够再次安装螺母,我必须手动创建这个文件并在其中输入MODE=standalone。
https://askubuntu.com/questions/231467
复制相似问题