RuntimeError: No access to /dev/mem. Try running as root!

anyone having problem with updating???.. i updated my pi using sudo apt-get update && sudo apt-get upgrade after installing 2017-09-13-Hassbian.img and updated the HA to 55… now im getting this error and all my switches are gone