apt-get upgrade error for Python packages in Ubuntu 16.04

This answer worked for me =)

sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb

From: https://stackoverflow.com/a/50408787/1503549

NB: Remember to perform the following afterwards:

sudo apt install -f

Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.


Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:

sudo apt-get update
sudo apt-get upgrade -f

If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.