Showing posts with label Python error while installing any package on Ubuntu. Show all posts
Showing posts with label Python error while installing any package on Ubuntu. Show all posts

Wednesday, September 5, 2018

Python error while installing any package on Ubuntu

Error :
Errors were encountered while processing:
 python-pkg-resources
 python-zope.interface
 python-twisted-core
 python-twisted-web
 python-ubuntu-sso-client
 ubuntu-sso-client
 ubuntu-sso-client-qt
 python-aptdaemon
 python-aptdaemon.gtk3widgets
 oneconf
 software-center
 sessioninstaller
E: Sub-process /usr/bin/dpkg returned an error code (1)


Solution :
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall python-minimal python-lockfile