我试图在Ubuntu18.04上安装NtopNg。进入下面的错误。
apt-get install pfring-dkms nprobe ntopng n2disk cento -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
cento is already the newest version (1.11.191119-528).
n2disk is already the newest version (3.3.191119-5173).
nprobe is already the newest version (8.7.191119-6669).
pfring-dkms is already the newest version (7.5.0).
The following package was automatically installed and is no longer required:
libndpi5
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
ntopng
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/9,043 kB of archives.
After this operation, 47.8 MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 74204 files and directories currently installed.)
Preparing to unpack .../ntopng_3.9.191119-8152_amd64.deb ...
Unpacking ntopng (3.9.191119-8152) ...
dpkg: error processing archive /var/cache/apt/archives/ntopng_3.9.191119-8152_amd64.deb (--unpack):
trying to overwrite '/usr/share/ntopng/httpdocs/css/bootstrap-datetimepicker.css', which is also in package ntopng-data 3.2+dfsg1-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/ntopng_3.9.191119-8152_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2019-11-19 16:00:00
运行sudo apt remove ntopng-data,然后重试。您有冲突的包试图写入同一个文件,这是一件很糟糕的事情。
https://askubuntu.com/questions/1190071
复制相似问题