Software Won't Install

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 :frowning:

Update: I think what’s happening is that every time I reboot I reset to a certain point each time, I tried dietpi-update and although it updated, it reverted back to the previous version on reboot. Also tried editing /etc/www/index.html and all changes lost on reboot :frowning:

Any ideas?

Maybe the SD card file system got corrupted when I manually reset the Pi?

Hi Tim,

The only RAM mounts are /DietPi /var/log and /tmp. So for other directories that “reset” data, is very strange.

Could you please send me a bug report. It will allow me to check your installation and mounts. Please run the following:

dietpi-bugreport

No need to fill out the document, simply reply with the unique reference code.

Hi Fourdee,

Yes indeed it was very strange. I ended up putting it down to a corrupt SD card after doing some more research. I needed to get back up and running quickly so reinstalled on a different SD and it is now working fine. But it is unfortunate, I would have liked to figure out what the problem was, it made no sense, I just couldn’t permenantly write anywhere :thinking: