command 'apt-get update' failed: exit code 100

Matthias Looss

Well-Known Member
Jun 30, 2016
36
1
48
San Juan, Puerto Rico
My cluster has 5 nodes and I do have an active subscription for each node, but one node generates this error when checking for updates:

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

If I run apt-get from the shell, I get this output and error at the end:

Code:
root@hn6:~# apt-get update
Ign http://ftp.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Get:2 http://security.debian.org jessie/updates/main amd64 Packages [305 kB]
Get:3 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
Get:4 http://security.debian.org jessie/updates/main i386 Packages [305 kB]
Get:5 https://enterprise.proxmox.com jessie InRelease [227 B]
Ign https://enterprise.proxmox.com jessie InRelease
Get:6 http://security.debian.org jessie/updates/contrib i386 Packages [2,526 B]
Hit https://enterprise.proxmox.com jessie Release.gpg
Get:7 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
Get:8 http://security.debian.org jessie/updates/main Translation-en [163 kB]
Hit https://enterprise.proxmox.com jessie Release
Get:9 https://enterprise.proxmox.com jessie/pve-enterprise amd64 Packages
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit https://enterprise.proxmox.com jessie/pve-enterprise amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://ftp.debian.org jessie/main i386 Packages
Hit http://ftp.debian.org jessie/contrib i386 Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Fetched 843 kB in 2s (284 kB/s)
W: Failed to fetch https://enterprise.proxmox.com/debian/dists/jessie/Release  Unable to find expected entry 'pve-enterprise/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@hn6:~# Fetched 843 kB in 2s (284 kB/s)
-bash: syntax error near unexpected token `('
root@hn6:~# W: Failed to fetch https://enterprise.proxmox.com/debian/dists/jessie/Release  Unable to find expected entry 'pve-enterprise/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
-bash: syntax error near unexpected token `('
root@hn6:~#
root@hn6:~# E: Some index files failed to download. They have been ignored, or old ones used instead.
-bash: E:: command not found
root@hn6:~#
 
there is no i386 release of PVE - check your APT sources ("/etc/apt/sources.list" and "/etc/apt.sources.list.d/") and the output of "dpkg --print-architecture" and "dpkg --print-foreign-architectures".
 
Here is the output, I did not modify any of these files. I activated my subscriptions and it shows as active

Code:
root@hn6:~# cat /etc/apt/sources.list
deb http://ftp.debian.org/debian jessie main contrib

# security updates
deb http://security.debian.org jessie/updates main contrib
root@hn6:~# cat /etc/apt/sources.list.d
cat: /etc/apt/sources.list.d: Is a directory
root@hn6:~# cd /etc/apt/sources.list.d/
root@hn6:/etc/apt/sources.list.d# ls -l
total 4
-rw-r--r-- 1 root root 64 Apr 26 09:40 pve-enterprise.list
root@hn6:/etc/apt/sources.list.d# cat pve-enterprise.list
deb https://enterprise.proxmox.com/debian jessie pve-enterprise
root@hn6:/etc/apt/sources.list.d#
 
please also post the output of the two dpkg commands I posted
 
Sorry, missed this step.

Code:
root@hn6:~# dpkg --print-architecture
amd64
root@hn6:~# dpkg --print-foreign-architectures
i386
root@hn6:~#

Screenshot%202016-10-20%2011.18.05.pdf
 
you configured your system to be multiarch (amd64 and i386), but did not restrict the PVE repository to amd64 - so apt will try to download the i386 variant of the repository, which does not exist. either drop the i386 architecture (not sure what you would need it for on the hypervisor host??) by running

Code:
dpkg --remove-architecture i386

or specify

Code:
deb [arch=amd64] https://enterprise.proxmox.com/debian jessie pve-enterprise

instead of

Code:
deb https://enterprise.proxmox.com/debian jessie pve-enterprise

in /etc/apt/sources.list.d/pve-enterprise.list
 
I did not configure this dual architecture (I don't know either why I would) and I never edited any of the above listed files. I ran the PROXMOX VE 4.3 installer and activated my subscription, but thank you for your response.

The question now becomes, how or who made this configuration in the first place?
 
I did not configure this dual architecture (I don't know either why I would) and I never edited any of the above listed files. I ran the PROXMOX VE 4.3 installer and activated my subscription, but thank you for your response.

The question now becomes, how or who made this configuration in the first place?

The ISO installer does not configure i386. So if you did not install this by yourself someone else did it on your server.
 
That is not possible, I am the only one that has access to this server and the PVE cluster.

If I recall correctly, I only started to receive this error after this node had been running fine for some time already. I am also experiencing some of my nodes going offline and I have a support ticket open already, but I see some other users experiencing the same issue following this forum?
 
did you installed some additional third party packages - and no, no one using the ISO installed got i386 issues like here.
 
  • Like
Reactions: aPollO

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!