# Can't update Win11 or Linux

**URL:** <https://community.ipfire.org/t/cant-update-win11-or-linux/7940>\
**Category:** Network\
**Created:** [18 May 2022 13:21 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940 "2022-05-18T13:21:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [18 May 2022 13:21 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/1 "2022-05-18T13:21:02Z")

</div>

For some reason I can go out on the internet and do almost anything except update my Win11 or Linux. In order to update I must use a VPN to get connection. Without using VPN all my repositories respond with “connection refused”. I can bypass IPFire and everything works as it should. No issues. I’m sure the updating issue in IPFire is due to some setting I have made. I have tried changing many things in IPFire and ended up having to do a reinstall. I can’t find anything on the internet or in your wiki that is related. I have decided that this issue is one that can only be resolved by a professional. I am learning but am FAR from being a professional. Most likely the issue will be simple and obvious to a professional. If there is any online info about this and how to fix it please just post the URL for me.  
As far as posting logs go, I can’t find any error logs in IPFire that show any info about this issue. My apologies for not having the knowledge of isolating the correct logs to post here. Any help in this matter would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/15363_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [18 May 2022 21:39 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/2 "2022-05-18T21:39:39Z")

</div>

As a guess: Do you have [IPS](https://wiki.ipfire.org/configuration/firewall/ips) enabled?

If yes, then you may want to turn it off while you debug this. This is what I ran into in the past. It is related to installed with `apt`. It won’t help with Win11.

> [@Problems with DNS Configuration](https://community.ipfire.org/t/problems-with-dns-configuration/5574/4):
>
> I had an issue with apt update when IPS is enabled. Try disabling IPS temporarily (this is just a test). For me there was single rule I had enabled that caused the problem. (Sorry I cannot remember the rule but I’ll keep looking for my notes!) EDIT: Found it! In an IPS rule named: emerging-policy.rules Is a item called: ET POLICY GNU/Linux APT User-Agent Outbound likely related to package management And it was blocking my apt-get update.

---

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [19 May 2022 13:30 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/3 "2022-05-19T13:30:21Z")

</div>

Thank you very much for your guidance. I did have IPS enabled but after disabling it I still had an issue. Through much trial and error I finally located the program causing my issues. It was having the proxy enabled. I’m not sure WHAT was the exact cause in the proxy settings but that was the offender. I now have IPS enabled and all other desired attributes enabled…except for proxy. Now my apt update works fine. Now I will check on the Win11 and make sure it updates as it should. If not then most likely it is a different issue causing it.  
Again, thank you so much. If not for your post I would not have had any ideas about where to look or how to test.

---

<div class="post-metadata">

**Author:** ![pmueller](https://community.ipfire.org/user_avatar/community.ipfire.org/pmueller/32/9019_2.png) [@pmueller](https://community.ipfire.org/u/pmueller)\
**Post date:** [21 May 2022 07:21 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/4 "2022-05-21T07:21:42Z")

</div>

Hi,

> [@maintech](#):
>
> It was having the proxy enabled.

on IPFire or your clients?

Updating Linux and Windows (10) systems behind a proxy works for me. Linux is usually quite proxy-friendly, while Windows is pretty picky when it comes to proxies - especially if proxy authentication is enabled.

If there is a general issue on that front, please let us know. We’re here to help. 🙂

Thanks, and best regards,  
Peter Müller

---

<div class="post-metadata">

**Author:** ![mfischer](https://community.ipfire.org/user_avatar/community.ipfire.org/mfischer/32/16066_2.png) [@mfischer](https://community.ipfire.org/u/mfischer)\
**Post date:** [21 May 2022 08:59 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/5 "2022-05-21T08:59:47Z")

</div>

Hi,

> [@pmueller](#):
>
> while Windows is pretty picky when it comes to proxies

Full Ack! 😉

JM2C 😉

I don’t have any Win 11 machine running yet - but I would check the following:

The first step is always to enter the proxy settings in the “internet options” of the control panel.

But:

> [@](#):
>
> The Microsoft Windows Update client program requires Microsoft Windows HTTP Services (WinHTTP) to scan for available updates…

Source: [How the Windows Update client determines which proxy server to use to connect to the Windows Update website - Microsoft Support](https://support.microsoft.com/en-us/topic/how-the-windows-update-client-determines-which-proxy-server-to-use-to-connect-to-the-windows-update-website-08612ae5-3722-886c-f1e1-d012516c22a1)

So afterwards, open an elevated prompt (cmd-console) and check the following:

```auto
netsh winhttp show proxy
```

This should give you something like

```auto

Aktuelle WinHTTP-Proxyeinstellungen:

    Proxyserver : [PROXY_IP:PORT]

```

If proxy is missing here got to next step:

Import proxy settings:

```auto
netsh winhttp import proxy source=ie
```

Or set proxy manually:

```auto
netsh winhttp set proxy proxy-server="PROXY_IP:PORT"
```

HTH,  
Matthias

---

<div class="post-metadata">

**Author:** ![mfischer](https://community.ipfire.org/user_avatar/community.ipfire.org/mfischer/32/16066_2.png) [@mfischer](https://community.ipfire.org/u/mfischer)\
**Post date:** [21 May 2022 09:19 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/6 "2022-05-21T09:19:23Z")

</div>

Hi,

regarding linux (for me: Ubuntu 20.04.4 LTS):

You might need to edit `/etc/apt/apt.conf`:

```auto
Acquire::http::Proxy "http://PROXY_IP:PORT/";
Acquire::https::Proxy "https://PROXY_IP:PORT/";
Acquire::ftp::proxy "ftp://PROXY_IP:PORT/";

```

Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [23 May 2022 12:02 UTC](https://community.ipfire.org/t/cant-update-win11-or-linux/7940/7 "2022-05-23T12:02:54Z")

</div>

Wow. I thank you all for your suggestions. Right now proxy is disabled in IPFire. I had no doubt that my client settings were wrong. Your replies are right to the point. I will investigate and see if I can make it work. Right now I just use VPN for most of my online connections. I do appreciate all your responses.
