Mailing List Archive

Problem installing software alongside ntopng
I was trying to install omd alongside a working ntopng instance on the same server and ran into the error below


user@jknetmon:~$ sudo dpkg -i omd-1.20.trusty.amd64.deb

Selecting previously unselected package omd-1.20.

(Reading database ... 169285 files and directories currently installed.)

Preparing to unpack omd-1.20.trusty.amd64.deb ...

Unpacking omd-1.20 (0.trusty) ...

dpkg: dependency problems prevent configuration of omd-1.20:

omd-1.20 depends on libsnmp-python; however:

Package libsnmp-python is not installed.

omd-1.20 depends on libapache2-mod-fcgid; however:

Package libapache2-mod-fcgid is not installed.

omd-1.20 depends on libapache2-mod-proxy-html; however:

Package libapache2-mod-proxy-html is not installed.

omd-1.20 depends on apache2-mpm-prefork; however:

Package apache2-mpm-prefork is not installed.

omd-1.20 depends on libboost-program-options1.54.0; however:

Package libboost-program-options1.54.0 is not installed.

omd-1.20 depends on libboost-system1.54.0; however:

Package libboost-system1.54.0 is not installed.

omd-1.20 depends on libperl5.18; however:

Package libperl5.18 is not installed.

omd-1.20 depends on php5-cli; however:

Package php5-cli is not installed.

omd-1.20 depends on php5-cgi; however:

Package php5-cgi is not installed.

omd-1.20 depends on php5-gd; however:

Package php5-gd is not installed.

omd-1.20 depends on php5-mcrypt

dpkg: error processing package omd-1.20 (--install):

dependency problems - leaving unconfigured

Processing triggers for systemd (229-4ubuntu21) ...

Processing triggers for ureadahead (0.100.0-19) ...

Processing triggers for man-db (2.7.5-1) ...

Errors were encountered while processing:

omd-1.20







user@jknetmon:~$ sudo apt-get install -f

Reading package lists... Done

Building dependency tree

Reading state information... Done

Correcting dependencies... Done

The following packages were automatically installed and are no longer required:

debugedit fonts-font-awesome fonts-liberation fping freeradius-common freeradius-utils graphviz lcab libarchive13 libavahi-client3 libavahi-common-data libavahi-common3 libcdt5 libcgraph6 libcups2

libdbi-perl libevent-1.4-2 libfreeradius2 libgd3 libgsf-1-114 libgsf-1-common libgvc6 libgvpr2 libice6 libjbig0 libjpeg-turbo8 libjpeg8 libjs-bootstrap libjs-d3 libjs-jquery libjs-jquery-form

libjs-jquery-metadata libjs-jquery-tablesorter libjs-rickshaw liblcms2-2 libldb1 libluajit-5.1-2 libluajit-5.1-common libmcrypt4 libndpi3 libnet-snmp-perl libnspr4 libnss3 libnss3-nssdb libpango1.0-0

libpangox-1.0-0 libpangoxft-1.0-0 libpathplan4 libpoppler58 libpython2.7 librpm3 librpmbuild3 librpmio3 librpmsign3 libsm6 libsmbclient libsnmp-perl libtalloc2 libtdb1 libtevent0 libtiff5 libtirpc1 libvpx3

libwbclient0 libxaw7 libxft2 libxmu6 libxpm4 libxt6 linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-image-4.4.0-101-generic

linux-image-4.4.0-87-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-87-generic php-cgi php-gd php-mcrypt php-sqlite3 php7.0-cgi php7.0-gd php7.0-mcrypt php7.0-sqlite3 poppler-utils pyro

python-crypto python-ldb python-samba python-talloc python-tdb rpcbind rpm rpm-common rpm2cpio samba-common samba-common-bin samba-libs smbclient x11-common

Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:

omd-1.20

0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.

2 not fully installed or removed.

After this operation, 294 MB disk space will be freed.



Do you want to continue? [Y/n] y

(Reading database ... 193748 files and directories currently installed.)

Removing omd-1.20 (0.trusty) ...

Setting up ntopng (3.2.180104-3976) ...

Rebuilding ld cache...

(Re)Starting ntopng...

Synchronizing state of ntopng.service with SysV init with /lib/systemd/systemd-sysv-install...

Executing /lib/systemd/systemd-sysv-install enable ntopng

Failed to execute operation: File exists

dpkg: error processing package ntopng (--configure):

subprocess installed post-installation script returned error exit status 1

Processing triggers for libc-bin (2.23-0ubuntu9) ...

Errors were encountered while processing:

ntopng

E: Sub-process /usr/bin/dpkg returned an error code (1)





user@jknetmon:~$



Could not seem to overcome the ntopng error no matter what I tried.
Then tried removeing the notpng cached packages using


sudo apt-get clean

and tried to reinstall the ntopng packages using


sudo apt-get install -reinstall ntopng
and continue to get the error...


user@jknetmon:~$ sudo apt-get install --reinstall ntopng

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

debugedit fonts-font-awesome fonts-liberation fping freeradius-common freeradius-utils graphviz lcab libarchive13 libavahi-client3 libavahi-common-data libavahi-common3 libcdt5 libcgraph6 libcups2

libdbi-perl libevent-1.4-2 libfreeradius2 libgd3 libgsf-1-114 libgsf-1-common libgvc6 libgvpr2 libice6 libjbig0 libjpeg-turbo8 libjpeg8 libjs-bootstrap libjs-d3 libjs-jquery libjs-jquery-form

libjs-jquery-metadata libjs-jquery-tablesorter libjs-rickshaw liblcms2-2 libldb1 libluajit-5.1-2 libluajit-5.1-common libmcrypt4 libndpi3 libnet-snmp-perl libnspr4 libnss3 libnss3-nssdb libpango1.0-0

libpangox-1.0-0 libpangoxft-1.0-0 libpathplan4 libpoppler58 libpython2.7 librpm3 librpmbuild3 librpmio3 librpmsign3 libsm6 libsmbclient libsnmp-perl libtalloc2 libtdb1 libtevent0 libtiff5 libtirpc1 libvpx3

libwbclient0 libxaw7 libxft2 libxmu6 libxpm4 libxt6 linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-image-4.4.0-101-generic

linux-image-4.4.0-87-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-87-generic php-cgi php-gd php-mcrypt php-sqlite3 php7.0-cgi php7.0-gd php7.0-mcrypt php7.0-sqlite3 poppler-utils pyro

python-crypto python-ldb python-samba python-talloc python-tdb rpcbind rpm rpm-common rpm2cpio samba-common samba-common-bin samba-libs smbclient x11-common

Use 'sudo apt autoremove' to remove them.

The following packages will be upgraded:

ntopng

1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

1 not fully installed or removed.

Need to get 5,540 kB of archives.

After this operation, 0 B of additional disk space will be used.

Get:1 http://packages.ntop.org/apt-stable/16.04 x64/ ntopng 3.2.180106-3979 [5,540 kB]

Fetched 5,540 kB in 1s (2,869 kB/s)

(Reading database ... 169285 files and directories currently installed.)

Preparing to unpack .../ntopng_3.2.180106-3979_amd64.deb ...

Unpacking ntopng (3.2.180106-3979) over (3.2.180104-3976) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up ntopng (3.2.180106-3979) ...

Rebuilding ld cache...

(Re)Starting ntopng...

Synchronizing state of ntopng.service with SysV init with /lib/systemd/systemd-sysv-install...

Executing /lib/systemd/systemd-sysv-install enable ntopng

Failed to execute operation: File exists

dpkg: error processing package ntopng (--configure):

subprocess installed post-installation script returned error exit status 1

Processing triggers for libc-bin (2.23-0ubuntu9) ...

Errors were encountered while processing:

ntopng

E: Sub-process /usr/bin/dpkg returned an error code (1)

Ntopng seems to be running without issue but I can't seem to install anything else on the system.
Is there a linux expert in the group who can gently point me in the right direction?

Thank you






Jeff Kotch
Sr. Network Analyst
York Region District School Board
Aurora Education Centre
60 Wellington Street West
Aurora, ON L4G 3H2
905.727.0022 x.2235
Re: Problem installing software alongside ntopng [ In reply to ]
Jeff,

It looks like you have systemd installed on ubuntu14 -- at least this is what I can infer from the package you've tried to install omd-1.20.trusty.amd64.deb. Systemd is not officially distributed with ubuntu14 that comes with upstart. Please, make sure to stay with the init system that comes with your distro version.


FWIW, Just tried to reproduce on the ubuntu trusty and everything works smoothly.

root@simone-VirtualBox-1:/home/simone# sudo apt-get install ntopng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
pfring-dkms
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
ntopng
0 upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
Need to get 0 B/5,627 kB of archives.
After this operation, 26.0 MB of additional disk space will be used.
Selecting previously unselected package ntopng.
(Reading database ... 277914 files and directories currently installed.)
Preparing to unpack .../ntopng_3.2.180106-3979_amd64.deb ...
Unpacking ntopng (3.2.180106-3979) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up ntopng (3.2.180106-3979) ...
Rebuilding ld cache...
(Re)Starting ntopng...
* Stopping ntopng * Starting ntopng [ OK ]
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
root@simone-VirtualBox-1:/home/simone# ps aux | grep ntopng
nobody 6802 6.3 5.4 1278436 112008 ? Sl 10:19 0:01 /usr/bin/ntopng /etc/ntopng/ntopng.conf
root 6980 0.0 0.1 15980 2072 pts/4 S+ 10:19 0:00 grep --color=auto ntopng
root@simone-VirtualBox-1:/home/simone# sudo apt-get install --reinstall ntopng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
pfring-dkms
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 68 not upgraded.
Need to get 0 B/5,627 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 278444 files and directories currently installed.)
Preparing to unpack .../ntopng_3.2.180106-3979_amd64.deb ...
Unpacking ntopng (3.2.180106-3979) over (3.2.180106-3979) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up ntopng (3.2.180106-3979) ...
Rebuilding ld cache...
(Re)Starting ntopng...
* Stopping ntopng [ OK ]
* Starting ntopng [ OK ]
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
root@simone-VirtualBox-1:/home/simone# ps aux | grep ntopng
nobody 7242 11.4 5.3 1278436 109860 ? Sl 10:19 0:00 /usr/bin/ntopng /etc/ntopng/ntopng.conf
root 7360 0.0 0.1 15980 2196 pts/4 S+ 10:19 0:00 grep --color=auto ntopng
root@simone-VirtualBox-1:/home/simone# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty



Simone


> On 8 Jan 2018, at 20:26, Kotch, Jeff <Jeff.Kotch@yrdsb.ca> wrote:
>
> I was trying to install omd alongside a working ntopng instance on the same server and ran into the error below
>
> user@jknetmon:~$ sudo dpkg -i omd-1.20.trusty.amd64.deb
>
>
>
> Do you want to continue? [Y/n] y
>
> (Reading database ... 193748 files and directories currently installed.)
>
> Removing omd-1.20 (0.trusty) ...
>
> Setting up ntopng (3.2.180104-3976) ...
>
> Rebuilding ld cache...
>
> (Re)Starting ntopng...
>
> Synchronizing state of ntopng.service with SysV init with /lib/systemd/systemd-sysv-install...
>
> Executing /lib/systemd/systemd-sysv-install enable ntopng
>
> Failed to execute operation: File exists
>
> dpkg: error processing package ntopng (--configure):
>
> subprocess installed post-installation script returned error exit status 1
>
> Processing triggers for libc-bin (2.23-0ubuntu9) ...
>
> Errors were encountered while processing:
>
> ntopng
>
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>