Recently I accidentally changed the permission of all file in the root directory to world readable/writable on my ubuntu 16.04. Somehow I managed to solve the majority of the problem but stuck with wifi module. So I thought of upgrade but having the following issue with "sudo apt-get update" commands: error part 1
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
E: Sub-process returned an error code
Any help is much appreciated!