[SOLVED] Proxmox apt-get update failed exit code 127

ensall

Member
Dec 28, 2020
25
0
6
35
Just logged into my Proxmox this morning and am getting this during update checks:
starting apt-get update
apt-get: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol _ZN3APT25VersionContainerInterface23FromModifierCommandLineERtPS0_R12pkgCacheFilePKcRKNSt7__cxx114listINS0_8ModifierESaIS9_EEERNS_14CacheSetHelperE version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
TASK ERROR: command 'apt-get update' failed: exit code 127

Is anybody else getting this or has anyone experienced this before?
My server has been up for nearly 22 days and the issue didn't start until December 25th when it did a check and it's failed ever since then. Any thoughts or tips as to where I should start to work on this issue?
 
hi,

can you post the output of pveversion -v
 
Here's the output of pveversion -v:
root@proxmox:~# pveversion -v
proxmox-ve: 6.3-1 (running kernel: 5.4.73-1-pve)
pve-manager: 6.3-3 (running version: 6.3-3/eee5f901)
pve-kernel-5.4: 6.3-3
pve-kernel-helper: 6.3-3
pve-kernel-5.3: 6.1-6
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.4.73-1-pve: 5.4.73-1
pve-kernel-5.4.65-1-pve: 5.4.65-1
pve-kernel-5.4.60-1-pve: 5.4.60-2
pve-kernel-4.15: 5.4-8
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-4.15.18-20-pve: 4.15.18-46
pve-kernel-4.15.17-1-pve: 4.15.17-9
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.7
libproxmox-backup-qemu0: 1.0.2-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.3-2
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.1-1
libpve-storage-perl: 6.3-3
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.0.6-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-cluster: 6.2-1
pve-container: 3.3-2
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-2
pve-qemu-kvm: 5.1.0-7
pve-xtermjs: 4.7.0-3
qemu-server: 6.3-2
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.5-pve1
 
ok.

can you think of anything you modified on the server recently? like deleting some files for example?

apt-get: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol
you can try reinstalling libapt-pkg5 if you have the .deb file still.
check in /var/cache/apt/archives. you can do it like this: find /var/cache/apt -type f -name '*.deb' | grep libapt
if you see the file, run: dpkg -i /path/to/debfile

if it's not there you can probably download it from the mirror using wget. (check your /etc/apt/sources.list file for the debian mirror you're using)
 
  • Like
Reactions: ensall
Aside from running updates on it roughly a week ago I haven't actually touched the server. I've just been letting it be while on the holidays which is why it's kind of odd that it just suddenly started failing.

I'll try following through on your suggestions soon and let you know how that goes.
 
I was able to find it and reinstalled it as you said and now it's able to successfully run apt-get update again. I appreciate the quick assist on this one!
 
you're welcome! please mark the thread as [SOLVED] so others facing the same issue know what to expect :)
 
  • Like
Reactions: ensall

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!