[Nut-upsuser] Error processing nut-client and nut-server

Florentina Jessica Marsha florentina_jm at yahoo.com
Tue Dec 18 03:58:05 UTC 2012


	* Ubuntu 12.04 Precise 
	* NUT 2.6 
	* From Ubuntu terminal ---> sudo apt-get install nut

	* Openups from mini-box.com (http://www.mini-box.com/OpenUPS)

	* - Intelligent UPS, USB interface
- SMBUS slave and I2C master
- Input 6-34V
- Programable output 6-24V
- Default output is 12V
- Input/Output current 6A/10A peak
- Charge between 6-30V, 3A
- Voltage and current limits
- Li-Ion, Li-Po, LIFEPO4, Lead Acid
- 1, 2S, 3S, 4S, 5S, 6S
- Balancing up to 6S
- Coulomb counting (fuel gauge)
- Motherboard ON/OFF pulse control*
- OS detects device “Battery”
- manufactured by mini-box.com
- ROHS compliant
Log excerpts upon installation:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  nut-client nut-server
Suggested packages:
  nut-cgi nut-snmp nut-dev nut-xml
The following NEW packages will be installed:
  nut nut-client nut-server
0 upgraded, 3 newly installed, 0 to remove and 20 not upgraded.
Need to get 1,473 kB of archives.
After this operation, 3,688 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y 
Get:1 http://security.ubuntu.com/ubuntu/ precise-security/main nut-client amd64 2.6.3-1ubuntu1.1 [102 kB]
Get:2 http://security.ubuntu.com/ubuntu/ precise-security/main nut-server amd64 2.6.3-1ubuntu1.1 [1,261 kB]
Get:3 http://security.ubuntu.com/ubuntu/ precise-security/main nut all 2.6.3-1ubuntu1.1 [109 kB]
Fetched 1,473 kB in 10s (143 kB/s)                            
(Reading database ... 223986 files and directories currently installed.)
Unpacking nut-client (from .../nut-client_2.6.3-1ubuntu1.1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nut-client_2.6.3-1ubuntu1.1_amd64.deb (--unpack):
 trying to overwrite '/etc/nut/nut.conf', which is also in package nut-openups 2.6.5+svn20120612
Unpacking nut-server (from .../nut-server_2.6.3-1ubuntu1.1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nut-server_2.6.3-1ubuntu1.1_amd64.deb (--unpack):
 trying to overwrite '/lib/nut/usbhid-ups', which is also in package nut-openups 2.6.5+svn20120612
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package nut.
Unpacking nut (from .../nut_2.6.3-1ubuntu1.1_all.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/nut-client_2.6.3-1ubuntu1.1_amd64.deb
 /var/cache/apt/archives/nut-server_2.6.3-1ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ubuntu Software Center also repeteatedly asks to repair the package catalog. 

After repairing package catalog, package operation eventually fails all the time.

installArchives() failed: (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 224010 files and directories currently installed.) 
Unpacking nut-client (from .../nut-client_2.6.3-1ubuntu1.1_amd64.deb) ... 
dpkg: error processing /var/cache/apt/archives/nut-client_2.6.3-1ubuntu1.1_amd64.deb (--unpack): 
 trying to overwrite '/etc/nut/nut.conf', which is also in package nut-openups 2.6.5+svn20120612 
No apport report written because MaxReports is reached already
Unpacking nut-server (from .../nut-server_2.6.3-1ubuntu1.1_amd64.deb) ... 
dpkg: error processing /var/cache/apt/archives/nut-server_2.6.3-1ubuntu1.1_amd64.deb (--unpack): 
 trying to overwrite '/lib/nut/usbhid-ups', which is also in package nut-openups 2.6.5+svn20120612 
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) 
No apport report written because MaxReports is reached already
Processing triggers for man-db ... 
Errors were encountered while processing: 
 /var/cache/apt/archives/nut-client_2.6.3-1ubuntu1.1_amd64.deb 
 /var/cache/apt/archives/nut-server_2.6.3-1ubuntu1.1_amd64.deb 
Error in function:  
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1) 
dpkg: dependency problems prevent configuration of nut: 
 nut depends on nut-server; however: 
  Package nut-server is not installed. 
 nut depends on nut-client; however: 
  Package nut-client is not installed. 
dpkg: error processing nut (--configure): 
 dependency problems - leaving unconfigured 


Only when nut is removed via this command - sudo dpkg -r nut - the software center stops enquiring about the repair.


I followed the information from this link -
http://blog.mansonthomas.com/2008/10/setting-up-ups-link-with-ubuntu-server.html
to establish the ups link with ubuntu server.


Upon usb connection with the computer, the ups shows this information:

~$ upsc openups at localhost
Can not connect to localhost in SSL, continue uncrypted 
battery.capacity: 100
battery.charge: 47
battery.charge.low: 5
battery.charge.warning: 20
battery.current: 0.000
battery.mfr.date: Mini-Box.Com
battery.runtime: 96840
battery.type: PBSO4-LiFePO
battery.voltage: 0.00
device.mfr: Mini-Box.Com
device.model: OPEN-UPS
device.serial: PBSO4-LiFePO
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto    ---> for USB connection
driver.version: 2.6.5
driver.version.data: openUPS HID 0.1
driver.version.internal: 0.37
ups.mfr: Mini-Box.Com
ups.model: OPEN-UPS
ups.productid: d004
ups.serial: PBSO4-LiFePO
ups.status: OB DISCHRG
ups.vendorid: 04d8

Why can't I connect to localhost in SSL?

In the Windows driver provided by the ups manufaturer many more information, such as temperature and others, are provided, but not by the Network UPS tools. So, it is clearsome of the capabilities of the ups are not portrayed by NUT. Why is this so?


Any help is appreciated. Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121217/98f5c395/attachment.html>


More information about the Nut-upsuser mailing list