je tiens à noter que c'est sur un raspberry pi 3 que j'ai installé ubuntu 18.04 et j'ai lui ai donné une adresse ip fixe dans mon réseau afin de pouvoir accéder à lui à distance.
voici les sorties de mes commandes:
ma source.list lorque je fais:
sudo vi /etc/apt/source.list
deb-src http://cm.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://cm.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://cm.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://cm.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://cm.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://download.webmin.com/download/repository sarge contrib
deb http://ports.ubuntu.com/ubuntu-ports/ bionic universe
~
comme dit précedemment, voici concrètement les sorties de mes commandes:
sudo apt-get install software-properties-common wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version (1.19.4-1ubuntu2.2).
software-properties-common is already the newest version (0.96.24.32.14).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
ubuntu@ubuntu:~$ wget https://packages.ntop.org/apt-stable/18.04/all/apt-ntop-stable.deb
--2020-11-24 12:48:53-- https://packages.ntop.org/apt-stable/18.04/all/apt-ntop-stable.deb
Resolving packages.ntop.org (packages.ntop.org)... 167.99.215.164, 2a03:b0c0:2:d0::d27:3001
Connecting to packages.ntop.org (packages.ntop.org)|167.99.215.164|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6676 (6.5K) [application/x-debian-package]
Saving to: ‘apt-ntop-stable.deb.2’
apt-ntop-stable.deb.2 100%[=====================================================================================>] 6.52K 3.59KB/s in 1.8s
2020-11-24 12:48:56 (3.59 KB/s) - ‘apt-ntop-stable.deb.2’ saved [6676/6676]
sudo apt install ./apt-ntop-stable.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apt-ntop-stable' instead of './apt-ntop-stable.deb'
The following NEW packages will be installed:
apt-ntop-stable
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
After this operation, 15.4 kB of additional disk space will be used.
Get:1 /home/ubuntu/apt-ntop-stable.deb apt-ntop-stable all 2.8-4 [6676 B]
Selecting previously unselected package apt-ntop-stable.
(Reading database ... 170430 files and directories currently installed.)
Preparing to unpack .../ubuntu/apt-ntop-stable.deb ...
Unpacking apt-ntop-stable (2.8-4) ...
Setting up apt-ntop-stable (2.8-4) ...
Adding ntop key to apt keyring
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package apt-ntop-stable)
OK
sudo apt-get update
Ign:1 http://download.webmin.com/download/repository sarge InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:3 http://cm.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://cm.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://download.webmin.com/download/repository sarge Release
Get:6 https://packages.ntop.org/apt-stable/18.04 x64/ InRelease [2153 B]
Get:7 https://packages.ntop.org/apt-stable/18.04 all/ InRelease [2153 B]
Get:8 http://cm.archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Get:10 http://cm.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:11 https://packages.ntop.org/apt-stable/18.04 x64/ Packages [3981 B]
Get:12 http://cm.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:13 https://packages.ntop.org/apt-stable/18.04 all/ Packages [3067 B]
Fetched 505 kB in 6s (87.7 kB/s)
Reading package lists... Done
je vérifie ensuite si le paquet apt-ntop-stable s'est correctement installé:
dpkg -l apt-ntop-stable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-=======================-=======================-=============================================================================
ii apt-ntop-stable 2.8-4 all ntop stable apt package repository
cat /etc/apt/sources.list.d/ntop-stable.list
deb https://packages.ntop.org/apt-stable/18.04/ x64/
deb https://packages.ntop.org/apt-stable/18.04/ all/
vous contatez bien avec moi que le paquet a installé un dépôt via un fichier nommé /etc/apt/sources.list.d/ntop-stable.list qui contient ces deux lignes:
deb https://packages.ntop.org/apt-stable/18.04/ x64/
deb https://packages.ntop.org/apt-stable/18.04/ all/
Mais quand je tape cette commande
sudo apt-get install pfring-dkms nprobe ntopng n2disk cento
j'ai encore ce résultat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nprobe
E: Unable to locate package n2disk
E: Unable to locate package cento
ylag a écritBonjour,
Avant de tenter l'installation du paquet
apt-ntop-stable.deb, vérifie dans «
Logiciels & Mises à jour», onglet «Logiciels Ubuntu» que les quatre cases:
main,
universe,
restricted et
multiverse soient bien cochées.
Refaire ensuite
sudo apt update.
Vérifie ensuite si le paquet
apt-ntop-stable s'est correctement installé:
dpkg -l apt-ntop-stable
...sinon il te faudra refaire la procédure d'installation.
Le paquet devrait installer un dépôt via un fichier nommé
/etc/apt/sources.list.d/ntop-stable.list qui devrait contenir ces deux lignes:
deb https://packages.ntop.org/apt-stable/18.04/ x64/
deb https://packages.ntop.org/apt-stable/18.04/ all/
...si c'est le cas, la commande
sudo apt-get install pfring-dkms nprobe ntopng n2disk cento devrait passer sans encombres, après avoir repassé
sudo apt update ?
Je viens de tenter l'installation sur une Debian Buster, et ça s'est passé correctement; les cinq paquets sont disponibles:
yvan@yvan-maison:~/Téléchargements$ apt policy pfring-dkms nprobe ntopng n2disk cento
pfring-dkms:
Installé : (aucun)
Candidat : 7.8.0
Table de version :
7.8.0 500
500 https://packages.ntop.org/apt-stable/buster all/ Packages
nprobe:
Installé : (aucun)
Candidat : 9.2.201120-6995
Table de version :
9.2.201120-6995 500
500 https://packages.ntop.org/apt-stable/buster x64/ Packages
ntopng:
Installé : (aucun)
Candidat : 4.2.201120-12281
Table de version :
4.2.201120-12281 500
500 https://packages.ntop.org/apt-stable/buster x64/ Packages
3.8+dfsg1-2.1 500
500 http://deb.debian.org/debian buster/main amd64 Packages
n2disk:
Installé : (aucun)
Candidat : 3.6.201120-5252
Table de version :
3.6.201120-5252 500
500 https://packages.ntop.org/apt-stable/buster x64/ Packages
cento:
Installé : (aucun)
Candidat : 1.12.201120-609
Table de version :
1.12.201120-609 500
500 https://packages.ntop.org/apt-stable/buster x64/ Packages
yvan@yvan-maison:~/Téléchargements$
Ajout:
Si pas déjà fait, voir la doc
ntop
A+