I was downloading a package from a terminal. Actually i want to install some package 'A'. But,by mistake installing some other package 'B'. So, i wanted to stop the download of that package 'B' and start downloading 'A'. But, i couldnt able to do that. I reset my network connnection. I could stop downloading the package B. But, the administratory directory was locked and wasn't able to download other packages which made me to restart my system.
Is there a way or any command to abort the active download of packages in ubuntu. ?