I tried to install Fail2Ban and received an error that I unfortunately didn’t capture, but was I think a lot like the apt-get errors in this post http://fuzon.co.uk/phpbb/viewtopic.php?f=11&t=246&p=1026#p1023
Fail2Ban seemed to install anyway though and reboot. I then couldn’t login via SSH repeatedly getting ‘Access Denied’. I thought maybe Fail2Ban had blocked my IP or something strange like that. I then manually reset my Pi and everything was back to normal, but Fail2Ban wasn’t installed.
I then tried to reinstall Fail2Ban and got this error:
DietPi-Software
─────────────────────────────────────────────────────
Mode: Update & upgrade APT
Please wait...
[Info] Waiting for apt-get update to finish: Please wait...
[Ok] Completed
Hit http://mirrordirector.raspbian.org jessie InRelease
Ign http://download.owncloud.org InRelease
Hit http://download.owncloud.org Release.gpg
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://download.owncloud.org Release
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Hit http://download.owncloud.org Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://download.owncloud.org Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://download.owncloud.org Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
[Info] Running apt simulation to check for errors, please wait...
[Failed] Apt simulation | An issue has occured
[Info] The apt cache may be corrupt, or you have held broken pacakages. DietPi-Software will now exit.
[Info] Please try:
[Info] - Fixing apt package errors with 'apt-get install -f'
[Info] - Changing '/etc/apt/sources.list' to another repo mirror.
[Info] - Clear and refresh apt '/DietPi/dietpi/dietpi-apt-get_update 2'
I then ran the following commands:
dpkg --configure -a
apt-get install -f
/DietPi/dietpi/dietpi-apt-get_update 2
Then reinstalled Fail2Ban (dietpi-software) and the installation went normally, except that after reboot, there is no sign of Fail2Ban at all, still.
Attempting to reinstall again I receive the same error as pasted above and the cycle repeats.
I tried installing using apt-get install fail2ban and exactly the same problem. It is also happening with other software, I tried installing Pi-Hole and the same problem occurred. Tested using Virtual Box and it worked fine.
Any help greatly appreciated, as I have no idea what the problem might be