TASK ERROR: Not an ARRAY reference at /usr/lib/x86_64-linux-gnu/perl5/5.32/AptPkg/hash.pm line 54.

Bl1c

Member
Aug 15, 2023
10
9
8
Ukraine
Code:
Not an ARRAY reference at /usr/lib/x86_64-linux-gnu/perl5/5.32/AptPkg/hash.pm line 54.
To fix it, add an unsubscribed Proxmox repository (if you don't have a subscription) to the end of the /etc/apt/sources.list file:

Code:
nano /etc/apt/sources.list

Add line:
Code:
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#monual proxmox update ref

And do:
Code:
apt-get update
apt-get dist-upgrade

After that, check if the update error in Proxmox has been resolved.
 
Hi,
Code:
Not an ARRAY reference at /usr/lib/x86_64-linux-gnu/perl5/5.32/AptPkg/hash.pm line 54.
when exactly did this error trigger? I.e. when running what command?

Add line:
Code:
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#monual proxmox update ref
Please note that Proxmox VE 7 based on Bullseye is end-of-life since the end of July: https://pve.proxmox.com/wiki/FAQ
You should consider upgrading: https://pve.proxmox.com/wiki/Upgrade_from_7_to_8

For information about package repositories, also see: https://pve.proxmox.com/wiki/Package_Repositories
 
  • Like
Reactions: Bl1c
Today I encountered the same problem again.
TASK ERROR: Not an ARRAY reference at /usr/lib/x86_64-linux-gnu/perl5/5.32/AptPkg/hash.pm line 54.

I managed to fix it after removing the following:
nano /etc/apt/sources.list
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#manual proxmox update ref

After saving the file, the error persisted, so I restored the line with the link.
After saving, the "Update" tab became available again.

Increase:confused:

1727101589464.png
Hi,

when exactly did this error trigger? I.e. when running what command?


Please note that Proxmox VE 7 based on Bullseye is end-of-life since the end of July: https://pve.proxmox.com/wiki/FAQ
You should consider upgrading: https://pve.proxmox.com/wiki/Upgrade_from_7_to_8

For information about package repositories, also see: https://pve.proxmox.com/wiki/Package_Repositories