sudo apt-get install -f Reading package lists... Done Building dependency tree... Done Correcting dependencies... Done The following extra packages will be installed: samba Recommended packages: smbldap-tools The following packages will be upgraded: samba 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/2845kB of archives. After unpacking 0B of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... (Reading database ... 103645 files and directories currently installed.) Preparing to replace samba 3.0.22-1ubuntu3 (using .../samba_3.0.22-1ubuntu3.1_i386.deb) ... invoke-rc.d: dangling symlink: /etc/rc2.d/S91samba dpkg: warning - old pre-removal script returned error exit status 102 dpkg - trying script from the new package instead ... invoke-rc.d: dangling symlink: /etc/rc2.d/S91samba dpkg: error processing /var/cache/apt/archives/samba_3.0.22-1ubuntu3.1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 102 Errors were encountered while processing: /var/cache/apt/archives/samba_3.0.22-1ubuntu3.1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) trevor@trevor-ubuntu:~$