I checked on my server today and could not access the web GUI which sparked concern. I SSHed in and tried to run
I checked out the file that looked to be the issue
But now I have this issue where apt was complaining about dpkg list files not ending with a newline, a bit of Googling suggested I deleted those files, instead, I just renamed them, just in case I need them. It turns the list file also looked corrupt, and 9 other list files were too, so I renamed them all. Which means many apt operations give this warning:
I've since been trying to reinstall these packages, but all attempts are failing. I've tried:
Most things seem to point back to a broken python install but running a quick print line in Python2 and Python3 seems to work at least.
I'm really not how I can fix this. The sys logs have been plagued with errors relating to perl and python for a few days. My containers and VMs seem to be running fine at the moment which is why I didn't notice.
If I can avoid having to reinstall, I'd like to since I don't want to have to rsync 200GB+ of data over a 20/Mbps connection. I can have my containers and VMs offline if needed, I just don't want to have to move that much data if possible.
I'd greatly appreciate any help I can get to resolve this mess.
The worst thing is, I don't even know what caused this
TL;DR Somehow I think python and perl are screwed (corrupted?) and dpkg won't let me reinstall them.
EDIT:
I've managed to fix the dpkg list file issues by installing the same packages on a local good install of Proxmox 6 and rsyncing them to the broken remote install. However running a simple apt upgrade yeilds an error relating to the
sudo pveproxy restart
but was greeted with some error similar to this (this specific error was pulled from the syslog)BEGIN failed--compilation aborted at /usr/bin/pveproxy line 11.
Compilation failed in require at /usr/bin/pveproxy line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pveproxy.pm line 16.
Compilation failed in require at /usr/share/perl5/PVE/Service/pveproxy.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 14.
Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/Cluster.pm line 28.
Compilation failed in require at /usr/share/perl5/PVE/API2/Cluster.pm line 28.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/ClusterConfig.pm line 13.
Compilation failed in require at /usr/share/perl5/PVE/API2/ClusterConfig.pm line 13.
Unrecognized character \x84; marked by <-- HERE after <-- HERE near column 1 at /usr/share/perl5/PVE/APIClient/LWP.pm line 1.
Compilation failed in require at /usr/bin/pveproxy line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pveproxy.pm line 16.
Compilation failed in require at /usr/share/perl5/PVE/Service/pveproxy.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 14.
Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/Cluster.pm line 28.
Compilation failed in require at /usr/share/perl5/PVE/API2/Cluster.pm line 28.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/ClusterConfig.pm line 13.
Compilation failed in require at /usr/share/perl5/PVE/API2/ClusterConfig.pm line 13.
Unrecognized character \x84; marked by <-- HERE after <-- HERE near column 1 at /usr/share/perl5/PVE/APIClient/LWP.pm line 1.
I checked out the file that looked to be the issue
/usr/share/perl5/PVE/APIClient/LWP.pm
and it turned out it was garbled as if it were corrupted, file /usr/share/perl5/PVE/APIClient/LWP.pm
reported is as data
rather than the expected Perl5 module source, ASCII text
. All attempts to get apt/dpkg to reinstall it was failing. I ended up rsyncing the directory from a known good install of Proxmox 6 (I don't think the minor version match up exactly, but it was a desperate attempt to get it working). That seemed to fix errors I was seeing in apt at least.But now I have this issue where apt was complaining about dpkg list files not ending with a newline, a bit of Googling suggested I deleted those files, instead, I just renamed them, just in case I need them. It turns the list file also looked corrupt, and 9 other list files were too, so I renamed them all. Which means many apt operations give this warning:
dpkg: warning: files list file for package 'python3-setuptools' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcpg4:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-zope.event' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pbr' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libquorum5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-zope.component' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnl-route-3-200:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpve-apiclient-perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libknet1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsndfile1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbisenc2:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcpg4:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-zope.event' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pbr' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libquorum5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-zope.component' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnl-route-3-200:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpve-apiclient-perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libknet1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsndfile1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbisenc2:amd64' missing; assuming package has no files currently installed
I've since been trying to reinstall these packages, but all attempts are failing. I've tried:
- sudo apt-get clean
- sudo apt reinstall python3-setuptools (pastebin)
- sudo dpkg-reconfigure python3-setuptools (pastebin)
- sudo dpkg --configure -a (pastebin)
- sudo apt --fix-broken install (patebin)
- (I downloaded the deb) sudo dpkg -i python3-setuptools_40.8.0-1_all.deb (pastebin)
- (I downloaded the deb) sudo dpkg -i python3_3.7.3-1_amd64.deb (pastebin)
- sudo dpkg --remove --force-remove-reinstreq python3-setuptools (pastebin)
- sudo apt-get --reinstall install -y -f python3-setuptools (pastebin)
Most things seem to point back to a broken python install but running a quick print line in Python2 and Python3 seems to work at least.
I'm really not how I can fix this. The sys logs have been plagued with errors relating to perl and python for a few days. My containers and VMs seem to be running fine at the moment which is why I didn't notice.
If I can avoid having to reinstall, I'd like to since I don't want to have to rsync 200GB+ of data over a 20/Mbps connection. I can have my containers and VMs offline if needed, I just don't want to have to move that much data if possible.
I'd greatly appreciate any help I can get to resolve this mess.
The worst thing is, I don't even know what caused this
TL;DR Somehow I think python and perl are screwed (corrupted?) and dpkg won't let me reinstall them.
EDIT:
I've managed to fix the dpkg list file issues by installing the same packages on a local good install of Proxmox 6 and rsyncing them to the broken remote install. However running a simple apt upgrade yeilds an error relating to the
ifupdown2
package.
Last edited: