[SOLVED] TASK ERROR: command 'apt-get update' failed: exit code 100

cholzer

Member
Nov 5, 2021
29
7
8
44
Today I found this error in the Tasks section.

Code:
TASK ERROR: command 'apt-get update' failed: exit code 100

I then ran an apt-get update in the console which resulted in this:
Code:
Hit:1 http://ftp.at.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease                        
Get:3 http://ftp.at.debian.org/debian bookworm-updates InRelease [52.1 kB]          
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease                      
Ign:5 https://download.docker.com/linux/ubuntu bookworm InRelease                    
Err:6 https://download.docker.com/linux/ubuntu bookworm Release
  404  Not Found [IP: 13.32.121.111 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I did not edit the default repositories, all I did was disable the enterprise and add the no subscription repository.

Yesterday however I did some testing and installed docker in an LXC Ubuntu 22.04 container. Could that have caused the repo to appear in proxmox? o_O
 
Last edited:
download.docker.com/linux/ubuntu is not a repository that is installed by Proxmox. I looks like you run some commands on the Proxmox host that you should have run inside the LXC container. If so, I have no idea what else you may have changed on the Proxmox host and maybe reinstalling Proxmox might be the safest way to go.
 
I looks like you run some commands on the Proxmox host that you should have run inside the LXC container.
I am 99.9% certain that I did not (by accident) ran a command on the host that I should have run on the LXC - but there is a chance that I hit the wrong window at some point.

I have a backup of the host, guess I will just revert to that. Thank you! :)
 
I am 99.9% certain that I did not (by accident) ran a command on the host that I should have run on the LXC - but there is a chance that I hit the wrong window at some point.
Maybe someone else did it? Maybe you got some (strangely specific) file corruption? Maybe you mounted the apt settings directory inside the container? Maybe software inside the (priviledged?) container escaped and changed settings on the host? If it was not a mistake, then I strongly advise to reinstall and use different passwords. ;)
 
  • Like
Reactions: cholzer
Maybe software inside the (priviledged?) container escaped and changed settings on the host?

I did at one point test with a priviledged container. But just running a docker install inside the container would not have added the repo on the host, would it?

I guess I did in fact choose the wrong window at some point when going back and forth between them. :)
 
Hello all

I am new to proxmox and i am getting the same error. However when i fo to the update section and run it manually it works

I have a home environment and on my proxmox 8 server i have installed opnsense (not running) home assistant and truenas. in other words a very simple solution
under pve repositories i have


Warning


You get updates for Proxmox VE this one is green and the rest are orange
The enterprise repository is enabled, but there is no active subscription!
The no-subscription repository is not recommended for production use!
The Ceph enterprise repository is enabled, but there is no active subscription!
The Ceph no-subscription/main repository is not recommended for production use!
APT Repositories
ReloadAdd

did i not configured something correctly?

Thank you in advance for any assistance
 
Hello all

I am new to proxmox and i am getting the same error. However when i fo to the update section and run it manually it works

I have a home environment and on my proxmox 8 server i have installed opnsense (not running) home assistant and truenas. in other words a very simple solution
under pve repositories i have


Warning


You get updates for Proxmox VE this one is green and the rest are orange
The enterprise repository is enabled, but there is no active subscription!
The no-subscription repository is not recommended for production use!
The Ceph enterprise repository is enabled, but there is no active subscription!
The Ceph no-subscription/main repository is not recommended for production use!
APT Repositories
ReloadAdd

did i not configured something correctly?

Thank you in advance for any assistance

What is the full output in code-tags of?: grep -r '' /etc/apt/sources.list* (Do not forget the: * at the end.)
 
Hello

Thank you for responding

here is the output

Linux pve 6.2.16-12-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-12 (2023-09-04T13:21Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 15 17:35:06 CEST 2023 on pts/0
root@pve:~# grep -r '' /etc/apt/sources.list*
/etc/apt/sources.list:deb http://ftp.it.debian.org/debian bookworm main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ftp.it.debian.org/debian bookworm-updates main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
/etc/apt/sources.list:
/etc/apt/sources.list.d/pve-enterprise.list:deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
/etc/apt/sources.list.d/ceph.list:deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise

I got this by typing grep -r '' /etc/apt/sources.list* in the pve shell as root@pve as can be seen here above.

I hope this is what you mean

Thank you for your time and help
 
To avoid the ENTERPRISE REPOSITORY warnings, you may disable the repos, until you are not using them.
go to Datacenter>[Node]>Updates>Repositories, click both the Enterprise repos and Disable it.

For apt-get warnings... do you have proper connectivity to the proxmox host?
1) can you ping 1.1.1.1 ? 2) can you ping "google.com" ?
 
To avoid the ENTERPRISE REPOSITORY warnings, you may disable the repos, until you are not using them.
go to Datacenter>[Node]>Updates>Repositories, click both the Enterprise repos and Disable it.

For apt-get warnings... do you have proper connectivity to the proxmox host?
1) can you ping 1.1.1.1 ? 2) can you ping "google.com" ?
Thank you mat

I did not know i could disable them.

I disabled all repositories (pve enterprise) with the exception of non subscription and debian repositories. I then rebooted the server.

I did ping the both and i got reasonable ms > 20



Thank you fort the teachings and have a great day
 
I get the same error on a clean Proxmox install. Disabling the enterprise repos shows the error "No Proxmox VE repository is enabled, you do not get any updates!" which seems sub-optimal. There are 5 total APT repositories on the Repositories status page:
The message seems to be saying that Proxmox itself won't be updated going forward?

When I ran the grep command prior to disabling the two repos I got the same response that wbravin got. Now I see:

/etc/apt/sources.list:deb http://ftp.us.debian.org/debian bookworm main contrib​
/etc/apt/sources.list:​
/etc/apt/sources.list:deb http://ftp.us.debian.org/debian bookworm-updates main contrib​
/etc/apt/sources.list:​
/etc/apt/sources.list:# security updates​
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib​
/etc/apt/sources.list.d/ceph.list:# deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise​
/etc/apt/sources.list.d/ceph.list:​
/etc/apt/sources.list.d/pve-enterprise.list:# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise​
/etc/apt/sources.list.d/pve-enterprise.list:​

Note the two commented distro lines.

So does this mean that Proxmox won't be updated automatically? Is something missing or is this normal?
 
If you do not have an active subscription: [1], you need to disable the Proxmox pve-enterprise: [2] and Ceph (currently default Quincy) enterprise: [3] repository.
To get updates furthermore, you need to add the Proxmox pve-no-subscription: [4] and Ceph Quincy no-subscription: [5] or Ceph Reef no-subscription: [6] repository.

[1] https://proxmox.com/en/proxmox-virtual-environment/pricing
[2] https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_enterprise_repo
[3] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_quincy_enterprise_repository
[4] https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo
[5] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_quincy_no_subscription_repository
[6] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_reef_no_subscription_repository
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!