sudo apt-get update出现amazonaws.com链接的原因及移除方法
sudo apt-get update shows "Brave is my browser" & amazonaws.com links, and how to remove them Hey there! Let's break down exactly what's happening here and how you can adjust things if that's what you want.
1. The Root Cause & What It All Means
First off, that "Brave is my browser" line and the amazonaws.com links are directly tied to the Brave Browser APT repository you have configured on your system. Here's the full breakdown:
- "Brave is my browser": This is just a human-readable comment line in Brave's APT source configuration file. It’s a simple identifier to mark that the following repository entries are for Brave updates—no functional purpose, just a clear way to tell where that source came from.
- amazonaws.com links: Brave hosts their Debian/Ubuntu package files and update metadata on Amazon S3 (a cloud storage service under the amazonaws.com domain). When you run
apt-get update, your system reaches out to these S3 buckets to fetch the latest info about available Brave browser updates. That’s why those URLs show up in your command output.
2. How to Remove These Entries (If You Don't Want Brave Updates Anymore)
If you no longer use Brave or don’t want your system checking for its updates, follow these straightforward steps:
Step 1: Locate Brave's APT configuration files
Brave usually adds its source info in a dedicated file under /etc/apt/sources.list.d/. Run this command to find it:
ls /etc/apt/sources.list.d/ | grep brave
You’ll likely see a file named brave-browser-release.list. If not, check the main sources.list file for Brave entries with:
cat /etc/apt/sources.list | grep brave
Step 2: Delete the Brave source file
If you found a dedicated .list file for Brave, delete it with:
sudo rm /etc/apt/sources.list.d/brave-browser-release.list
If Brave's source lines are in /etc/apt/sources.list, open the file with a text editor like nano:
sudo nano /etc/apt/sources.list
Find any lines containing brave or amazonaws.com related to Brave, delete them, then press Ctrl+O to save and Ctrl+X to exit.
Step 3: Remove Brave's GPG key (optional but recommended)
Brave uses a GPG key to sign its packages for authenticity. If you’re done with Brave, delete this key too. First, find the key file:
ls /etc/apt/trusted.gpg.d/ | grep brave
Then delete it with:
sudo rm /etc/apt/trusted.gpg.d/brave-browser-release.gpg
Step 4: Verify the fix
Run sudo apt-get update again—you shouldn’t see the "Brave is my browser" line or amazonaws.com links related to Brave anymore.
Bonus: Keep Brave updates but hide the "Brave is my browser" line
If you still want to get Brave updates but just don’t want that comment showing up, open the Brave source file (e.g., /etc/apt/sources.list.d/brave-browser-release.list) with nano:
sudo nano /etc/apt/sources.list.d/brave-browser-release.list
Find the line that says Brave is my browser (or # Brave is my browser), add a # at the start to comment it out, save and exit. Next time you run apt-get update, that line won’t appear in the output.
内容的提问来源于stack exchange,提问作者Shaurya Verma

