I did 'apt-get autoremove' to remove a package that was no longer used. After this, skype started working normally.