I’ve tried the instructions above, but I believe I broke something. Would you mind checking where I made a mistake?
root@klimek:~# sudo yunohost tools migrations migrate --accept-disclaimer
Warning: Running migration 3 migrate_to_stretch...
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://repo.yunohost.org jessie InRelease
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://repo.yunohost.org jessie/stable armhf Packages
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Ign http://repo.yunohost.org jessie/stable Translation-en
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists...
Error: Migration 3 migrate_to_stretch has failed with exception Your system is not fully up to date. Please perform a regular upgrade before running the migration to stretch., aborting
root@klimek:~# wget http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb
converted 'http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb' (ANSI_X3.4-1968) -> 'http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb' (UTF-8)
--2018-12-07 19:22:32-- http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb
Resolving ftp.fr.debian.org (ftp.fr.debian.org)... 2a01:e0c:1:1598::2, 212.27.32.66
Connecting to ftp.fr.debian.org (ftp.fr.debian.org)|2a01:e0c:1:1598::2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 287540 (281K) [application/x-debian-package]
Saving to: 'fail2ban_0.9.6-2_all.deb'
fail2ban_0.9.6-2_al 100%[=====================>] 280.80K --.-KB/s in 0.1s
2018-12-07 19:22:33 (2.17 MB/s) - 'fail2ban_0.9.6-2_all.deb' saved [287540/287540]
root@klimek:~# dpkg -i --force-confmiss fail2ban_0.9.6-2_all.deb
(Reading database ... 46206 files and directories currently installed.)
Preparing to unpack fail2ban_0.9.6-2_all.deb ...
Unpacking fail2ban (0.9.6-2) over (0.8.13-1) ...
Setting up fail2ban (0.9.6-2) ...
Installing new version of config file /etc/bash_completion.d/fail2ban ...
Installing new version of config file /etc/fail2ban/action.d/badips.conf ...
Configuration file `/etc/fail2ban/action.d/badips.py', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/blocklist_de.conf ...
Installing new version of config file /etc/fail2ban/action.d/bsd-ipfw.conf ...
Configuration file `/etc/fail2ban/action.d/cloudflare.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/complain.conf ...
Configuration file `/etc/fail2ban/action.d/firewallcmd-allports.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/firewallcmd-ipset.conf ...
Configuration file `/etc/fail2ban/action.d/firewallcmd-multiport.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/firewallcmd-new.conf ...
Configuration file `/etc/fail2ban/action.d/firewallcmd-rich-logging.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/firewallcmd-rich-rules.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/iptables-allports.conf ...
Configuration file `/etc/fail2ban/action.d/iptables-common.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/iptables-ipset-proto4.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-ipset-proto6-allports.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-ipset-proto6.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-multiport-log.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-multiport.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-new.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables-xt_recent-echo.conf ...
Installing new version of config file /etc/fail2ban/action.d/iptables.conf ...
Configuration file `/etc/fail2ban/action.d/mail-whois-common.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/mail-whois-lines.conf ...
Installing new version of config file /etc/fail2ban/action.d/mail-whois.conf ...
Installing new version of config file /etc/fail2ban/action.d/mynetwatchman.conf ...
Configuration file `/etc/fail2ban/action.d/nftables-allports.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/nftables-common.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/nftables-multiport.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/npf.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/nsupdate.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/route.conf ...
Installing new version of config file /etc/fail2ban/action.d/sendmail-common.conf ...
Configuration file `/etc/fail2ban/action.d/sendmail-geoip-lines.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/sendmail-whois-ipjailmatches.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/sendmail-whois-ipmatches.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/sendmail-whois-lines.conf ...
Configuration file `/etc/fail2ban/action.d/sendmail-whois-matches.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/sendmail-whois.conf ...
Installing new version of config file /etc/fail2ban/action.d/sendmail.conf ...
Configuration file `/etc/fail2ban/action.d/shorewall-ipset-proto6.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/shorewall.conf ...
Configuration file `/etc/fail2ban/action.d/smtp.py', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/action.d/symbiosis-blacklist-allports.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/action.d/ufw.conf ...
Configuration file `/etc/fail2ban/action.d/xarf-login-attack.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/fail2ban.conf ...
Installing new version of config file /etc/fail2ban/filter.d/apache-auth.conf ...
Installing new version of config file /etc/fail2ban/filter.d/apache-badbots.conf ...
Configuration file `/etc/fail2ban/filter.d/apache-botsearch.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/apache-common.conf ...
Configuration file `/etc/fail2ban/filter.d/apache-fakegooglebot.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/apache-modsecurity.conf ...
Installing new version of config file /etc/fail2ban/filter.d/apache-noscript.conf ...
Configuration file `/etc/fail2ban/filter.d/apache-pass.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/apache-shellshock.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/assp.conf ...
Installing new version of config file /etc/fail2ban/filter.d/asterisk.conf ...
Configuration file `/etc/fail2ban/filter.d/botsearch-common.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/common.conf ...
Configuration file `/etc/fail2ban/filter.d/counter-strike.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/courier-auth.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/courier-smtp.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/cyrus-imap.conf ...
Configuration file `/etc/fail2ban/filter.d/directadmin.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/dovecot.conf ...
Configuration file `/etc/fail2ban/filter.d/drupal-auth.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/ejabberd-auth.conf ...
Installing new version of config file /etc/fail2ban/filter.d/exim-common.conf ...
Installing new version of config file /etc/fail2ban/filter.d/exim-spam.conf ...
Installing new version of config file /etc/fail2ban/filter.d/exim.conf ...
Installing new version of config file /etc/fail2ban/filter.d/freeswitch.conf ...
Configuration file `/etc/fail2ban/filter.d/froxlor-auth.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/groupoffice.conf ...
Configuration file `/etc/fail2ban/filter.d/guacamole.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/haproxy-http-auth.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/kerio.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/mongodb-auth.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/monit.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/murmur.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/mysqld-auth.conf ...
Installing new version of config file /etc/fail2ban/filter.d/named-refused.conf ...
Configuration file `/etc/fail2ban/filter.d/nginx-botsearch.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/nginx-http-auth.conf ...
Configuration file `/etc/fail2ban/filter.d/nginx-limit-req.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/nsd.conf ...
Configuration file `/etc/fail2ban/filter.d/openhab.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/oracleims.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/pam-generic.conf ...
Configuration file `/etc/fail2ban/filter.d/portsentry.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/postfix-rbl.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/postfix-sasl.conf ...
Installing new version of config file /etc/fail2ban/filter.d/postfix.conf ...
Installing new version of config file /etc/fail2ban/filter.d/proftpd.conf ...
Installing new version of config file /etc/fail2ban/filter.d/pure-ftpd.conf ...
Installing new version of config file /etc/fail2ban/filter.d/recidive.conf ...
Installing new version of config file /etc/fail2ban/filter.d/roundcube-auth.conf ...
Configuration file `/etc/fail2ban/filter.d/screensharingd.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/sendmail-reject.conf ...
Installing new version of config file /etc/fail2ban/filter.d/sieve.conf ...
Configuration file `/etc/fail2ban/filter.d/slapd.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/solid-pop3d.conf ...
Installing new version of config file /etc/fail2ban/filter.d/squid.conf ...
Configuration file `/etc/fail2ban/filter.d/squirrelmail.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/sshd-ddos.conf ...
Installing new version of config file /etc/fail2ban/filter.d/sshd.conf ...
Configuration file `/etc/fail2ban/filter.d/stunnel.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/filter.d/tine20.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/fail2ban/filter.d/vsftpd.conf ...
Installing new version of config file /etc/fail2ban/filter.d/wuftpd.conf ...
Configuration file '/etc/fail2ban/jail.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** jail.conf (Y/I/N/O/D/Z) [default=N] ?
Configuration file `/etc/fail2ban/jail.d/defaults-debian.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/paths-common.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/paths-debian.conf', does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/fail2ban/paths-opensuse.conf', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/init.d/fail2ban ...
Configuration file `/etc/monit/monitrc.d/fail2ban', does not exist on system.
Installing new config file as you requested.
Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript fail2ban, action "start" failed.
dpkg: error processing package fail2ban (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u8) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Errors were encountered while processing:
fail2ban
root@klimek:~# dpkg -i --force-confmiss fail2ban_0.9.6-2_all.deb
(Reading database ... 46426 files and directories currently installed.)
Preparing to unpack fail2ban_0.9.6-2_all.deb ...
Unpacking fail2ban (0.9.6-2) over (0.9.6-2) ...
Setting up fail2ban (0.9.6-2) ...
^C
root@klimek:~# yunohost service status fail2ban yunohost-firewall
fail2ban:
active: failed
active_at:
human: 1970-01-01 00:00:00
timestamp: 0
description: protects against bruteforce and other kind of attacks from the Internet
loaded: enabled
service_file_path: /lib/systemd/system/fail2ban.service
status: failed
yunohost-firewall:
active: active
active_at:
human: 2018-07-30 13:17:51
timestamp: 1532956671015952
description: manages open and close connexion ports to services
loaded: enabled
service_file_path: /lib/systemd/system/yunohost-firewall.service
status: exited
root@klimek:~# dpkg -i --force-confmiss fail2ban_0.9.6-2_all.deb
(Reading database ... 46426 files and directories currently installed.)
Preparing to unpack fail2ban_0.9.6-2_all.deb ...
Unpacking fail2ban (0.9.6-2) over (0.9.6-2) ...
Setting up fail2ban (0.9.6-2) ...
Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript fail2ban, action "start" failed.
dpkg: error processing package fail2ban (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u8) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Errors were encountered while processing:
fail2ban
root@klimek:~# wget http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb
converted 'http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb' (ANSI_X3.4-1968) -> 'http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb' (UTF-8)
--2018-12-07 19:27:02-- http://ftp.fr.debian.org/debian/pool/main/f/fail2ban/fail2ban_0.9.6-2_all.deb
Resolving ftp.fr.debian.org (ftp.fr.debian.org)... 2a01:e0c:1:1598::2, 212.27.32.66
Connecting to ftp.fr.debian.org (ftp.fr.debian.org)|2a01:e0c:1:1598::2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 287540 (281K) [application/x-debian-package]
Saving to: 'fail2ban_0.9.6-2_all.deb.1'
fail2ban_0.9.6-2_al 100%[=====================>] 280.80K 1.66MB/s in 0.2s
2018-12-07 19:27:02 (1.66 MB/s) - 'fail2ban_0.9.6-2_all.deb.1' saved [287540/287540]
root@klimek:~# dpkg -i --force-confmiss fail2ban_0.9.6-2_all.deb
(Reading database ... 46426 files and directories currently installed.)
Preparing to unpack fail2ban_0.9.6-2_all.deb ...
Unpacking fail2ban (0.9.6-2) over (0.9.6-2) ...
Setting up fail2ban (0.9.6-2) ...
Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript fail2ban, action "start" failed.
dpkg: error processing package fail2ban (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u8) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Errors were encountered while processing:
fail2ban
root@klimek:~# mv /etc/fail2ban /etc/fail2ban.old2
root@klimek:~# dpkg -i --force-confmiss /var/cache/apt/archives/fail2ban*.deb
dpkg: error processing archive /var/cache/apt/archives/fail2ban*.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/fail2ban*.deb
root@klimek:~# yunohost service status fail2ban
active: failed
active_at:
human: 1970-01-01 00:00:00
timestamp: 0
description: protects against bruteforce and other kind of attacks from the Internet
loaded: enabled
service_file_path: /lib/systemd/system/fail2ban.service
status: failed
root@klimek:~# mv /etc/fail2ban.old2 /etc/fail2ban
root@klimek:~# yunohost service status fail2ban
active: failed
active_at:
human: 1970-01-01 00:00:00
timestamp: 0
description: protects against bruteforce and other kind of attacks from the Internet
loaded: enabled
service_file_path: /lib/systemd/system/fail2ban.service
status: failed
root@klimek:~# yunohost tools update
Success! The application list yunohost has been fetched
Success! The application list community has been fetched
apps:
packages:
root@klimek:~# yunohost tools upgrade --ignore-apps
Success! The system has been upgraded
root@klimek:~# yunohost service status fail2ban
active: failed
active_at:
human: 1970-01-01 00:00:00
timestamp: 0
description: protects against bruteforce and other kind of attacks from the Internet
loaded: enabled
service_file_path: /lib/systemd/system/fail2ban.service
status: failed
root@klimek:~#