This question already has an answer here:
trying to install Node js, but it seems like in the source files or package there in an extra space so error are there.
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/trusty-pgdg/main/binary-amd64/Packages 404 Not Found [IP: 220.127.116.11 80] W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/trusty-pgdg/main/binary-i386/Packages 404 Not Found [IP: 18.104.22.168 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
see, what seemed to me is, this links have extra space in the error urls
trusty- pgdg the space before
when I copy-pasted the url without the space, I was able to download the packages.
What should I do to solve this?
When I copy pasted it here, the space were gone, but I have attached the screen-shot.