After I installed the wxpython dependencies using Ubuntu and installed wxpython via pip and reboot, the apt-get command doesn't seem to work. Currently I only get no errors when using the sudo apt-get update command. All other apt commands will report an error as follows.
Reading package lists... Done
Segmentation faulty tree... 0%
I referred to this forum post and ran the following command. But there is no improvement.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/locksudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get upgrade
I ran this command sudo strace -f apt-get upgrade >log.strace-aptget 2>&1
to track down information about the program, and it produced 228KB of information, and I don't know how to find valid information from it.
This is the debugging information
Here is my system information:
Linux ubuntu-server 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 20.04.03 LTS 64bit
I don't know how to do it anymore, please help me if you have a solution.