# Cannot initiate connection to...when I try to update or install software

**URL:** https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271
**Category:** Troubleshooting
**Created:** [8 July 2023 15:52 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271 "2023-07-08T15:52:16Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [8 July 2023 15:52 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/1 "2023-07-08T15:52:16Z")

</div>

### Creating a bug report/issue

#### Required Information

- DietPi version | `8`
- Distro version | `bookworm`
- Kernel version | `Linux DietPi 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 GNU/Linux`
- Architecture | `amd64`
- SBC model | `Native PC (x86\_64)’

#### Steps to reproduce

1. …Whenever I try to install software, do a dietpi update, apt update, etc.

#### Actual behaviour

- … I will end up getting "failed to fetch

```auto
https://download.docker.com/linux/debian/dists/bookworm/InRelease" or "cannot initiate connection to download.docker.com:443" messages. I also see the same as it relates to " https://downloads.plex.tv/repo/deb/dists/public/InRelease."

```

Strangely, I don’t have docker or plex installed via DietPi, but rather installed CasaOS and have Plex installed through that.

#### Extra details

```auto
root@DietPi:~# apt-get update
Ign:1 https://deb.debian.org/debian-security bookworm-security InRelease
Ign:2 https://downloads.plex.tv/repo/deb public InRelease
Ign:3 https://download.docker.com/linux/debian bookworm InRelease
Ign:1 https://deb.debian.org/debian-security bookworm-security InRelease
Ign:2 https://downloads.plex.tv/repo/deb public InRelease
Ign:3 https://download.docker.com/linux/debian bookworm InRelease
Hit:4 http://ftp.us.debian.org/debian bookworm InRelease
Hit:5 http://ftp.us.debian.org/debian bookworm-updates InRelease
Hit:6 http://ftp.us.debian.org/debian bookworm-backports InRelease
Ign:1 https://deb.debian.org/debian-security bookworm-security InRelease
Ign:2 https://downloads.plex.tv/repo/deb public InRelease
Ign:3 https://download.docker.com/linux/debian bookworm InRelease
Err:1 https://deb.debian.org/debian-security bookworm-security InRelease
  Cannot initiate the connection to debian.map.fastly.net:443 (2a04:4e42:77::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastly.net:443 (146.75.38.132), connection timed out Cannot initiate the connection to deb.debian.org:443 (2a04:4e42:79::644). - connect (101: Network is unreachable)
Err:2 https://downloads.plex.tv/repo/deb public InRelease
  Cannot initiate the connection to downloads.plex.tv:443 (2606:4700::6812:1ad3). - connect (101: Network is unreachable) Cannot initiate the connection to downloads.plex.tv:443 (2606:4700::6812:1bd3). - connect (101: Network is unreachable) Could not connect to downloads.plex.tv:443 (104.18.27.211), connection timed out Could not connect to downloads.plex.tv:443 (104.18.26.211), connection timed out
Err:3 https://download.docker.com/linux/debian bookworm InRelease
  Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:c600:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:ec00:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:6400:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:8400:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:4600:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:1800:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:fa00:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:b800:3:db06:4200:93a1). - connect (101: Network is unreachable) Could not connect to download.docker.com:443 (13.225.63.85), connection timed out Could not connect to download.docker.com:443 (13.225.63.62), connection timed out Could not connect to download.docker.com:443 (13.225.63.60), connection timed out Could not connect to download.docker.com:443 (13.225.63.90), connection timed out
Reading package lists... Done
W: Failed to fetch https://deb.debian.org/debian-security/dists/bookworm-security/InRelease Cannot initiate the connection to debian.map.fastly.net:443 (2a04:4e42:77::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastly.net:443 (146.75.38.132), connection timed out Cannot initiate the connection to deb.debian.org:443 (2a04:4e42:79::644). - connect (101: Network is unreachable)
W: Failed to fetch https://download.docker.com/linux/debian/dists/bookworm/InRelease Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:c600:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:ec00:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:6400:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:8400:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:4600:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:1800:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:fa00:3:db06:4200:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to download.docker.com:443 (2600:9000:21da:b800:3:db06:4200:93a1). - connect (101: Network is unreachable) Could not connect to download.docker.com:443 (13.225.63.85), connection timed out Could not connect to download.docker.com:443 (13.225.63.62), connection timed out Could not connect to download.docker.com:443 (13.225.63.60), connection timed out Could not connect to download.docker.com:443 (13.225.63.90), connection timed out
W: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease Cannot initiate the connection to downloads.plex.tv:443 (2606:4700::6812:1ad3). - connect (101: Network is unreachable) Cannot initiate the connection to downloads.plex.tv:443 (2606:4700::6812:1bd3). - connect (101: Network is unreachable) Could not connect to downloads.plex.tv:443 (104.18.27.211), connection timed out Could not connect to downloads.plex.tv:443 (104.18.26.211), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [8 July 2023 16:23 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/2 "2023-07-08T16:23:57Z")

</div>

> [@Bwangster12](#):
>
> Strangely, I don’t have docker or plex installed via DietPi, but rather installed CasaOS and have Plex installed through that.

I don’t think CasaOS will do any magic. They won’t do anything different from us, just set up the appropriate apt package source and install the software title.

BTW: I guess CasaOS is a docker based application. Hence it installed docker themself.

> [@Bwangster12](#):
>
> `connect (101: Network is unreachable)`

Can you try to disable IPv6 and try again.

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [9 July 2023 00:57 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/3 "2023-07-09T00:57:37Z")

</div>

I tried, but still seem to have network issues.

When I open the dietpi connection in SSH, it shows the following below my lan IP. Is this anything related?

curl: (28) Connection timed out after 3000 milliseconds

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 July 2023 03:54 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/4 "2023-07-09T03:54:00Z")

</div>

Looks like local network issues. Can you ping any IP or DNS name on the web?

```auto
ping google.com
ping 8.8.8.8

```

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [9 July 2023 11:06 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/5 "2023-07-09T11:06:24Z")

</div>

> [@Joulinar](#):
>
> `ping google.com`

```auto
root@DietPi:~# ping google.com
PING google.com (142.251.40.238) 56(84) bytes of data.
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=1 ttl=59 time=5.93 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=2 ttl=59 time=7.25 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=3 ttl=59 time=6.30 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=4 ttl=59 time=6.47 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=5 ttl=59 time=6.38 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=6 ttl=59 time=6.62 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=7 ttl=59 time=6.09 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=8 ttl=59 time=6.60 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=9 ttl=59 time=6.07 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=10 ttl=59 time=6.54 ms
64 bytes from lga34s39-in-f14.1e100.net (142.251.40.238): icmp_seq=11 ttl=59 time=5.85 ms
^C
--- google.com ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 10016ms
rtt min/avg/max/mdev = 5.849/6.372/7.252/0.378 ms

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 July 2023 15:30 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/6 "2023-07-09T15:30:46Z")

</div>

Might be a problem with HTTPS 🤔 do you use any special network security or firewall that could influence such connections?

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [9 July 2023 20:41 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/7 "2023-07-09T20:41:35Z")

</div>

Nothing on the Dietpi. All the apps I’m running are Transmission, Plex, SMB, etc. I have a Fios router, and set a static lease on the DietPi, but nothing weird other than that.

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [10 July 2023 21:05 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/8 "2023-07-10T21:05:05Z")

</div>

So, I just tried to install Tailscale through Dietpi-Software, and got this message:

 ![image](https://dietpi.com/forum/uploads/default/original/2X/e/e10745c2a8f8836fb5b94642475a8879dcbded43.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 July 2023 21:13 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/9 "2023-07-10T21:13:04Z")

</div>

@MichaIng  
any ideas why HTTPS connections are not able to establish?

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [10 July 2023 21:26 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/10 "2023-07-10T21:26:24Z")

</div>

It’s weird… if this happens I go in and change the DNS in Dietpi-config back and forth between 1.1.1.1 and 8.8.8.8 and it’s sometimes works. I changed it 8.8.8.8 right after I posted this message and it went through this time.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 July 2023 21:32 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/11 "2023-07-10T21:32:02Z")

</div>

It does not seem to be a DNS problem, as this would lead to a different error message. The hostname has also been resolved. An IP address can be seen next to the host name.

In the past, we have had cases where the ISP has restricted access to the Internet and blocked some services.

It’s very strange that sometimes it works and sometimes it doesn’t.

---

<div class="post-metadata">

### Author: ![Bwangster12](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Bwangster12](https://dietpi.com/forum/u/Bwangster12)
#### Post date: [11 July 2023 13:17 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/12 "2023-07-11T13:17:24Z")

</div>

Dumb question, I’ve uninstalled CasaOS and don’t have Docker installed via Dietpi-Software…so is it normal that I see [https://download.docker.com](https://download.docker.com)… urls in that list.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [11 July 2023 13:30 UTC](https://dietpi.com/forum/t/cannot-initiate-connection-to-when-i-try-to-update-or-install-software/17271/13 "2023-07-11T13:30:04Z")

</div>

Of course, you would need to manually remove docker apt package server configuration. 😉
