For future reference, when posting code or bash output, put in 3 ‘backticks’ (found at the top left of the keyboard normally) on a line on their own, then the code, then 3 more backticks on a line following the code.

    ```
   put your code here
    ```

If it is something like php you can add a language identifier that after the first 3 backticks so ```php

Here is the first problem. This means your update script has not been updated.

I would suggest taking a backup first.

Fix the rc.local_jessieminimal issue and update.

However, this is a Jessie image, 2 releases behind the current Buster and out of support.

I strongly suggest you take a backup, get a new SD card, and import the backup.

There are system changes that mean Jessie based systems are not really supportable.