When I am trying to do
M-x package-refresh-contents I get
Contacting host: elpa.gnu.org:80 stuck until I do
I tried to install a package and it didn't work through
M-x package-install *package_name* and it didn't work, so I started to search for a solution. I can't find the exact command I ran, but it was related to TLS and something with the word "Normal" IIRC. After doing so, my connection to repositories stopped working. I checked and changed many times my package-list, this is my current init.el code snippet related to links to melpa etc:
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("melpa" . "http://melpa.org/packages/")))
I also tested HTTPS connections, it works through eww and opens elpa.gnu link, giving me a list of packages, melpa.org site also works, but marmalade-repo is stuck in
Loading http://marmalade-repo.org/packages/... . Not sure how to fix the emacs now, I also upgraded from the 26 version to 27, it didn't work. Currently using a workaround via using "Straight" package installation, but I want to try to understand what is wrong and how to fix it.