Failure to install various softwares , Same message appears

Hello, I’m relatively new to the Linux world. When I first intalled the new Mint syatem on my laptop I had an issue with getting the mouse pad working. Did the research and fixed the problem. Whilst doing this I installed various programs recommended on forums to get it working. I’m not sure if some of those programs might now be blocking certain gaming emulators. I tried to run Minecraft and it won’t work. And whenever I try to install something new I get this same message:

installArchives() failed: (Reading database …
(Reading database … 5%%
(Reading database … 10%%
(Reading database … 15%%
(Reading database … 20%%
(Reading database … 25%%
(Reading database … 30%%
(Reading database … 35%%
(Reading database … 40%%
(Reading database … 45%%
(Reading database … 50%%
(Reading database … 55%%
(Reading database … 60%%
(Reading database … 65%%
(Reading database … 70%%
(Reading database … 75%%
(Reading database … 80%%
(Reading database … 85%%
(Reading database … 90%%
(Reading database … 95%%
(Reading database … 100%%
(Reading database … 289951 files and directories currently installed.)
Removing mednafen (0.9.48+dfsg-1) …
Processing triggers for mime-support (3.60ubuntu1) …
Processing triggers for desktop-file-utils (0.23+linuxmint4) …
Setting up minecraft-installer (1.8~xenial1.0) …
–2019-04-09 18:05:32-- http://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
Resolving s3.amazonaws.com (s3.amazonaws.com)… 52.216.179.5
Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.179.5|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 280212 (274K) [application/java-archive]
Saving to: /tmp/minecHhnV4g.jar

/tmp/minecHhnV4g.ja 0%%[ ] 0 --.-KB/s
/tmp/minecHhnV4g.ja 26%%[====> ] 73.76K 362KB/s
/tmp/minecHhnV4g.ja 89%%[================> ] 244.76K 490KB/s
/tmp/minecHhnV4g.ja 100%%[===================>] 273.64K 532KB/s in 0.5s

2019-04-09 18:05:32 (532 KB/s) - /tmp/minecHhnV4g.jar saved [280212/280212]

URL transformed to HTTPS due to an HSTS policy
–2019-04-09 18:05:32-- https://www.minecraft.net/android-icon-192x192.png
Resolving www.minecraft.net (www.minecraft.net)… 152.199.20.92, 2606:2800:233:18f9:1142:8f:20aa:11e2
Connecting to www.minecraft.net (www.minecraft.net)|152.199.20.92|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2019-04-09 18:05:33 ERROR 404: Not Found.

dpkg: error processing package minecraft-installer (–configure):
installed minecraft-installer package post-installation script subprocess returned error exit status 8
Processing triggers for doc-base (0.10.8) …
Processing 1 removed doc-base file…
Registering documents with scrollkeeper…
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Errors were encountered while processing:
minecraft-installer
Setting up minecraft-installer (1.8~xenial1.0) …
–2019-04-09 18:05:34-- http://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
Resolving s3.amazonaws.com (s3.amazonaws.com)… 52.216.179.5
Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.179.5|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 280212 (274K) [application/java-archive]
Saving to: /tmp/mineckavh2R.jar

/tmp/mineckavh2R.ja 0%%[ ] 0 --.-KB/s
/tmp/mineckavh2R.ja 14%%[=> ] 40.59K 143KB/s
/tmp/mineckavh2R.ja 76%%[==============> ] 209.80K 376KB/s
/tmp/mineckavh2R.ja 100%%[===================>] 273.64K 472KB/s in 0.6s

2019-04-09 18:05:35 (472 KB/s) - /tmp/mineckavh2R.jar saved [280212/280212]

URL transformed to HTTPS due to an HSTS policy
–2019-04-09 18:05:35-- https://www.minecraft.net/android-icon-192x192.png
Resolving www.minecraft.net (www.minecraft.net)… 152.199.20.92, 2606:2800:233:18f9:1142:8f:20aa:11e2
Connecting to www.minecraft.net (www.minecraft.net)|152.199.20.92|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2019-04-09 18:05:35 ERROR 404: Not Found.

dpkg: error processing package minecraft-installer (–configure):
installed minecraft-installer package post-installation script subprocess returned error exit status 8
Processing triggers for hicolor-icon-theme (0.17-2) …

I’m not sure what it means or how to solve the problem. This message come up with anything I try to install unrelated to mincraft. But as you can see in the message it seems to be connected with the minecraft software. Please can you help me?
Thank you

Try:

sudo apt-get remove --purge minecraft-installer