Hi,
I just got Ubuntu 20 and set it up with cPanel. I found one issue with package dependencies when trying to install logwatch:
It looks like a bug. Any solution to this?
Please help.
Thanks
I just got Ubuntu 20 and set it up with cPanel. I found one issue with package dependencies when trying to install logwatch:
root@server:~# apt install logwatch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
squashfs-tools
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
postfix
Suggested packages:
libsys-cpu-perl libsys-meminfo-perl procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite sasl2-bin | dovecot-common resolvconf postfix-cdb mail-reader ufw postfix-doc
The following NEW packages will be installed:
logwatch postfix
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 366 kB/1,567 kB of archives.
After this operation, 6,887 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 logwatch all 7.5.2-1ubuntu1.3 [366 kB]
Fetched 366 kB in 0s (1,073 kB/s)
Preconfiguring packages ...
(Reading database ... 212030 files and directories currently installed.)
Preparing to unpack .../postfix_3.4.13-0ubuntu1.2_amd64.deb ...
Unpacking postfix (3.4.13-0ubuntu1.2) ...
dpkg: error processing archive /var/cache/apt/archives/postfix_3.4.13-0ubuntu1.2_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/sendmail', which is also in package cpanel-exim 4.95-1.cp1198
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package logwatch.
Preparing to unpack .../logwatch_7.5.2-1ubuntu1.3_all.deb ...
Unpacking logwatch (7.5.2-1ubuntu1.3) ...
Errors were encountered while processing:
/var/cache/apt/archives/postfix_3.4.13-0ubuntu1.2_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server:~#
It looks like a bug. Any solution to this?
Please help.
Thanks