Fixed IP on a Raspberry, apt-get did not work after that

I decided to assign a fixed IP address to my Raspberry, using the following instructions:

https://wiki.debian.org/NetworkConfiguration#Using_DHCP_to_automatically_configure_the_interface

After that, when trying to update (apt-get), I could not do it. I do not know if there is a relationship between the two facts, or it has been a coincidence.
Any help or information is welcome.

It is almost a bad idea to manually configure the network when you have DHCP available. You are better off configuring your DHCP server to always give the same IP address to that RPi instead.

In all likelihood you either didn’t configure the gateway IP address or subnet mask correctly or you need to manually configure your DNS servers as well. Without DHCP, you have to configure DNS manually too.

Thanks, I´ll get to it

You can check if your DNS is working correctly by using the following command from the command line:

ping www.google.com

If it does not get any response, your DNS is probably not configured correctly as already mentioned by Rich.