Hello, the error messages I got when trying to go to the previous version are the one shared in my original message.
I tried removing the ib_logfile files that you asked and also some other files created because of the switch to mariadb:
/var/lib/mysql/ib_logfile0
/var/lib/mysql/ib_logfile1
/var/lib/mysql/debian-10.3.flag
/etc/mysql/FROZEN
And here are the error messages I can see in /var/log/mysql/error.log after doing apt remove mysql-server, apt autoremove and reinstalling with apt install mysql-server:
Query (0): 2019-10-20T18:12:46.572904Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-20T18:12:46.574301Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.27-0ubuntu0.19.04.1) starting as process 1105 ...
2019-10-20T18:12:46.583607Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-10-20T18:12:46.583660Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-10-20T18:12:46.583673Z 0 [Note] InnoDB: Uses event mutexes
2019-10-20T18:12:46.583685Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-10-20T18:12:46.583695Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-10-20T18:12:46.583706Z 0 [Note] InnoDB: Using Linux native AIO
2019-10-20T18:12:46.584031Z 0 [Note] InnoDB: Number of pools: 1
2019-10-20T18:12:46.584134Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-10-20T18:12:46.592222Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-10-20T18:12:46.607998Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-10-20T18:12:46.619710Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-10-20T18:12:46.640030Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-10-20T18:12:46.641175Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 3046924
2019-10-20T18:12:46.641194Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 3046933
2019-10-20T18:12:46.641203Z 0 [Note] InnoDB: Database was not shutdown normally!
2019-10-20T18:12:46.641211Z 0 [Note] InnoDB: Starting crash recovery.
2019-10-20T18:12:46.766437Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-10-20T18:12:46.766468Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-10-20T18:12:46.766539Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-10-20T18:12:46.838038Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-10-20T18:12:46.839313Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-10-20T18:12:46.839340Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-10-20T18:12:46.839768Z 0 [Note] InnoDB: Waiting for purge to start
18:12:46 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 76388 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f429c000b20
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f42a77fddc0 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xed086b]
/usr/sbin/mysqld(handle_fatal_signal+0x453)[0x7bbc63]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x13f40)[0x7f42ccd10f40]
/usr/sbin/mysqld(_Z28trx_undo_rec_get_partial_rowPKhP12dict_index_tPP8dtuple_tmP16mem_block_info_t+0x1c4)[0x106e7a4]
/usr/sbin/mysqld(_Z14row_purge_stepP9que_thr_t+0xb48)[0x100d128]
/usr/sbin/mysqld(_Z15que_run_threadsP9que_thr_t+0xc54)[0xfbe164]
/usr/sbin/mysqld(_Z9trx_purgemmb+0x7ab)[0x106ae9b]
/usr/sbin/mysqld(srv_purge_coordinator_thread+0xad5)[0x1041e85]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9182)[0x7f42ccd06182]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f42cc8e4b1f]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.