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


AWS CLI - Copy data of one s3 bucket to another s3 bucket of same AWS account

Once aws account is configured using secret and access keys, run following command.
aws s3 sync s3://bucket1 s3://bucket2

AWS - SignatureDoesNotMatch (client): Signature not yet current:

Solution :

The issue is with date, you need to fix the date by command.
sudo ntpdate ntp.ubuntu.com