0

When I try to install apache2, I get:

$ sudo apt install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-data apache2-utils
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 48 not upgraded.
1 not fully installed or removed.
Need to get 339 kB of archives.
After this operation, 1,760 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2-utils amd64 2.4.29-1ubuntu4.11 [83.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2-data all 2.4.29-1ubuntu4.11 [160 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2 amd64 2.4.29-1ubuntu4.11 [95.1 kB]
Fetched 339 kB in 8s (40.2 kB/s)                                                                    
W: APT had planned for dpkg to do more than it reported back (0 vs 19).
   Affected packages: apache2-data:amd64 apache2-utils:amd64 apache2:amd64 phpmyadmin:amd64

i think this is the problem

W: APT had planned for dpkg to do more than it reported back (0 vs 19).
   Affected packages: apache2-data:amd64 apache2-utils:amd64 apache2:amd64 phpmyadmin:amd64
  • What is the output of apt list --installed | egrep unattended-upgrades? What do you get after running sudo dpkg --configure -a? – Kulfy Nov 9 '19 at 10:17