From 58582b9eb5c2b6d2bd88fd0cdc782919ef40a975 Mon Sep 17 00:00:00 2001 From: Lucas Della Santina Date: Mon, 21 Apr 2025 21:00:50 -0300 Subject: [PATCH] Update update-cloudflared.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change Description This pull request proposes changing the command sudo apt-get upgrade cloudflared to sudo apt-get update && sudo apt-get upgrade cloudflared to ensure cloudflared is updated correctly. Justification The command sudo apt-get upgrade cloudflared does not update cloudflared if the package list is not up-to-date. By adding sudo apt-get update, we ensure the package list is updated before attempting to upgrade cloudflared. Evidence Below is the evidence showing that cloudflared does not update correctly without the sudo apt-get update command: armstrong@APOLO:~$ sudo apt-get upgrade cloudflared [sudo] password for debian: Reading package lists... Done Building dependency tree... Done Reading state information... Done cloudflared is already the newest version (2025.2.1). Calculating upgrade... Done The following packages were automatically installed and are no longer required:   libdbus-glib-1-2 linux-image-6.1.0-25-amd64 linux-image-6.1.0-26-amd64 linux-image-6.1.0-28-amd64   linux-image-6.1.0-29-amd64 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. --- .../connect-networks/downloads/update-cloudflared.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx b/src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx index 3e80b9fa43095bd..766eedcfd1b39d3 100644 --- a/src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx +++ b/src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx @@ -51,7 +51,7 @@ sudo launchctl start com.cloudflare.cloudflared 1. Update the `cloudflared` package: ```sh -sudo apt-get upgrade cloudflared +sudo apt-get update && sudo apt-get upgrade cloudflared ``` 2. Restart the service: