Change Tor Default Port

hi, is it possible to change tor default port?
i tried to change the default port by editing 50_user.conf file and after that when i tried to run apt-get dist-upgrade it get error “unable to connect 127.0.0.1:9050”
please help

Possible.