Linux is an operating system used by people who want to work on their computer without worrying about breaking many things. But like every other OS, Linux also has its fair share of bugs and errors users can face while using Linux.
Apt-get is one important tool in Linux that allows you to install tools and upgrade existing Linux distributions. If Apt-get stops working on your system, you can run into a host of issues and errors, one of such is the “ task error: command apt-get update failed: exit code 100”.
What causes the “Task Error: Command Apt-get Update Failed: Exit Code 100”?
When the Apt-get tool is unable to access the repositories you’re using to fetch the required tool or update, it causes this issue. Also it is caused by either the repository being offline or if you try to access a paid repository that you aren’t subscribed to yet.
How to fix the “Task Error: Command Apt-get Update Failed: Exit Code 100”
#1. Check internet connection
First things first, check if you have an active internet connection. If you are using Wi-Fi, ensure you’ve got an active link, and have no signal issues. if you are using cellular data, make sure that it’s enabled and that you have good network coverage.
Also restarting your router is important to help you deal with internet connection issues and fix the error.
#2. Comment out the Proxmox instance
When trying to install or update the Proxmox instance from web GUI or through a terminal using apt-get update; you can face this error. just remove the repository from the repo list, to fix it.
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
#3. Manually update the repo list
Manually update your repo list and remove any domains that might be causing issues like the “task error: command apt-get update failed: exit code 100” .
First Change the active working directory to the directory where your repo list is saved.
It is usually located at the path cd /etc/apt/sources.list.d.
Backup the repo file, in case you have irreversible changes that will make you lose important data.
cp pve-enterprise.list pve-enterprise.list.backup
Open the file using Nano, then open the file and edit it as required.
nano pve-enterprise.list
Find the line below and add a ‘#’ at the start of the line to comment it and remove it from the repo list effectively. Also , check for any other domains that may be causing issues and comment them out too.
Run the update again. The error should be eliminated after this.
Also use this command to try and fix the error:
“task error: command apt-get update failed: exit code 100“; that is the error you encounter when you double-click the log information to see the full output of apt-get. It looks like this:
starting apt-get update
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:2 https://enterprise.proxmox.com/debian/pve buster InRelease
Get:3 http://ftp.pl.debian.org/debian buster InRelease [122 kB]
Get:4 http://ftp.pl.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists...
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://ftp.pl.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://ftp.pl.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
TASK ERROR: command 'apt-get update' failed: exit code 100
Inputting the code;
apt-get update --allow-releaseinfo-change
can solve this issue as well, you need to try it out.
Hopefully, these few fixes will be of help in eliminating the “task error: command apt-get update failed: exit code 100” error on Linux.