System Administration
Showing results for 
Search instead for 
Did you mean: 

hp-smh-templates installation error

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:
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. ...
Unpacking hp-smh-templates ( ...
dpkg: error processing archive /var/cache/apt/archives/hp-smh-templates_9. (--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 ( ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)


Has anyone ever encountered this error?


New Member

Re: hp-smh-templates installation error

Same here when trying to apt-get upgrade.


Vorbereitung zum Entpacken von .../hp-smh-templates_9. ...
Entpacken von hp-smh-templates ( über ( ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/hp-smh-templates_9. (--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 ( werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
E: Sub-process /usr/bin/dpkg returned an error code (1)


No solution found yet.


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?

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.
sudo apt-get -f install


Then restart the smh:


sudo service hpsmhd restart




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!