Here is the problem and how to solve it......

apt-get upgrade
Reading package lists... Done                                                                                                                                     
Building dependency tree                                                                                                                                          
Reading state information... Done                                                                                                                                 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up framework3 (3.7.2-bt0) ...
chmod: cannot access `framework-32.bin': No such file or directory
/var/lib/dpkg/info/framework3.postinst: line 11: ./framework-32.bin: No such file or directory
cp: cannot stat `mysql-2.8.1': No such file or directory
Building native extensions.  This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...
Installing RDoc documentation for mysql-2.8.1...
cp: cannot create directory `/opt/framework3/ruby/lib/ruby/gems/1.9.1/gems/': No such file or directory
mv: cannot move `/usr/src/IMPORTANT-README' to `/pentest/exploits/framework3/': Not a directory
dpkg: error processing framework3 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)