Report this

What is the reason for this report?

VPS giving error "apt_pkg"

Posted on July 12, 2020

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!



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.