You should never do "apt-get dist-upgrade" on the N900 - the repositories are not maintained in a fashion to allow this to work.