Skip to content

Commit d23b09c

Browse files
Update update-cloudflared.mdx (#21868)
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.
1 parent b533ab8 commit d23b09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sudo launchctl start com.cloudflare.cloudflared
5151
1. Update the `cloudflared` package:
5252

5353
```sh
54-
sudo apt-get upgrade cloudflared
54+
sudo apt-get update && sudo apt-get upgrade cloudflared
5555
```
5656

5757
2. Restart the service:

0 commit comments

Comments
 (0)