@leetut mind sharing what the error is on your friend's n900? Because basically speaking all deb files should install successfully if dependencies are met. Seems you got some messed up installed files here... Just do only apt-get -f install(root) should fix those problems or you could also do and
Reading package lists... Building dependency tree... Reading state information... Correcting dependencies... Done The following packages were automatically installed and are no longer required: mime-support ucf fcam-drivers libmagic1 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libmagic1 mime-support ucf Suggested packages: file Recommended packages: debconf-utils The following packages will be REMOVED: libapache2-mod-php5 The following NEW packages will be installed: libmagic1 mime-support ucf 0 upgraded, 3 newly installed, 1 to remove and 30 not upgraded. 1 not fully installed or removed. Need to get 300kB of archives. After this operation, 5665kB disk space will be freed. Do you want to continue [Y/n]? Y Abort.