ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.31k stars 658 forks source link

Unrequested packages installed #8813

Closed marcoeg closed 2 weeks ago

marcoeg commented 2 weeks ago

Environment:

What happened: A apt-get install ntopng command installed unrequested packages. It is unclear if they are necessary dependencies. Probably not.

This was an upgrade from stable ntopng to dev repo.

How did you reproduce it?

Debug Information:

marco@nucbox:~/Downloads$ sudo apt-get install ntopng
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  mailcap
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  cento libhighwayhash0t64 n2disk ndpi nprobe ntop-license ntopng-data pfring pfring-dkms
The following NEW packages will be installed:
  libhighwayhash0t64
The following packages will be upgraded:
  cento n2disk ndpi nprobe ntop-license ntopng ntopng-data pfring pfring-dkms
9 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 76.8 MB of archives.
After this operation, 1,836 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 libhighwayhash0t64 amd64 0~git20200803.9490b14-4.1build1 [46.0 kB]
Get:2 https://packages.ntop.org/apt/24.04 all/ pfring-dkms 8.9.0.9498 [71.1 kB]               
Get:3 https://packages.ntop.org/apt/24.04 x64/ ntopng 6.3.241111-24723 [10.1 MB]
Get:4 https://packages.ntop.org/apt/24.04 all/ ntopng-data 6.3.241111 [53.0 MB]
Get:5 https://packages.ntop.org/apt/24.04 x64/ cento 2.1.241111-969 [1,761 kB]
Get:6 https://packages.ntop.org/apt/24.04 x64/ nprobe 10.7.241111-8503 [3,728 kB]
Get:7 https://packages.ntop.org/apt/24.04 x64/ n2disk 3.7.241111-5533 [1,766 kB]
Get:8 https://packages.ntop.org/apt/24.04 x64/ pfring 8.9.0-9498 [4,623 kB]
Get:9 https://packages.ntop.org/apt/24.04 x64/ ndpi 4.11.0-5076 [1,043 kB]                                                                                                                            
Get:10 https://packages.ntop.org/apt/24.04 x64/ ntop-license 1.0-590 [617 kB]                                                                                                                         
Fetched 76.8 MB in 6s (12.4 MB/s)                                                                                                                                                                     
Preconfiguring packages ...
(Reading database ... 213104 files and directories currently installed.)
Preparing to unpack .../0-pfring-dkms_8.9.0.9498_all.deb ...
Module pfring-8.8.0.9467 for kernel 6.8.0-47-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

pf_ring.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-47-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Module pfring-8.8.0.9467 for kernel 6.8.0-48-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

pf_ring.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-48-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module pfring-8.8.0.9467 completely from the DKMS tree.
Unpacking pfring-dkms (8.9.0.9498) over (8.8.0.9467) ...
Preparing to unpack .../1-ntopng_6.3.241111-24723_amd64.deb ...
Stopping ntopng services...
Unpacking ntopng (6.3.241111-24723) over (6.2.241025-24629) ...
Preparing to unpack .../2-ntopng-data_6.3.241111_all.deb ...
Unpacking ntopng-data (6.3.241111) over (6.2.241025) ...
Preparing to unpack .../3-cento_2.1.241111-969_amd64.deb ...
Unpacking cento (2.1.241111-969) over (2.0.241025-962) ...
Preparing to unpack .../4-nprobe_10.7.241111-8503_amd64.deb ...
Unpacking nprobe (10.7.241111-8503) over (10.6.241025-8427) ...
Preparing to unpack .../5-n2disk_3.7.241111-5533_amd64.deb ...
Unpacking n2disk (3.7.241111-5533) over (3.6.241025-5312) ...
Preparing to unpack .../6-pfring_8.9.0-9498_amd64.deb ...
Unpacking pfring (8.9.0-9498) over (8.8.0-9467) ...
Preparing to unpack .../7-ndpi_4.11.0-5076_amd64.deb ...
Unpacking ndpi (4.11.0-5076) over (4.10.0-5047) ...
Selecting previously unselected package libhighwayhash0t64:amd64.
Preparing to unpack .../8-libhighwayhash0t64_0~git20200803.9490b14-4.1build1_amd64.deb ...
Unpacking libhighwayhash0t64:amd64 (0~git20200803.9490b14-4.1build1) ...
Preparing to unpack .../9-ntop-license_1.0-590_amd64.deb ...
Unpacking ntop-license (1.0-590) over (1.0-588) ...
Setting up ntop-license (1.0-590) ...
Setting up ntopng-data (6.3.241111) ...
Setting up ndpi (4.11.0-5076) ...
Rebuilding ld cache...
Setting up libhighwayhash0t64:amd64 (0~git20200803.9490b14-4.1build1) ...
Setting up pfring (8.9.0-9498) ...
Setting up ntopng (6.3.241111-24723) ...

Configuration file '/etc/ntopng/ntopng.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** ntopng.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ntopng/ntopng.conf ...
usermod: no changes
Rebuilding ld cache...
(Re)Starting ntopng...

NOTE

ntopng Community does not require a license.
ntopng Pro/Enterprise licenses are perpetual and include 1 year maintenance/updates:
you can use the software even after maintenance is expired, however updating it after
1 year would prevent ntopng from running. If you have automatic updates enabled, and
maintenance is expired, it is recommended to put the package updates on hold with:

apt-mark hold ntopng

Automatic updates can be enabled again with:

apt-mark unhold ntopng

Setting up cento (2.1.241111-969) ...
usermod: no changes
Making the /var/log/cento directory...
(Re)Starting cento...
Glob pattern passed to check, but globs are not supported for this.
Invalid unit name "cento@*" escaped as "cento@\x2a".
cento@* is a disabled or a static unit not running, not starting it.

NOTE

cento licenses are perpetual and include 1 year maintenance/updates:
you can use the software even after maintenance is expired, however updating it after
1 year would prevent the applicaiton from running. If you have automatic updates enabled,
and maintenance is expired, it is recommended to put the package updates on hold with:

apt-mark hold cento

Automatic updates can be enabled again with:

apt-mark unhold cento

Setting up nprobe (10.7.241111-8503) ...
usermod: no changes
Rebuilding ld cache...
Making the /var/log/nprobe directory...
(Re)Starting nprobe services...

NOTE

nprobe licenses are perpetual and include 1 year maintenance/updates:
you can use the software even after maintenance is expired, however updating it after
1 year would prevent the applicaiton from running. If you have automatic updates enabled,
and maintenance is expired, it is recommended to put the package updates on hold with:

apt-mark hold nprobe

Automatic updates can be enabled again with:

apt-mark unhold nprobe

Setting up pfring-dkms (8.9.0.9498) ...
Loading new pfring-8.9.0.9498 DKMS files...
Building for 6.8.0-47-generic 6.8.0-48-generic
Building for architecture x86_64
Building initial module for 6.8.0-47-generic
Done.

pf_ring.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-47-generic/updates/dkms/
depmod...
Building initial module for 6.8.0-48-generic
Done.

pf_ring.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-48-generic/updates/dkms/
depmod...
cluster is a disabled or a static unit not running, not starting it.
Setting up n2disk (3.7.241111-5533) ...
Rebuilding ld cache...
(Re)Starting n2disk...

NOTE

n2disk licenses are perpetual and include 1 year maintenance/updates:
you can use the software even after maintenance is expired, however updating it after
1 year would prevent the applicaiton from running. If you have automatic updates enabled,
and maintenance is expired, it is recommended to put the package updates on hold with:

apt-mark hold n2disk

Automatic updates can be enabled again with:

apt-mark unhold n2disk

Processing triggers for rsyslog (8.2312.0-3ubuntu9) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
lucaderi commented 2 weeks ago

Is it possible that you have left some old stable package that is pf_ring, etc., dependent and has installed the dependencies? I suggest to see this https://www.ntop.org/faq/how-can-i-switch-from-stable-to-dev-builds-or-vice-versa/ and start over

cardigliano commented 2 weeks ago

It seems those packages were already installed and are just upgraded. Closing this. Please reopen if that's not the case. Thank you.