Linux is the operating system of choice for anyone who wants to tinker around with their computer without worrying about breaking too many things. That said, Linux also has its fair share of bugs and problems that can come up at any given time.
Apt-get is one of the most important tools in Linux as it allows you to install tools and upgrade your existing Linux distribution. This means that if Apt-get stops working on your system, you can run into a host of problems.
In this article, we’re taking a look at how to fix the “Task error: command apt-get update failed: exit code 100” in Linux as well as the major causes behind the error.
What causes this error?
The main cause behind this error is that the tool is unable to access the repositories you’re using to fetch the required tool or update. This can in turn be caused by either the repository being offline or if you’re trying to access a paid repository that you aren’t subscribed to yet.
Also read:Â Valorant freezes PC on startup: 13 Fixes
How to fix this?
Here are three fixes you can try out.
Check internet connection
Now’s a good time to check whether or not you have an active internet connection. If you’re on WiFi, make sure you’ve got an active link and that there are no signal issues. On cellular data, ensure that it’s enabled and that you’re getting good network coverage.
Restarting your router can help get rid of a bunch of seemingly random internet and connectivity issues that may be hindering your connection to the Linux servers.
Comment out the Proxmox instance
The error also commonly occurs when trying to install or update the Proxmox instance from web GUI or through the terminal by using apt-get update. The fix is to just remove the repository from the repo list.
All you have to do is run the following command in your terminal.
cp /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.backup && echo -e "#$(cat /etc/apt/sources.list.d/pve-enterprise.list)" > /etc/apt/sources.list.d/pve-enterprise.list
Manually update the repo list
Last but not least, you can also manually update your repo list to remove any domains that might be causing issues.
Step 1: Change the active working directory to one where your repo list is saved. Usually, it’s located at the path given below.
cd /etc/apt/sources.list.d
Step 2: As a precaution, we’re backing up the repo file so we can go back in case of some irreversible changes.
cp pve-enterprise.list pve-enterprise.list.backup
Step 3: Use Nano to open the file and edit it as required.
nano pve-enterprise.list
Step 4: Find the line given below and add a ‘#’ at the starting of the line to comment it and effectively remove it from the repo list. Additionally, check for any other domains that may be causing issues and comment them out too.
https://enterprise.proxmox.com/debian/pve%20buster%20pve-enterprise
Now try running the update again and it should work just fine.
Also read:Â How to unfreeze Venmo account?