Operating System - Linux
1753481 Members
4328 Online
108794 Solutions
New Discussion

Re: hp-smh-templates installation error

 
tian108
Frequent Visitor

hp-smh-templates installation error

Hi. I tried to install hp-smh-templates on my ubuntu 14.04 LTS server but I am getting the error message below.

 

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hp-smh-templates
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,077 kB of archives.
After this operation, 12.9 MB of additional disk space will be used.
(Reading database ... 57563 files and directories currently installed.)
Preparing to unpack .../hp-smh-templates_9.5.0.1.2-4._all.deb ...
Unpacking hp-smh-templates (9.5.0.1.2-4.) ...
dpkg: error processing archive /var/cache/apt/archives/hp-smh-templates_9.5.0.1.2-4._all.deb (--unpack):
trying to overwrite '/opt/hp/hpsmh/data/htdocs/smhutil/snmpchp.php.en', which is also in package hpsmh 7.3.2-1.5-2.
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/hp-smh-templates_9.5.0.1.2-4._all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Has anyone ever encountered this error?

Thanks

4 REPLIES 4
rian18
Member

Re: hp-smh-templates installation error

Same here when trying to apt-get upgrade.

 


Vorbereitung zum Entpacken von .../hp-smh-templates_9.5.0.1.2-4._all.deb ...
Entpacken von hp-smh-templates (9.5.0.1.2-4.) über (9.4.0.1.1-1.) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/hp-smh-templates_9.5.0.1.2-4._all.deb (--unpack):
 Versuch, »/opt/hp/hpsmh/data/htdocs/smhutil/snmpchp.php.en« zu überschreiben, welches auch in Paket hpsmh 7.3.2-1.5-2. ist
Trigger für man-db (2.6.7.1-1ubuntu1) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/hp-smh-templates_9.5.0.1.2-4._all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

No solution found yet.

OnkelJ
Collector

Re: hp-smh-templates installation error

Has anyone found a workaround for the issue?

 

For instance uninstalling the current packages and installing older versions? Maybe someone's done a fully manual installation from the repository, by downloading the .deb and not involving apt.

 

Does anyone got information on when to expect a fix for the issue from HP?

 

I'm not sure if this is because of the faulty hp-smh-templates package, but I cannot choose snmp as data source, so there are no items in smh. Is this also your experience?

Dominic Stephens
New Member

Re: hp-smh-templates installation error

I had the same issue and consequently no items in the SMH. I tried downloading the .deb and installing using dpkg not apt but had the same error. The trick is to force the overwrite:

 

sudo dpkg -i --force-overwrite hp-smh-templates_9.5.0.1.2-4._all.deb
sudo apt-get -f install

 

Then restart the smh:

 

sudo service hpsmhd restart

 

 

OnkelJ
Collector

Re: hp-smh-templates installation error

Cheers Dominic! 

 

This workaround worked perfectly. All sensors are now showing in SMH. So until the packages are updated correctly, this is how to get around the issue.

 

Many thanks!