hi everyone
i need to update to a lower version of gcc. currently am using gcc 4.1 , but i need a gcc of 3.x( x= 0,1,2,3...) version. Can someone give me a clue of how i can handle this problem.

here are commands i tried with :

1) $ dpkg -r gcc
dpkg: requested operation requires superuser privilege


2) $ sudo apt-get autoremove gcc
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.


3) $sudo apt-get install gcc-3.4 g++3.4 make
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.


None of them worked

Thanks