Getting "111:Connection refused" while trying to download OwnCloud files


I’m tying to download OwnCloud repository files for Ubunti 18.04, but after doing first 3 steps and typing “apt-get update” I’m getting an error message saying 111 error “Connection refused”. So I can’t download OwnCloud files.

Am I missing something?

Could you elaborate what these steps are?

What system are you running? OS? Is it a clean install? Do you have the https transport protocol installed?

wget -nv -O Release.key
apt-key add - < Release.key
echo ‘deb /’ > /etc/apt/sources.list.d/owncloud.list

I meant this three steps.

I’m running Ubuntu 18.04 and yes - it is a clean install.


this looks to me like some networking problem. AFAIK “connection refused” means your system isn’t able to contact the remote repository / URL.

Did those steps work without any error, and did you verify their final result?

If that would’ve been the case, then I wouldn’t be able to open any pages, I think…
But I can open web pages pretty well.

Yep, they did!

Obviously, this “111:Connection refused” comes from Nginx. Check you network setup.

Again, if that would’ve been problem with a connection, I couldn’t download any updates in a first place. I don’t know what specifficly I must find in network setups. Can you tell me, where should I look?

Also, it seems like this process tries to download file named “InRelease” in repository folder, but can’t find it. I can’t send you copy if my terminal cuz it’s on Russian.

If it is not your network, means you can access the repo with the browser, then I assume your apt config is broken. I suggest searching there.

So instead of trying any fixes, I reinstalled my Ubuntu and from the clean installation I immediately started to install OwnCloud.

Still the same. Nothing changed…