Question

VPS giving error "apt_pkg"

I get this error every time I try and upgrade python2 to python3. I am using this VPS to host a discord bot and I have tried quite a few things to try and resolve this issue including:

Fresh install of Ubuntu Reinstalling python Reinstalling the apt_pkg package.

Any help would be very appreciated!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @OilBaron,

Can you please provide the exact error? Usually, this error is related to missing a module and it’s fixable based on that output.

Additionally, please let us know how exactly did you reinstall python and the apt_pkg packages. Maybe something was left during the installation process.

Regards, KFSys