I was downloading a package using the terminal. I actually wanted to install some package 'A'. But,by mistake started installing some other package 'B'. So, I wanted to stop the download of that package 'B' and start downloading 'A'.
I couldn't able to do that. I reset my network connection. I could stop downloading the package B. But, the administrator directory was locked and wasn't able to download other packages which made me to restart my system.
What command should I use to abort the active download of packages in ubuntu?