I was downloading a package using the terminal. I actually wanted to install package 'A'. But, by mistake started installing package 'B'. I wanted to stop downloading 'B' and start downloading 'A'.
I wasn'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?
have you tried pressing Ctrl+C?
If you press Ctrl + c while packages are downloading, that's fine. Just don't interrupt an install. Also, remember to use
after you interrupted the package download, so that the downloaded packages don't take up disk space.